Tenncor
Namespaces | Typedefs | Functions | Variables
matops.hpp File Reference
#include <cassert>
#include <cstring>
#include "teq/shape.hpp"
Include dependency graph for matops.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 teq
 

Typedefs

using teq::MatrixT = double[mat_dim][mat_dim]
 Coordinate transformation matrix (using homogeneous) More...
 

Functions

std::string teq::to_string (const MatrixT &mat)
 Return the string representation of input matrix. More...
 
double teq::determinant (const MatrixT &mat)
 Return the determinant of matrix. More...
 
void teq::inverse (MatrixT out, const MatrixT &in)
 Inverse in matrix and dump to out matrix. More...
 
void teq::matmul (MatrixT out, const MatrixT &lhs, const MatrixT &rhs)
 Apply matrix multiplication for lhs and rhs to out matrix. More...
 

Variables

const RankT teq::mat_dim = rank_cap + 1
 Number of rows and columns for the homogeneous matrix. More...
 
const size_t teq::mat_size = sizeof(double) * mat_dim * mat_dim
 Number of bytes in a homogeneous matrix. More...