The blo Library
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
SmallMatrix.h File Reference

SmallMatrix declaration and related functions. More...

#include "defs.h"
#include <cassert>
#include "Array2DFixed.h"
#include "SmallMatrix.inl"

Classes

class  blo::SmallMatrix< T, M, N >
 Small matrix. More...
 
class  blo::SmallMatrix< T, N, 1 >
 Small column vector. More...
 
class  blo::SmallMatrix< T, N, 1 >::RowProxy
 Vector row proxy. More...
 
class  blo::SmallMatrix< T, 1, N >
 Small row vector. More...
 
class  blo::SmallMatrix< T, 1, N >::RowProxy
 Vector row proxy. More...
 
class  blo::SmallMatrix< T, 1, 1 >
 Small matrix, 1x1. More...
 
class  blo::SmallMatrixTranspose< T, M, N >
 Small matrix transpose. More...
 

Namespaces

namespace  blo
 The blo library.
 

Functions

template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const typename SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const SmallMatrix< T, M, N > &matrix, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (typename const SmallMatrixTranspose< T, N, M > &transpose, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const T &scalar, const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const T &scalar, const typename SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const SmallMatrix< T, M, N > &matrix1, const SmallMatrix< T, M, N > &matrix2)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (typename const SmallMatrixTranspose< T, N, M > &transpose, const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (const SmallMatrix< T, M, N > &matrix, typename const SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator+ (typename const SmallMatrixTranspose< T, N, M > &transpose1, typename const SmallMatrixTranspose< T, N, M > &transpose2)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (typename const SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const SmallMatrix< T, M, N > &matrix, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const typename SmallMatrixTranspose< T, N, M > &transpose, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const T &scalar, const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const T &scalar, const typename SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const SmallMatrix< T, M, N > &matrix1, const SmallMatrix< T, M, N > &matrix2)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (typename const SmallMatrixTranspose< T, N, M > &transpose, const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (const SmallMatrix< T, M, N > &matrix, typename const SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator- (typename const SmallMatrixTranspose< T, N, M > &transpose1, typename const SmallMatrixTranspose< T, N, M > &transpose2)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const SmallMatrix< T, M, N > &matrix, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator* (typename const SmallMatrixTranspose< T, N, M > &transpose, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const T &scalar, const SmallMatrix< T, M, N > &matrix)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const T &scalar, typename const SmallMatrixTranspose< T, N, M > &transpose)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator/ (const SmallMatrix< T, M, N > &matrix, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::operator/ (const typename SmallMatrixTranspose< T, N, M > &transpose, const T &scalar)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, 1 > blo::operator* (const SmallMatrix< T, M, N > &matrix, const SmallMatrix< T, N, 1 > &vector)
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, 1 > blo::operator* (const SmallMatrixTranspose< T, N, M > &transpose, const SmallMatrix< T, N, 1 > &vector)
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const SmallMatrix< T, M, P > &matrix1, const SmallMatrix< T, P, N > &matrix2)
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M, N > blo::operator* (typename const SmallMatrixTranspose< T, P, M > &transpose, const SmallMatrix< T, P, N > &matrix)
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const SmallMatrix< T, M, P > &matrix, const typename SmallMatrixTranspose< T, N, P > &transpose)
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M, N > blo::operator* (const typename SmallMatrixTranspose< T, P, M > &transpose1, const typename SmallMatrixTranspose< T, N, P > &transpose2)
 
template<typename T , size_t N>
const T blo::operator* (const SmallMatrix< T, 1, N > &vector1, const SmallMatrix< T, N, 1 > &vector2)
 
template<typename T , size_t N>
const T blo::operator* (const SmallMatrixTranspose< T, N, 1 > &transpose, const SmallMatrix< T, N, 1 > &vector)
 
template<typename T , size_t N>
const T blo::operator* (const SmallMatrix< T, 1, N > &vector, const SmallMatrixTranspose< T, 1, N > &transpose)
 
template<typename T , size_t N>
const T blo::operator* (const SmallMatrixTranspose< T, N, 1 > &transpose1, const SmallMatrixTranspose< T, 1, N > &transpose2)
 
template<typename T , size_t M, size_t N>
void blo::add (const SmallMatrix< T, M, N > &A, const SmallMatrix< T, M, N > &B, SmallMatrix< T, M, N > &C, SmallMatrix< T, M *N, M *N > &Ja, SmallMatrix< T, M *N, M *N > &Jb)
 Adds matrix to another matrix.
 
template<typename T , size_t M, size_t N>
void blo::sub (const SmallMatrix< T, M, N > &A, const SmallMatrix< T, M, N > &B, SmallMatrix< T, M, N > &C, SmallMatrix< T, M *N, M *N > &Ja, SmallMatrix< T, M *N, M *N > &Jb)
 Subtracts matrix from another matrix.
 
template<typename T , size_t M, size_t N>
void blo::mul (const T &s, const SmallMatrix< T, M, N > &A, SmallMatrix< T, M, N > &B, SmallMatrix< T, M *N, 1 > &Js, SmallMatrix< T, M *N, M *N > &Ja)
 Multiplies matrix by a scalar.
 
template<typename T , size_t M, size_t P, size_t N>
void blo::mul (const SmallMatrix< T, M, P > &A, const SmallMatrix< T, P, N > &B, SmallMatrix< T, M, N > &C, SmallMatrix< T, M *N, M *P > &Ja, SmallMatrix< T, M *N, P *N > &Jb)
 Multiplies matrix by another matrix.
 
template<typename T , size_t N>
void blo::mul (const SmallMatrix< T, 1, N > &a, const SmallMatrix< T, N, 1 > &b, T &c, SmallMatrix< T, 1, N > &Ja, SmallMatrix< T, 1, N > &Jb)
 Computes dot product of two vectors.
 
template<typename T , size_t M, size_t N>
void blo::div (const SmallMatrix< T, M, N > &A, const T &s, SmallMatrix< T, M, N > &B, SmallMatrix< T, M *N, M *N > &Ja, SmallMatrix< T, M *N, 1 > &Js)
 Divides matrix by a scalar.
 
template<typename T , size_t M, size_t N>
const SmallMatrixTranspose< T, M, N > blo::trans (const SmallMatrix< T, M, N > &matrix)
 Calculates the transpose of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::trans (const SmallMatrix< T, M, N > &A, SmallMatrix< T, N, M > &AT, SmallMatrix< T, N *M, M *N > &J)
 Calculates the transpose of a matrix.
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M *N, 1 > blo::kron (const SmallMatrix< T, M, 1 > &vector1, const SmallMatrix< T, N, 1 > &vector2)
 Calculates the Kronecker product of two vectors.
 
template<typename T , size_t M, size_t N, size_t P, size_t Q>
const SmallMatrix< T, M *P, N *Q > blo::kron (const SmallMatrix< T, M, N > &matrix1, const SmallMatrix< T, P, Q > &matrix2)
 Calculates the Kronecker product of two matrices.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::cross (const SmallMatrix< T, 3, 1 > &vector1, const SmallMatrix< T, 3, 1 > &vector2)
 Calculates the cross product of two 3-vectors.
 
template<typename T >
void blo::cross (const SmallMatrix< T, 3, 1 > &a, const SmallMatrix< T, 3, 1 > &b, SmallMatrix< T, 3, 1 > &c, SmallMatrix< T, 3, 3 > &Ja, SmallMatrix< T, 3, 3 > &Jb)
 Calculates the cross product of two 3-vectors.
 
template<typename T , size_t N>
const SmallMatrix< T, N, N > blo::inv (const SmallMatrix< T, N, N > &matrix, const T &tolerance=T{ -1 })
 Calculates the inverse of a matrix.
 
template<typename T , size_t N>
void blo::inv (const SmallMatrix< T, N, N > &A, SmallMatrix< T, N, N > &Ainv, SmallMatrix< T, N *N, N *N > &J, const T &tolerance=T{ -1 })
 Calculates the inverse of a matrix.
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::inv (const SmallMatrix< T, 2, 2 > &matrix)
 Calculates the inverse of a 2x2 matrix.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::inv (const SmallMatrix< T, 3, 3 > &matrix)
 Calculates the inverse of a 3x3 matrix.
 
template<typename T >
const SmallMatrix< T, 4, 4 > blo::inv (const SmallMatrix< T, 4, 4 > &matrix)
 Calculates the inverse of a 4x4 matrix.
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::pinv (const SmallMatrix< T, N, M > &matrix, const T &tolerance=T{ -1 })
 Calculates the pseudoinverse of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, N > blo::diag (const SmallMatrix< T, N, 1 > &vector)
 Calculates the diagonal matrix.
 
template<typename T , size_t N>
void blo::diag (const SmallMatrix< T, N, 1 > &d, SmallMatrix< T, N, N > &A, SmallMatrix< T, N *N, N > &J)
 Calculates the diagonal matrix.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::skewSym (const SmallMatrix< T, 3, 1 > &vector)
 Calculates a 3x3 skew-symmetric matrix from its parameters.
 
template<typename T >
void blo::skewSym (const SmallMatrix< T, 3, 1 > &v, SmallMatrix< T, 3, 3 > &A, SmallMatrix< T, 9, 3 > &J)
 Calculates a 3x3 skew-symmetirc matrix from its parameters.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::skewSymParameters (const SmallMatrix< T, 3, 3 > &matrix)
 Extracts the parameters from a 3x3 skew-symmetirc matrix.
 
template<typename T , size_t M, size_t N>
void blo::qr (const SmallMatrix< T, M, N > &A, SmallMatrix< T, M, M > &Q, SmallMatrix< T, M, N > &R)
 Calculates the QR decomposition of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::rq (const SmallMatrix< T, M, N > &A, SmallMatrix< T, M, N > &R, SmallMatrix< T, N, N > &Q)
 Calculates the RQ decomposition of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::svd (const SmallMatrix< T, M, N > &A, T *p_d)
 Calculates the singular values of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, 1 > blo::svd (const SmallMatrix< T, N, N > &A)
 Calculates the singular values of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::svd (const SmallMatrix< T, M, N > &A, SmallMatrix< T, M, M > &U, T *p_d, SmallMatrix< T, N, N > &V)
 Calculates the singular value decomposition of a matrix.
 
template<typename T , size_t N>
void blo::svd (const SmallMatrix< T, N, N > &A, SmallMatrix< T, N, N > &U, SmallMatrix< T, N, 1 > &d, SmallMatrix< T, N, N > &V)
 Calculates the singular value decomposition of a matrix.
 
template<typename T , size_t N>
void blo::svd (const SmallMatrix< T, N, N > &A, SmallMatrix< T, N, N > &U, SmallMatrix< T, N, 1 > &d, SmallMatrix< T, N, N > &V, SmallMatrix< T, N *N, N *N > &partial_u_partial_a, SmallMatrix< T, N, N *N > &partial_d_partial_a, SmallMatrix< T, N *N, N *N > &partial_v_partial_a)
 Calculates the singular value decomposition of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, 1 > blo::eigenSym (const SmallMatrix< T, N, N > &A)
 Calculates the eigenvalues of a symmetric matrix.
 
template<typename T , size_t N>
void blo::eigenSym (const SmallMatrix< T, N, N > &A, SmallMatrix< T, N, N > &V, SmallMatrix< T, N, 1 > &d)
 Calculates the eigen decomposition of a symmetric matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, N > blo::cholesky (const SmallMatrix< T, N, N > &A, TriangularMatrix factorization=TriangularMatrix::upper)
 Calculates the Cholesky factorization of a positive definite matrix.
 
template<typename T , size_t M, size_t N>
int blo::rank (const SmallMatrix< T, M, N > &matrix, const T &tolerance=T{ -1 })
 Calculates the rank of a matrix.
 
template<typename T , size_t N>
const T blo::trace (const SmallMatrix< T, N, N > &matrix)
 Calculates the trace of a matrix.
 
template<typename T , size_t N>
void blo::trace (const SmallMatrix< T, N, N > &A, T &trace_A, SmallMatrix< T, 1, N *N > &J)
 Calculates the trace of a matrix.
 
template<typename T , size_t N>
const T blo::det (const SmallMatrix< T, N, N > &matrix)
 Calculates the determinant of a matrix.
 
template<typename T >
const T blo::det (const SmallMatrix< T, 2, 2 > &matrix)
 Calculates the determinant of a 2x2 matrix.
 
template<typename T >
const T blo::det (const SmallMatrix< T, 3, 3 > &matrix)
 Calculates the determinant of a 3x3 matrix.
 
template<typename T >
const T blo::det (const SmallMatrix< T, 4, 4 > &matrix)
 Calculates the determinant of a 4x4 matrix.
 
template<typename T , size_t M, size_t N>
const T blo::sum (const SmallMatrix< T, M, N > &matrix)
 Calculates the sum of the vector or matrix elements.
 
template<typename T , size_t N>
const T blo::norm (const SmallMatrix< T, N, 1 > &vector)
 Calculates the L2-norm of a vector.
 
template<typename T , size_t N>
const T blo::normL1 (const SmallMatrix< T, N, 1 > &vector)
 Calculates the L1-norm of a vector.
 
template<typename T , size_t N>
const T blo::normL2 (const SmallMatrix< T, N, 1 > &vector)
 Calculates the L2-norm of a vector.
 
template<typename T , size_t N>
const T blo::normLInf (const SmallMatrix< T, N, 1 > &vector)
 Calculates the L infinity norm of a vector.
 
template<typename T , size_t N>
const T blo::normLNegInf (const SmallMatrix< T, N, 1 > &vector)
 Calculates the L negative infinity norm of a vector.
 
template<typename T , size_t N>
void blo::norm (const SmallMatrix< T, N, 1 > &x, T &norm_x, SmallMatrix< T, 1, N > &J)
 Calculates the L2-norm of a vector.
 
template<typename T , size_t N>
void blo::normL2 (const SmallMatrix< T, N, 1 > &x, T &norm_x, SmallMatrix< T, 1, N > &J)
 Calculates the L2-norm of a vector.
 
template<typename T , size_t M, size_t N>
const T blo::norm (const SmallMatrix< T, M, N > &matrix)
 Calculates the 2-norm (or spectral norm) of a matrix.
 
template<typename T , size_t M, size_t N>
const T blo::norm1 (const SmallMatrix< T, M, N > &matrix)
 Calculates the 1-norm (or maximum absolute column sum norm) of a matrix.
 
template<typename T , size_t M, size_t N>
const T blo::norm2 (const SmallMatrix< T, M, N > &matrix)
 Calculates the 2-norm (or spectral norm) of a matrix.
 
template<typename T , size_t M, size_t N>
const T blo::normInf (const SmallMatrix< T, M, N > &matrix)
 Calculates the infinity norm (or maximum absolute row sum norm) of a matrix.
 
template<typename T , size_t M, size_t N>
const T blo::normFro (const SmallMatrix< T, M, N > &matrix)
 Calculates the Frobenius norm of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::normFro (const SmallMatrix< T, M, N > &A, T &norm_A, SmallMatrix< T, 1, M *N > &J)
 Calculates the Frobenius norm of a matrix.
 
template<typename T , size_t M, size_t N>
void blo::setIdentity (SmallMatrix< T, M, N > &matrix)
 Sets the matrix to identity.
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M, N > blo::identity ()
 The identity matrix.
 
template<typename T , size_t N>
const T blo::rcond (const SmallMatrix< T, N, N > &matrix)
 Calculates the estimate of the reciprocal of the condition number of a matrix.
 
template<typename T , size_t N>
const T blo::minor (const SmallMatrix< T, N, N > &matrix, int i, int j)
 Calculates the minor of a matrix.
 
template<typename T , size_t N>
const T blo::cofactor (const SmallMatrix< T, N, N > &matrix, int i, int j)
 Calculates the cofactor of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, N > blo::cof (const SmallMatrix< T, N, N > &matrix)
 Calculates the cofactors of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, N > blo::adj (const SmallMatrix< T, N, N > &matrix)
 Calculates the adjugate (or classical adjoint) of a matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N - 1, N > blo::leftNullSpace (const SmallMatrix< T, N, 1 > &vector)
 Calculates the left null space of a vector.
 
template<typename T , size_t N>
void blo::leftNullSpace (const SmallMatrix< T, N, 1 > &x, SmallMatrix< T, N - 1, N > &A, SmallMatrix< T,(N - 1) *N, N > &J)
 Calculates the left null space of a vector.
 
template<typename T , size_t N>
const SmallMatrix< T, N, 1 > blo::solveLinearSystem (const SmallMatrix< T, N, N > &A, const SmallMatrix< T, N, 1 > &b)
 Calculates the solution to a linear system.
 
template<typename T >
const SmallMatrix< T, 2, 1 > blo::solveLinearSystem (const SmallMatrix< T, 2, 2 > &A, const SmallMatrix< T, 2, 1 > &b)
 Calculates the solution to a linear system, 2x2 matrix.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::solveLinearSystem (const SmallMatrix< T, 3, 3 > &A, const SmallMatrix< T, 3, 1 > &b)
 Calculates the solution to a linear system, 3x3 matrix.
 
template<typename T >
const SmallMatrix< T, 4, 1 > blo::solveLinearSystem (const SmallMatrix< T, 4, 4 > &A, const SmallMatrix< T, 4, 1 > &b)
 Calculates the solution to a linear system, 4x4 matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, 1 > blo::solveLinearSystemSym (const SmallMatrix< T, N, N > &A, const SmallMatrix< T, N, 1 > &b)
 Calculates the solution to a linear system, symmetric matrix.
 
template<typename T >
const SmallMatrix< T, 2, 1 > blo::solveLinearSystemSym (const SmallMatrix< T, 2, 2 > &A, const SmallMatrix< T, 2, 1 > &b)
 Calculates the solution to a linear system, 2x2 symmetric matrix.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::solveLinearSystemSym (const SmallMatrix< T, 3, 3 > &A, const SmallMatrix< T, 3, 1 > &b)
 Calculates the solution to a linear system, 3x3 symmetric matrix.
 
template<typename T >
const SmallMatrix< T, 4, 1 > blo::solveLinearSystemSym (const SmallMatrix< T, 4, 4 > &A, const SmallMatrix< T, 4, 1 > &b)
 Calculates the solution to a linear system, 4x4 symmetric matrix.
 
template<typename T , size_t N>
const SmallMatrix< T, N, 1 > blo::solveLinearSystemSymPosDef (const SmallMatrix< T, N, N > &A, const SmallMatrix< T, N, 1 > &b)
 Calculates the solution to a linear system, symmetric positive definite matrix.
 
template<typename T >
const SmallMatrix< T, 2, 1 > blo::solveLinearSystemSymPosDef (const SmallMatrix< T, 2, 2 > &A, const SmallMatrix< T, 2, 1 > &b)
 Calculates the solution to a linear system, 2x2 symmetric positive definite matrix.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::solveLinearSystemSymPosDef (const SmallMatrix< T, 3, 3 > &A, const SmallMatrix< T, 3, 1 > &b)
 Calculates the solution to a linear system, 3x3 symmetric positive definite matrix.
 
template<typename T >
const SmallMatrix< T, 4, 1 > blo::solveLinearSystemSymPosDef (const SmallMatrix< T, 4, 4 > &A, const SmallMatrix< T, 4, 1 > &b)
 Calculates the solution to a linear system, 4x4 symmetric positive definite matrix.
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, N, 1 > blo::solveLeastSquares (const SmallMatrix< T, M, N > &A, const SmallMatrix< T, M, 1 > &b)
 Calculates the solution to an overdetermined system of linear equations.
 
template<typename T , size_t M, size_t N>
const SmallMatrix< T, M *N, 1 > blo::vec (const SmallMatrixTranspose< T, M, N > &transpose)
 The vec operator.
 
template<typename T , size_t N>
const SmallMatrix< T,(N *(N+1))/2, 1 > blo::vech (const SmallMatrix< T, N, N > &A)
 The vech (half-vectorization) operator.
 
template<size_t N, typename T >
const SmallMatrix< T, N, N > blo::vechInv (const SmallMatrix< T,(N *(N+1))/2, 1 > &ah)
 Inverse of the vech (half-vectorization) operator.
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M, P+N > blo::horzcat (const SmallMatrix< T, M, P > &matrix1, const SmallMatrix< T, M, N > &matrix2)
 Horizontal concatenation.
 
template<typename T , size_t M, size_t P, size_t N>
void blo::horzcat (const SmallMatrix< T, M, P > &matrix1, const SmallMatrix< T, M, N > &matrix2, SmallMatrix< T, M, P+N > &A)
 Horizontal concatenation.
 
template<typename T , size_t M, size_t P, size_t N>
const SmallMatrix< T, M+P, N > blo::vertcat (const SmallMatrix< T, M, N > &matrix1, const SmallMatrix< T, P, N > &matrix2)
 Vertical concatenation.
 
template<typename T , size_t M, size_t P, size_t N>
void blo::vertcat (const SmallMatrix< T, M, N > &matrix1, const SmallMatrix< T, P, N > &matrix2, SmallMatrix< T, M+P, N > &A)
 Vertical concatenation.
 

Detailed Description

SmallMatrix declaration and related functions.