DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN > Struct Template Reference

Aim: Implement internal matrix services for specialized matrix size. More...

#include <DGtal/math/linalg/SimpleMatrixSpecializations.h>

Public Types

typedef TMatrix::Component Component
 Matrix componenets type. More...
 
typedef TMatrix Matrix
 Matrix type. More...
 

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)
 

Detailed Description

template<typename TMatrix, DGtal::Dimension TM, DGtal::Dimension TN>
struct DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >

Aim: Implement internal matrix services for specialized matrix size.

Description of template class 'SimpleMatrixSpecializations'

Determiant of a matrix and determinant of a minor of the matrix are specialized for 2x2 and 3x3 matrices.

Template Parameters
TMatrixa type of matrix
TMnumber of rows
TNnumber of columns

Definition at line 68 of file SimpleMatrixSpecializations.h.

Member Typedef Documentation

◆ Component

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
typedef TMatrix::Component DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::Component

Matrix componenets type.

Definition at line 73 of file SimpleMatrixSpecializations.h.

◆ Matrix

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
typedef TMatrix DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::Matrix

Matrix type.

Definition at line 75 of file SimpleMatrixSpecializations.h.

Member Function Documentation

◆ BOOST_STATIC_ASSERT() [1/2]

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT ( TM  = =TMatrix::M)

◆ BOOST_STATIC_ASSERT() [2/2]

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT ( TN  = =TMatrix::N)

◆ determinant()

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
static Component DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::determinant ( const Matrix M)
static

Returns the determinant of square matrix. Slow method for large matrices.

Precondition
this must be NxN
Returns
the determinant.

◆ minorDeterminant()

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
static Component DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::minorDeterminant ( const Matrix M,
const DGtal::Dimension  i,
const DGtal::Dimension  j 
)
static

Return the minor determinant (i,j) of the current matrix

Parameters
Mthe matrix
irow index
jcolumn index
Returns
the minor (i,j)

The documentation for this struct was generated from the following file: