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