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

tvmet::XprIdentity< T, Rows, Cols > Class Template Reference

#include <tvmet/xpr/Identity.h>

Inheritance diagram for tvmet::XprIdentity< T, Rows, Cols >:

Inheritance graph
[legend]
Collaboration diagram for tvmet::XprIdentity< T, Rows, Cols >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, std::size_t Rows, std::size_t Cols>
class tvmet::XprIdentity< T, Rows, Cols >

Expression for the identity matrix.

This expression doesn't hold any other expression, it simply returns 1 or 0 depends where the row and column element excess is done.

Since:
release 1.6.0
See also:
identity


Public Types

enum  { ops_assign = Rows * Cols, ops = ops_assign }
 Complexity counter. More...
typedef T value_type

Public Member Functions

XprIdentityoperator= (const XprIdentity &)
value_type operator() (std::size_t i, std::size_t j) const
 access by index.
void print_xpr (std::ostream &os, std::size_t l=0) const


Member Typedef Documentation

template<class T, std::size_t Rows, std::size_t Cols>
typedef T tvmet::XprIdentity< T, Rows, Cols >::value_type


Member Enumeration Documentation

template<class T, std::size_t Rows, std::size_t Cols>
anonymous enum

Complexity counter.

Enumerator:
ops_assign 
ops 


Member Function Documentation

template<class T, std::size_t Rows, std::size_t Cols>
XprIdentity& tvmet::XprIdentity< T, Rows, Cols >::operator= ( const XprIdentity< T, Rows, Cols > &   ) 

template<class T, std::size_t Rows, std::size_t Cols>
value_type tvmet::XprIdentity< T, Rows, Cols >::operator() ( std::size_t  i,
std::size_t  j 
) const [inline]

access by index.

template<class T, std::size_t Rows, std::size_t Cols>
void tvmet::XprIdentity< T, Rows, Cols >::print_xpr ( std::ostream &  os,
std::size_t  l = 0 
) const [inline]


Author: