Template Struct CMSISMat

Struct Documentation

template<uint16_t ROWS, uint16_t COLS>
struct CMSISMat

Wraps an arm_mat_instance_f32 and its associated array. This is done to make it clear which arrays are associated with which arm_mat_instance_f32 instances.

Public Functions

inline CMSISMat()
inline CMSISMat(const float (&initialData)[ROWS * COLS])
inline CMSISMat(const CMSISMat &other)

Deep copy. Costly; use std::move to invoke move constructor whenever possible.

inline CMSISMat(CMSISMat &&other)
inline CMSISMat &operator=(const CMSISMat &other)

Deep copy. Costly; use std::move to invoke move assignment whenever possible.

inline CMSISMat &operator=(CMSISMat &&other)
inline void copyData(const float (&other)[ROWS * COLS])
inline bool constructIdentityMatrix()

Construct identity matrix in the current CMSISMat.

inline CMSISMat<COLS, ROWS> inverse() const
inline CMSISMat<COLS, ROWS> transpose() const

Public Members

std::array<float, ROWS * COLS> data
arm_matrix_instance_f32 matrix