DGtal  0.9.4beta
Public Types | Public Member Functions | Static Public Member Functions
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN > Struct Template Reference

#include <DGtal/math/linalg/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)
 

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

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.

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

template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT ( TM  = =TMatrix::M)
template<typename TMatrix , DGtal::Dimension TM, DGtal::Dimension TN>
DGtal::SimpleMatrixSpecializations< TMatrix, TM, TN >::BOOST_STATIC_ASSERT ( TN  = =TMatrix::N)
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.
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: