|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
Expression for the identity matrix. More...
#include <tvmet/xpr/Identity.h>
Public Types | |
enum | { ops_assign = Rows * Cols, ops = ops_assign } |
Complexity counter. More... | |
typedef T | value_type |
Public Member Functions | |
XprIdentity & | operator= (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 |
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.
typedef T tvmet::XprIdentity< T, Rows, Cols >::value_type |
anonymous enum |
value_type tvmet::XprIdentity< T, Rows, Cols >::operator() | ( | std::size_t | i, |
std::size_t | j | ||
) | const [inline] |
access by index.
XprIdentity& tvmet::XprIdentity< T, Rows, Cols >::operator= | ( | const XprIdentity< T, Rows, Cols > & | ) |
void tvmet::XprIdentity< T, Rows, Cols >::print_xpr | ( | std::ostream & | os, |
std::size_t | l = 0 |
||
) | const [inline] |
References tvmet::XprIdentity< T, Rows, Cols >::ops.
Author: |