rename wigner.h to quaternions.h

Former-commit-id: 190a4795704233f6743e3cf1b873e4cd8dae3936
This commit is contained in:
Marek Nečada 2019-07-23 23:06:44 +03:00
parent 0530895f84
commit e048a78055
9 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@
#define POINTGROUPS_H #define POINTGROUPS_H
#include "qpms_error.h" #include "qpms_error.h"
#include "wigner.h" #include "quaternions.h"
static inline _Bool qpms_pg_is_finite_axial(qpms_pointgroup_class cls) { static inline _Bool qpms_pg_is_finite_axial(qpms_pointgroup_class cls) {

View File

@ -842,7 +842,7 @@ cdef class BaseSpec:
def __get__(self): def __get__(self):
return VSWFNorm(self.s.norm) return VSWFNorm(self.s.norm)
# Quaternions from wigner.h # Quaternions from quaternions.h
# (mainly for testing; use moble's quaternions in python) # (mainly for testing; use moble's quaternions in python)
cdef class CQuat: cdef class CQuat:

View File

@ -171,7 +171,7 @@ cdef extern from "lattices.h":
double maxR, bint inc_maxR, PGen_1D_incrementDirection incdir) 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_quat_t qpms_quat_2c_from_4d(qpms_quat4d_t q)
qpms_quat4d_t qpms_quat_4d_from_2c(qpms_quat_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) qpms_quat_t qpms_quat_mult(qpms_quat_t p, qpms_quat_t q)

View File

@ -250,21 +250,21 @@ typedef enum {
* Internaly represented as a pair of complex numbers, * Internaly represented as a pair of complex numbers,
* \f$ Q_a = Q_1 + iQ_z, Q_b = Q_y + i Q_x\f$. * \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 { typedef struct qpms_quat_t {
complex double a, b; complex double a, b;
} qpms_quat_t; } qpms_quat_t;
/// Quaternion type as four doubles. /// Quaternion type as four doubles.
/** See wigner.h for "methods". /** See quaternions.h for "methods".
*/ */
typedef struct qpms_quat4d_t { typedef struct qpms_quat4d_t {
double c1, ci, cj, ck; double c1, ci, cj, ck;
} qpms_quat4d_t; } qpms_quat4d_t;
/// 3D improper rotations represented as a quaternion and a sign of the determinant. /// 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 { typedef struct qpms_irot3_t {
qpms_quat_t rot; ///< Quaternion representing the rotation part. qpms_quat_t rot; ///< Quaternion representing the rotation part.

View File

@ -1,4 +1,4 @@
/*! \file wigner.h /*! \file quaternions.h
* \brief Quaternions and Wigner matrices * \brief Quaternions and Wigner matrices
*/ */
#ifndef QPMS_WIGNER_H #ifndef QPMS_WIGNER_H

View File

@ -14,7 +14,7 @@
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include "vectors.h" #include "vectors.h"
#include "wigner.h" #include "quaternions.h"
#include <string.h> #include <string.h>
#include "qpms_error.h" #include "qpms_error.h"
#include "translations.h" #include "translations.h"

View File

@ -1,7 +1,7 @@
#include "symmetries.h" #include "symmetries.h"
#include "tiny_inlines.h" #include "tiny_inlines.h"
#include "indexing.h" #include "indexing.h"
#include "wigner.h" #include "quaternions.h"
#include "qpms_error.h" #include "qpms_error.h"
// TODO at some point, maybe support also other norms. // TODO at some point, maybe support also other norms.

View File

@ -12,7 +12,7 @@
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include "vectors.h" #include "vectors.h"
#include "wigner.h" #include "quaternions.h"
#include <string.h> #include <string.h>
#include "qpms_error.h" #include "qpms_error.h"
#include "tmatrices.h" #include "tmatrices.h"

View File

@ -1,4 +1,4 @@
#include "wigner.h" #include "quaternions.h"
#include "tiny_inlines.h" #include "tiny_inlines.h"
#include "kahansum.h" #include "kahansum.h"
#define WIGNER_ATOL (1e-15) #define WIGNER_ATOL (1e-15)