From 8829f50c534d1fbda03088194176fa47489fd757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Fri, 22 Feb 2019 06:22:56 +0000 Subject: [PATCH] Fix typedef syntax in vectors.h Former-commit-id: 07ab007347ec17d4840755620bc063ef0ec10523 --- qpms/vectors.h | 8 ++++---- setup.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/qpms/vectors.h b/qpms/vectors.h index d39c8d4..ece28fb 100644 --- a/qpms/vectors.h +++ b/qpms/vectors.h @@ -248,8 +248,8 @@ static inline double csphvec_reldiff(const csphvec_t a, const csphvec_t b) { return csphvec_reldiff_abstol(a, b, 0); } -typedef double[3][3] matrix3d; -typedef double[2][2] matrix2d; -typedef complex double[3][3] cmatrix3d; -typedef complex double[2][2] cmatrix2d; +typedef double matrix3d[3][3]; +typedef double matrix2d[2][2]; +typedef complex double cmatrix3d[3][3]; +typedef complex double cmatrix2d[2][2]; #endif //VECTORS_H diff --git a/setup.py b/setup.py index f728655..ef89500 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,8 @@ qpms_c = Extension('qpms_c', sources = ['qpms/qpms_c.pyx', #'qpms/hexpoints_c.pyx', 'qpms/gaunt.c',#'qpms/gaunt.h','qpms/vectors.h','qpms/translations.h', # FIXME http://stackoverflow.com/questions/4259170/python-setup-script-extensions-how-do-you-include-a-h-file - 'qpms/translations.c'], + 'qpms/translations.c', + 'qpms/wigner.c'], extra_compile_args=['-std=c99','-ggdb', '-O0', '-DQPMS_COMPILE_PYTHON_EXTENSIONS', # this is required #'-DQPMS_USE_OMP',