Polymetic
1.1
A c++ library for polynomial and matrix arithmetic, focused on applications in Kinematics.
|
Implements the template classes and functions in MatrixAlgorithms.hpp. More...
Go to the source code of this file.
Namespaces | |
anonymous_namespace{MatrixAlgorithms_impl.ipp} | |
Macros | |
#define | _MATRIXALGORITHMS_IMPL_IPP |
Functions | |
template<typename MatrixT > | |
MatrixT | anonymous_namespace{MatrixAlgorithms_impl.ipp}::exp_by_squaring (const MatrixT &M, size_t n) |
template<typename MatrixT > | |
MatrixT::value_type | anonymous_namespace{MatrixAlgorithms_impl.ipp}::trace (const MatrixT &M, size_t n) |
template<typename MatrixT > | |
MatrixT | exp (const MatrixT &M, size_t n) |
Finds the M^n for a square matrix M. More... | |
template<typename MatrixT > | |
MatrixT::value_type | det (const MatrixT &M) |
Finds the determinant of a square matrix. More... | |
Implements the template classes and functions in MatrixAlgorithms.hpp.
Definition in file MatrixAlgorithms_impl.ipp.
#define _MATRIXALGORITHMS_IMPL_IPP |
Definition at line 19 of file MatrixAlgorithms_impl.ipp.
MatrixT::value_type det | ( | const MatrixT & | M | ) |
Finds the determinant of a square matrix.
< Contains tr(M^(i+1)) is i-th position
Definition at line 100 of file MatrixAlgorithms_impl.ipp.
References boost::numeric::ublas::isSquare(), and anonymous_namespace{MatrixAlgorithms_impl.ipp}::trace().
Referenced by anonymous_namespace{Test_MatrixAlgorithms_double.cpp}::TEST_F(), and anonymous_namespace{Test_MatrixAlgorithms_polynomial_double.cpp}::TEST_F().
MatrixT exp | ( | const MatrixT & | M, |
size_t | n | ||
) |
Finds the M^n for a square matrix M.
Uses exponent by squaring
Definition at line 91 of file MatrixAlgorithms_impl.ipp.
References anonymous_namespace{MatrixAlgorithms_impl.ipp}::exp_by_squaring().
Referenced by anonymous_namespace{MatrixAlgorithms_impl.ipp}::trace().