CMSIS-DSP  
CMSIS DSP Software Library
 
Loading...
Searching...
No Matches
Architecture independent algorithms

Functions

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.
 

Description

Algorithms written in an architecture independent way

Function Documentation

◆ dot() [1/3]

OutputVector< M, V >::type dot ( const M &  m,
const V &  v 
)
inline

Matrix x Vector product.

Template Parameters
MAny matrix type
VAny vector type
Parameters
mmatrix.
vvector.
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
MAAny matrix type
MBAny matrix type
Parameters
maMatrix.
mbMatrix.
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
MAAny matrix type
MBAny matrix type
RESAny matrix type
Parameters
resOutput matrix. Result of ma x mb is written to this argument
maMatrix.
mbMatrix.

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
PDatatype of matrix elements
LMatrix dimension (L x L)
Returns
Identity matrix. It is a static matrix : size known at build time.

◆ mk_identity() [2/2]

Matrix< P, DYNAMIC, DYNAMIC, TMP_ALLOC > mk_identity ( const vector_length_t  l)

Create identity matrix.

Template Parameters
PDatatype of matrix elements
Parameters
lDimension 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
MAAny matrix type
MBAny matrix type
Parameters
dstDestination matrix.
srcSource matrix.