SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

tvmet::loop::gemtv< Rows, Cols > Class Template Reference

#include <tvmet/loop/Gemtv.h>

List of all members.


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);
   }
 }


Public Member Functions

 gemtv ()

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 = Rows, N = (count+7)/8 }

Private Member Functions

 gemtv (const gemtv &)
gemtvoperator= (const gemtv &)


Member Enumeration Documentation

template<std::size_t Rows, std::size_t Cols>
anonymous enum [private]

Enumerator:
count 
N 


Constructor & Destructor Documentation

template<std::size_t Rows, std::size_t Cols>
tvmet::loop::gemtv< Rows, Cols >::gemtv ( const gemtv< Rows, Cols > &   )  [private]

template<std::size_t Rows, std::size_t Cols>
tvmet::loop::gemtv< Rows, Cols >::gemtv (  )  [inline]


Member Function Documentation

template<std::size_t Rows, std::size_t Cols>
gemtv& tvmet::loop::gemtv< Rows, Cols >::operator= ( const gemtv< Rows, Cols > &   )  [private]

template<std::size_t Rows, std::size_t Cols>
template<class E1, class E2>
static PromoteTraits< typename E1::value_type, typename E2::value_type >::value_type tvmet::loop::gemtv< Rows, Cols >::prod ( const E1 &  lhs,
const E2 &  rhs,
std::size_t  i 
) [inline, static]


Author: