This is some awesome robot code

Dependencies:   mbed-rtos mbed QEI

Fork of ICRSEurobot13 by Thomas Branch

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.