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

tvmet::XprMatrixTranspose< E > Class Template Reference

#include <tvmet/xpr/MatrixTranspose.h>

Inheritance diagram for tvmet::XprMatrixTranspose< E >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::XprMatrixTranspose< E >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class E>
class tvmet::XprMatrixTranspose< E >

Expression for transpose matrix.


Public Types

enum  { ops_expr = E::ops, ops = 1 * ops_expr }
 Complexity counter. More...
typedef E::value_type value_type

Public Member Functions

 XprMatrixTranspose (const E &e)
 Constructor.
value_type operator() (std::size_t i, std::size_t j) const
 index operator for arrays/matrices.
void print_xpr (std::ostream &os, std::size_t l=0) const

Private Member Functions

 XprMatrixTranspose ()
XprMatrixTransposeoperator= (const XprMatrixTranspose &)

Private Attributes

const E m_expr


Member Typedef Documentation

template<class E>
typedef E::value_type tvmet::XprMatrixTranspose< E >::value_type


Member Enumeration Documentation

template<class E>
anonymous enum

Complexity counter.

Enumerator:
ops_expr 
ops 


Constructor & Destructor Documentation

template<class E>
tvmet::XprMatrixTranspose< E >::XprMatrixTranspose (  )  [private]

template<class E>
tvmet::XprMatrixTranspose< E >::XprMatrixTranspose ( const E &  e  )  [inline, explicit]

Constructor.


Member Function Documentation

template<class E>
XprMatrixTranspose& tvmet::XprMatrixTranspose< E >::operator= ( const XprMatrixTranspose< E > &   )  [private]

template<class E>
value_type tvmet::XprMatrixTranspose< E >::operator() ( std::size_t  i,
std::size_t  j 
) const [inline]

index operator for arrays/matrices.

This simple swap the index access for transpose.

template<class E>
void tvmet::XprMatrixTranspose< E >::print_xpr ( std::ostream &  os,
std::size_t  l = 0 
) const [inline]


Member Data Documentation

template<class E>
const E tvmet::XprMatrixTranspose< E >::m_expr [private]


Author: