51template <
typename T>
using DynMat = Eigen::MatrixX<T>;
61template <
typename T, u
int_t N>
using SquareMat = Eigen::Matrix<T, N, N>;
66template <
typename T, u
int_t N, u
int_t M>
using Mat = Eigen::Matrix<T, N, M>;
73template <
typename T, u
int_t N, u
int_t M>
75 Eigen::Matrix<T, N, M,
76 Eigen::DontAlign | (N == 1 && M != 1 ? Eigen::RowMajor : Eigen::ColMajor)>;
101template <
typename T>
using DynVec = Eigen::RowVectorX<T>;
117template <
typename T>
using ColVec = Eigen::VectorX<T>;
Definition dc_motor_backend_base.h:9
Eigen::Matrix2< real_t > RealMat2d
2×2 matrix of type double.
Definition bitsim_types.h:81
Eigen::Vector4d RealColVec4d
4D column vector
Definition bitsim_types.h:142
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
Eigen::Matrix< T, N, M, Eigen::DontAlign|(N==1 &&M !=1 ? Eigen::RowMajor :Eigen::ColMajor)> UnalignedMat
General fixed size matrix that Eigen does not align. Use it for a fixed size member of a class that i...
Definition bitsim_types.h:74
Eigen::Index index_t
The type Eigen indexes and sizes matrices and vectors with.
Definition bitsim_types.h:45
Eigen::MatrixX< T > DynMat
Dynamically sized matrix to use around the library.
Definition bitsim_types.h:51
DynVec< real_t > RealVec
double precision floating point vector
Definition bitsim_types.h:111
DynVec< float_t > FloatVec
single precision floating point vector
Definition bitsim_types.h:106
float float_t
float
Definition bitsim_types.h:25
ColVec< real_t > RealColVec
Dynamically sized column vector.
Definition bitsim_types.h:122
Eigen::Matrix< T, N, N > SquareMat
Square matrix with elements of type T.
Definition bitsim_types.h:61
Eigen::Matrix3< real_t > RealMat3d
3×3 matrix of type double.
Definition bitsim_types.h:86
double real_t
real_t
Definition bitsim_types.h:20
Eigen::Matrix4< real_t > RealMat4d
4×4 matrix of type double.
Definition bitsim_types.h:91
Eigen::Vector3d RealColVec3d
3D column vector
Definition bitsim_types.h:137
DeviceType
Enumeration of various device types.
Definition bitsim_types.h:186
@ INVALID_TYPE
Definition bitsim_types.h:187
@ CPU
Definition bitsim_types.h:188
@ GPU
Definition bitsim_types.h:189
Eigen::Vector2d RealColVec2d
2D column vector
Definition bitsim_types.h:132
int int_t
integer type
Definition bitsim_types.h:30
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitsim_types.h:101
Eigen::VectorX< T > ColVec
Column vector. Some maths operations are easier using column vectors rather than DynVec.
Definition bitsim_types.h:117
Eigen::Matrix3< float_t > FloatMat3d
3×3 matrix of type float.
Definition bitsim_types.h:96
Eigen::Vector3f FloatColVec3d
3D column vector
Definition bitsim_types.h:147
long int lint_t
long int type
Definition bitsim_types.h:35
DynMat< real_t > RealMat
Dynamically sized matrix of type double.
Definition bitsim_types.h:56
ColVec< float_t > FoatColVec
Dynamically sized column vector.
Definition bitsim_types.h:127
Eigen::Matrix< T, N, M > Mat
General fixed size matrix.
Definition bitsim_types.h:66
A range of integer values in [s, e].
Definition bitsim_types.h:155
static constexpr uint_t E
Definition bitsim_types.h:158
static constexpr uint_t S
Definition bitsim_types.h:157
uint_t value_type
Definition bitsim_types.h:156
static constexpr uint_t size
Definition bitsim_types.h:159
Null placeholder.
Definition bitsim_types.h:179
A range of double precision floating point values.
Definition bitsim_types.h:167
real_t value_type
Definition bitsim_types.h:168
static constexpr real_t S
Definition bitsim_types.h:169
static constexpr real_t size
Definition bitsim_types.h:171
static constexpr real_t E
Definition bitsim_types.h:170