DGtal
0.6.devel
|
#include <SimpleMatrixSpecializations.h>
Public Types | |
typedef TMatrix::Component | Component |
typedef TMatrix | Matrix |
Public Member Functions | |
BOOST_STATIC_ASSERT (TM==TMatrix::M) | |
BOOST_STATIC_ASSERT (TN==TMatrix::N) |
Static Public Member Functions | |
static Component | minorDeterminant (const Matrix &M, const DGtal::Dimension i, const DGtal::Dimension j) |
static Component | determinant (const Matrix &M) |
Aim: Implement internal matrix services for specialized matrix size.
Description of template class 'SimpleMatrixSpecializations'
Deterimant of a matrix and the determinant of a minor of the matrix is specialized for 2x2 and 3x3 matrices.
TMatrix | a type of matrix |
TM | number of rows |
TN | number of columns |
Definition at line 68 of file SimpleMatrixSpecializations.h.
typedef TMatrix::Component DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::Component |
Matrix componenets type.
Definition at line 73 of file SimpleMatrixSpecializations.h.
typedef TMatrix DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::Matrix |
Matrix type.
Definition at line 75 of file SimpleMatrixSpecializations.h.
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT | ( | TM | = =TMatrix::M | ) |
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT | ( | TN | = =TMatrix::N | ) |
|
inlinestatic |
Returns the determinant of square matrix. Slow method for large matrices.
Definition at line 78 of file SimpleMatrixSpecializations.ih.
|
inlinestatic |
Return the minor determinant (i,j) of the current matrix
i | row index |
j | column index |
Definition at line 42 of file SimpleMatrixSpecializations.ih.