19 template <
class T,
unsigned M,
unsigned N>
31 template <
class T,
unsigned M,
unsigned N>
45 template <
class T,
unsigned M,
unsigned N>
57 template <
class T,
unsigned M,
unsigned N>
61 template <
class T,
unsigned M>
75 template <
class T,
unsigned M>
compile-time (static) matrix
compile-time (static) vector of size N
Small compile-time and run-time linear algebra matrices.
All MTH functions are contained in this namespace.
unsigned decomposeQR(Matrix< T, M, N > const &a, Matrix< T, M, M > &q, Matrix< T, M, N > &r)
finds the QR decomposition of A
bool eigenQR(Matrix< T, M, M > const &a, Matrix< T, M, M > &l, Matrix< T, M, M > &q, unsigned max_iters)
computes the eigendecomposition of A
void solveFromQR(Matrix< T, M, M > const &q, Matrix< T, M, N > const &r, Vector< T, M > const &b, Vector< T, N > &x)
solves Ax = b given A's QR factorization
void backsubUT(Matrix< T, M, N > const &r, Vector< T, M > const &b, Vector< T, N > &x)
solves Rx = b for upper triangular R
bool solveQR(Matrix< T, M, N > const &a, Vector< T, M > const &b, Vector< T, N > &x)
solves Ax = b using A's QR factorization