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

Embed: (wiki syntax)

« Back to documentation index

gemv< Rows, Cols > Class Template Reference

gemv< Rows, Cols > Class Template Reference

class for matrix-vector product using loop unrolling. More...

#include <tvmet/loop/Gemv.h>


Detailed Description

template<std::size_t Rows, std::size_t Cols>
class tvmet::loop::gemv< Rows, Cols >

class for matrix-vector product using loop unrolling.

using formula

\[ M\,v \]

Example:
 template<class T, std::size_t Rows, std::size_t Cols>
 inline
 void
 prod(const Matrix<T, Rows, Cols>& lhs, const Vector<T, Cols>& rhs,
    Vector<T, Rows>& dest)
 {
   for (std::size_t i = 0; i != Rows; ++i) {
     dest(i) = tvmet::loop::gemv<Rows, Cols>().prod(lhs, rhs, i);
   }
 }

Definition at line 54 of file loop/Gemv.h.