ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

gemtv< Rows, Cols > Class Template Reference

gemtv< Rows, Cols > Class Template Reference

class for transposed(matrix)-vector product using loop unrolling. More...

#include <tvmet/loop/Gemtv.h>


Detailed Description

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

class for transposed(matrix)-vector product using loop unrolling.

using formula

\[ M^T\,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, Rows>& rhs,
     Vector<T, Cols>& dest)
 {
   for (std::size_t i = 0; i != Cols; ++i) {
     dest(i) = tvmet::loop::gemtv<Rows, Cols>().prod(lhs, rhs, i);
   }
 }

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