This is the Tiny Vector Matrix Expression Templates library found at http://tvmet.sourceforge.net. It is the fastest and most compact matrix lib out there (for < 10x10 matricies). I have done some minor tweaks to make it compile for mbed. For examples and hints on how to use, see: http://tvmet.sourceforge.net/usage.html
Dependents: Eurobot_2012_Secondary
gemtm< Rows1, Cols1, Cols2 > Class Template Reference
class for matrix-matrix product using loop unrolling. More...
#include <tvmet/loop/Gemtm.h>
Detailed Description
template<std::size_t Rows1, std::size_t Cols1, std::size_t Cols2>
class tvmet::loop::gemtm< Rows1, Cols1, Cols2 >
class for matrix-matrix product using loop unrolling.
using formula
- Example:
template<class T, std::size_t Rows1, std::size_t Cols1, std::size_t Cols2> inline void prod(const Matrix<T, Rows1, Cols1>& lhs, const Matrix<T, Rows1, Cols2>& rhs, Matrix<T, Cols2, Cols1>& dest) { for (std::size_t i = 0; i != Cols1; ++i) { for (std::size_t j = 0; j != Cols2; ++j) { dest(i, j) = tvmet::loop::gemtm<Rows1, Cols1, Cols2>::prod(lhs, rhs, i, j); } } }
- Note:
- The number of rows of rhs matrix have to be equal rows of rhs matrix, since lhs matrix 1 is transposed. The result is a (Cols1 x Cols2) matrix.
Definition at line 60 of file loop/Gemtm.h.
Generated on Tue Jul 12 2022 19:00:12 by 1.7.2