|
template<typename MA , typename MB , typename std::enable_if< HasMatrixIndexing< MA >::value &&HasMatrixIndexing< MB >::value, bool >::type = true> |
void | transposeTo (MA &dst, const MB &src) |
| Transpose a matrix.
|
|
template<typename M , typename V , typename std::enable_if< CompatibleStaticMatVecProduct< M, V >::value, bool >::type = true> |
OutputVector< M, V >::type | dot (const M &m, const V &v) |
| Matrix x Vector product.
|
|
template<typename MA , typename MB , typename std::enable_if< CompatibleStaticMatMatProduct< MA, MB >::value &&number_traits< typename traits< MA >::Scalar >::is_fixed, bool >::type = true> |
OutputMatrix< MA, MB >::type | dot (const MA &ma, const MB &mb) |
| Matrix x Matrix product.
|
|
template<typename MA , typename MB , typename RES , typename std::enable_if< CompatibleDynamicMatMatProduct< MA, MB >::value &&number_traits< typename traits< MA >::Scalar >::is_float, bool >::type = true> |
void | dot (RES &&res, const MA &ma, const MB &mb) |
| Matrix x Matrix product.
|
|
template<typename P > |
Matrix< P, DYNAMIC, DYNAMIC, TMP_ALLOC > | mk_identity (const vector_length_t l) |
| Create identity matrix.
|
|
template<typename P , int L> |
Matrix< P, L, L, TMP_ALLOC > | mk_identity () |
| Create identity matrix.
|
|
Algorithms written in an architecture independent way
◆ dot() [1/3]
OutputVector< M, V >::type dot |
( |
const M & |
m, |
|
|
const V & |
v |
|
) |
| |
|
inline |
Matrix x Vector product.
- Template Parameters
-
M | Any matrix type |
V | Any vector type |
- Parameters
-
- Returns
- The matrix x vector product
◆ dot() [2/3]
OutputMatrix< MA, MB >::type dot |
( |
const MA & |
ma, |
|
|
const MB & |
mb |
|
) |
| |
|
inline |
Matrix x Matrix product.
- Template Parameters
-
MA | Any matrix type |
MB | Any matrix type |
- Parameters
-
- Returns
- ma x mb matrix product
◆ dot() [3/3]
void dot |
( |
RES && |
res, |
|
|
const MA & |
ma, |
|
|
const MB & |
mb |
|
) |
| |
|
inline |
Matrix x Matrix product.
- Template Parameters
-
MA | Any matrix type |
MB | Any matrix type |
RES | Any matrix type |
- Parameters
-
res | Output matrix. Result of ma x mb is written to this argument |
ma | Matrix. |
mb | Matrix. |
Used in dynamic mode (dimension of matrix not know at build time) to avoid a memory allocation if the result matrix is already available (Enable to reuse the same matrix storage for the result in some algorithms)
◆ mk_identity() [1/2]
Matrix< P, L, L, TMP_ALLOC > mk_identity |
( |
| ) |
|
Create identity matrix.
- Template Parameters
-
P | Datatype of matrix elements |
L | Matrix dimension (L x L) |
- Returns
- Identity matrix. It is a static matrix : size known at build time.
◆ mk_identity() [2/2]
Create identity matrix.
- Template Parameters
-
P | Datatype of matrix elements |
- Parameters
-
l | Dimension of matrix (l x l) |
- Returns
- Identity matrix. It is a dynamic matrix (size not know at build time)
◆ transposeTo()
void transposeTo |
( |
MA & |
dst, |
|
|
const MB & |
src |
|
) |
| |
|
inline |
Transpose a matrix.
- Template Parameters
-
MA | Any matrix type |
MB | Any matrix type |
- Parameters
-
dst | Destination matrix. |
src | Source matrix. |