Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/loop/Gemv.h>
using formula
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); } }
Public Member Functions | |
gemv () | |
Static Public Member Functions | |
template<class E1, class E2> | |
static PromoteTraits< typename E1::value_type, typename E2::value_type >::value_type | prod (const E1 &lhs, const E2 &rhs, std::size_t i) |
Private Types | |
enum | { count = Cols, N = (count+7)/8 } |
Private Member Functions | |
gemv (const gemv &) | |
gemv & | operator= (const gemv &) |
tvmet::loop::gemv< Rows, Cols >::gemv | ( | const gemv< Rows, Cols > & | ) | [private] |
tvmet::loop::gemv< Rows, Cols >::gemv | ( | ) | [inline] |
gemv& tvmet::loop::gemv< Rows, Cols >::operator= | ( | const gemv< Rows, Cols > & | ) | [private] |
static PromoteTraits< typename E1::value_type, typename E2::value_type >::value_type tvmet::loop::gemv< Rows, Cols >::prod | ( | const E1 & | lhs, | |
const E2 & | rhs, | |||
std::size_t | i | |||
) | [inline, static] |
Author: |