template<typename V, typename M>
struct DGtal::concepts::CLinearAlgebra< V, M >
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 CVector
Matrix : A type that is a model of CMatrix
- x, y : object of type
- a, b, c : object of type
Valid expressions and semantics
|Name ||Expression ||Type requirements ||Return type ||Precondition ||Semantics ||Post condition ||Complexity |
|Matrix vector right multiplication ||x = a * y |
|Matrix matrix multiplication ||c = a * b |
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.
- Template Parameters
|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.