DGtal 1.3.0
|
Aim: Check right multiplication between matrix and vector and internal matrix multiplication. Matrix and vector scalar types should be the same. More...
#include <DGtal/math/linalg/CLinearAlgebra.h>
Public Types | |
typedef V | Vector |
typedef M | Matrix |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CVector< Vector >)) | |
BOOST_CONCEPT_ASSERT ((CMatrix< Matrix >)) | |
BOOST_STATIC_ASSERT ((boost::is_same< typename Vector::Scalar, typename Matrix::Scalar >::value)) | |
BOOST_CONCEPT_USAGE (CLinearAlgebra) | |
Private Attributes | |
Matrix | c |
const Matrix | a |
const Matrix | b |
Vector | x |
const Vector | y |
Aim: Check right multiplication between matrix and vector and internal matrix multiplication. Matrix and vector scalar types should be the same.
Description of concept 'CLinearAlgebra'
Vector
: A type that is a model of CVectorMatrix
: A type that is a model of CMatrixVector
Matrix
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
Matrix vector right multiplication | x = a * y | Vector | |||||
Matrix matrix multiplication | c = a * b | Matrix |
There should be two types of vector: input vector type and output vector type.
This works fine for dynamic vector spaces, but not so much for static sized vectors and matrices.
V | the type that should be a model of CVector |
M | the type that should be a model of CMatrix |
Definition at line 93 of file CLinearAlgebra.h.
typedef M DGtal::concepts::CLinearAlgebra< V, M >::Matrix |
Definition at line 98 of file CLinearAlgebra.h.
typedef V DGtal::concepts::CLinearAlgebra< V, M >::Vector |
Definition at line 97 of file CLinearAlgebra.h.
DGtal::concepts::CLinearAlgebra< V, M >::BOOST_CONCEPT_ASSERT | ( | (CMatrix< Matrix >) | ) |
DGtal::concepts::CLinearAlgebra< V, M >::BOOST_CONCEPT_ASSERT | ( | (CVector< Vector >) | ) |
|
inline |
Definition at line 105 of file CLinearAlgebra.h.
References DGtal::concepts::CLinearAlgebra< V, M >::b, and DGtal::concepts::CLinearAlgebra< V, M >::y.
DGtal::concepts::CLinearAlgebra< V, M >::BOOST_STATIC_ASSERT | ( | (boost::is_same< typename Vector::Scalar, typename Matrix::Scalar >::value) | ) |
|
private |
Definition at line 113 of file CLinearAlgebra.h.
|
private |
Definition at line 113 of file CLinearAlgebra.h.
Referenced by DGtal::concepts::CLinearAlgebra< V, M >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 112 of file CLinearAlgebra.h.
|
private |
Definition at line 114 of file CLinearAlgebra.h.
|
private |
Definition at line 115 of file CLinearAlgebra.h.
Referenced by DGtal::concepts::CLinearAlgebra< V, M >::BOOST_CONCEPT_USAGE().