15 #ifndef TEQ_MATOPS_HPP 16 #define TEQ_MATOPS_HPP const RankT rank_cap
Number of dimsensions in a shape/coordinate.
Definition: shape.hpp:47
double determinant(const MatrixT &mat)
Return the determinant of matrix.
std::string to_string(const MatrixT &mat)
Return the string representation of input matrix.
uint8_t RankT
Type used for shape rank.
Definition: shape.hpp:23
const size_t mat_size
Number of bytes in a homogeneous matrix.
Definition: matops.hpp:25
const RankT mat_dim
Number of rows and columns for the homogeneous matrix.
Definition: matops.hpp:22
void inverse(MatrixT out, const MatrixT &in)
Inverse in matrix and dump to out matrix.
double[mat_dim][mat_dim] MatrixT
Coordinate transformation matrix (using homogeneous)
Definition: matops.hpp:28
void matmul(MatrixT out, const MatrixT &lhs, const MatrixT &rhs)
Apply matrix multiplication for lhs and rhs to out matrix.