Fix typedef syntax in vectors.h

Former-commit-id: 07ab007347ec17d4840755620bc063ef0ec10523
This commit is contained in:
Marek Nečada 2019-02-22 06:22:56 +00:00
parent 83b8b72578
commit 8829f50c53
2 changed files with 6 additions and 5 deletions

View File

@ -248,8 +248,8 @@ static inline double csphvec_reldiff(const csphvec_t a, const csphvec_t b) {
return csphvec_reldiff_abstol(a, b, 0); return csphvec_reldiff_abstol(a, b, 0);
} }
typedef double[3][3] matrix3d; typedef double matrix3d[3][3];
typedef double[2][2] matrix2d; typedef double matrix2d[2][2];
typedef complex double[3][3] cmatrix3d; typedef complex double cmatrix3d[3][3];
typedef complex double[2][2] cmatrix2d; typedef complex double cmatrix2d[2][2];
#endif //VECTORS_H #endif //VECTORS_H

View File

@ -21,7 +21,8 @@ qpms_c = Extension('qpms_c',
sources = ['qpms/qpms_c.pyx', #'qpms/hexpoints_c.pyx', sources = ['qpms/qpms_c.pyx', #'qpms/hexpoints_c.pyx',
'qpms/gaunt.c',#'qpms/gaunt.h','qpms/vectors.h','qpms/translations.h', '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 # 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', extra_compile_args=['-std=c99','-ggdb', '-O0',
'-DQPMS_COMPILE_PYTHON_EXTENSIONS', # this is required '-DQPMS_COMPILE_PYTHON_EXTENSIONS', # this is required
#'-DQPMS_USE_OMP', #'-DQPMS_USE_OMP',