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

tvmet::XprMatrixDiag< E, Sz > Class Template Reference

#include <tvmet/xpr/MatrixDiag.h>

Inheritance diagram for tvmet::XprMatrixDiag< E, Sz >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::XprMatrixDiag< E, Sz >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class E, std::size_t Sz>
class tvmet::XprMatrixDiag< E, Sz >

Expression on matrix used for access on the diagonal vector.


Public Types

enum  { ops_expr = E::ops, ops = ops_expr/Sz }
 Complexity counter. More...
typedef E::value_type value_type

Public Member Functions

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

Private Member Functions

 XprMatrixDiag ()
XprMatrixDiagoperator= (const XprMatrixDiag< E, Sz > &)

Private Attributes

const E m_expr


Member Typedef Documentation

template<class E, std::size_t Sz>
typedef E::value_type tvmet::XprMatrixDiag< E, Sz >::value_type


Member Enumeration Documentation

template<class E, std::size_t Sz>
anonymous enum

Complexity counter.

Enumerator:
ops_expr 
ops 


Constructor & Destructor Documentation

template<class E, std::size_t Sz>
tvmet::XprMatrixDiag< E, Sz >::XprMatrixDiag (  )  [private]

template<class E, std::size_t Sz>
tvmet::XprMatrixDiag< E, Sz >::XprMatrixDiag ( const E &  e  )  [inline, explicit]

Constructor.


Member Function Documentation

template<class E, std::size_t Sz>
XprMatrixDiag& tvmet::XprMatrixDiag< E, Sz >::operator= ( const XprMatrixDiag< E, Sz > &   )  [private]

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

index operator for arrays/matrizes

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


Member Data Documentation

template<class E, std::size_t Sz>
const E tvmet::XprMatrixDiag< E, Sz >::m_expr [private]


Author: