From e048a780557468b57b95eee072f298e8982257bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Tue, 23 Jul 2019 23:06:44 +0300 Subject: [PATCH] rename wigner.h to quaternions.h Former-commit-id: 190a4795704233f6743e3cf1b873e4cd8dae3936 --- qpms/pointgroups.h | 2 +- qpms/qpms_c.pyx | 2 +- qpms/qpms_cdefs.pxd | 2 +- qpms/qpms_types.h | 6 +++--- qpms/{wigner.h => quaternions.h} | 2 +- qpms/scatsystem.c | 2 +- qpms/symmetries.c | 2 +- qpms/tmatrices.c | 2 +- qpms/wigner.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) rename qpms/{wigner.h => quaternions.h} (99%) diff --git a/qpms/pointgroups.h b/qpms/pointgroups.h index 601b840..d4c7490 100644 --- a/qpms/pointgroups.h +++ b/qpms/pointgroups.h @@ -2,7 +2,7 @@ #define POINTGROUPS_H #include "qpms_error.h" -#include "wigner.h" +#include "quaternions.h" static inline _Bool qpms_pg_is_finite_axial(qpms_pointgroup_class cls) { diff --git a/qpms/qpms_c.pyx b/qpms/qpms_c.pyx index a37a945..a56a85a 100644 --- a/qpms/qpms_c.pyx +++ b/qpms/qpms_c.pyx @@ -842,7 +842,7 @@ cdef class BaseSpec: def __get__(self): return VSWFNorm(self.s.norm) -# Quaternions from wigner.h +# Quaternions from quaternions.h # (mainly for testing; use moble's quaternions in python) cdef class CQuat: diff --git a/qpms/qpms_cdefs.pxd b/qpms/qpms_cdefs.pxd index 24b8b61..e9d5b70 100644 --- a/qpms/qpms_cdefs.pxd +++ b/qpms/qpms_cdefs.pxd @@ -171,7 +171,7 @@ cdef extern from "lattices.h": double maxR, bint inc_maxR, PGen_1D_incrementDirection incdir) -cdef extern from "wigner.h": +cdef extern from "quaternions.h": qpms_quat_t qpms_quat_2c_from_4d(qpms_quat4d_t q) qpms_quat4d_t qpms_quat_4d_from_2c(qpms_quat_t q) qpms_quat_t qpms_quat_mult(qpms_quat_t p, qpms_quat_t q) diff --git a/qpms/qpms_types.h b/qpms/qpms_types.h index bf372c8..16f6bb9 100644 --- a/qpms/qpms_types.h +++ b/qpms/qpms_types.h @@ -250,21 +250,21 @@ typedef enum { * Internaly represented as a pair of complex numbers, * \f$ Q_a = Q_1 + iQ_z, Q_b = Q_y + i Q_x\f$. * - * See wigner.h for "methods". + * See quaternions.h for "methods". */ typedef struct qpms_quat_t { complex double a, b; } qpms_quat_t; /// Quaternion type as four doubles. -/** See wigner.h for "methods". +/** See quaternions.h for "methods". */ typedef struct qpms_quat4d_t { double c1, ci, cj, ck; } qpms_quat4d_t; /// 3D improper rotations represented as a quaternion and a sign of the determinant. -/** See wigner.h for "methods". +/** See quaternions.h for "methods". */ typedef struct qpms_irot3_t { qpms_quat_t rot; ///< Quaternion representing the rotation part. diff --git a/qpms/wigner.h b/qpms/quaternions.h similarity index 99% rename from qpms/wigner.h rename to qpms/quaternions.h index 2d020e7..bf1d93f 100644 --- a/qpms/wigner.h +++ b/qpms/quaternions.h @@ -1,4 +1,4 @@ -/*! \file wigner.h +/*! \file quaternions.h * \brief Quaternions and Wigner matrices */ #ifndef QPMS_WIGNER_H diff --git a/qpms/scatsystem.c b/qpms/scatsystem.c index 8e7380d..dac96f5 100644 --- a/qpms/scatsystem.c +++ b/qpms/scatsystem.c @@ -14,7 +14,7 @@ #include #include #include "vectors.h" -#include "wigner.h" +#include "quaternions.h" #include #include "qpms_error.h" #include "translations.h" diff --git a/qpms/symmetries.c b/qpms/symmetries.c index 342f80b..7410fe9 100644 --- a/qpms/symmetries.c +++ b/qpms/symmetries.c @@ -1,7 +1,7 @@ #include "symmetries.h" #include "tiny_inlines.h" #include "indexing.h" -#include "wigner.h" +#include "quaternions.h" #include "qpms_error.h" // TODO at some point, maybe support also other norms. diff --git a/qpms/tmatrices.c b/qpms/tmatrices.c index 7a5210f..b58767b 100644 --- a/qpms/tmatrices.c +++ b/qpms/tmatrices.c @@ -12,7 +12,7 @@ #include #include #include "vectors.h" -#include "wigner.h" +#include "quaternions.h" #include #include "qpms_error.h" #include "tmatrices.h" diff --git a/qpms/wigner.c b/qpms/wigner.c index 7f7cfab..d03511d 100644 --- a/qpms/wigner.c +++ b/qpms/wigner.c @@ -1,4 +1,4 @@ -#include "wigner.h" +#include "quaternions.h" #include "tiny_inlines.h" #include "kahansum.h" #define WIGNER_ATOL (1e-15)