cheshirekow  v0.1.0
fiber::Eye< Scalar, N > Class Template Reference

A N x N matrix expression for the identity matrix. More...

#include <fiber/identity.h>

Inheritance diagram for fiber::Eye< Scalar, N >:
fiber::_RValue< Scalar, Eye< Scalar, N > >

Public Types

enum  { ROWS_ = N, COLS_ = N, SIZE_ = N * N }
 

Public Member Functions

Size cols () const
 
Scalar operator() (int i, int j) const
 matrix accessor More...
 
Scalar operator[] (Index i) const
 vector accessor More...
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_RValue< Scalar, Eye< Scalar, N > >
Size cols () const
 
Scalar operator() (Size i, Size j) const
 
Scalar operator[] (Size i) const
 
Size rows () const
 
Size size () const
 

Detailed Description

template<typename Scalar, int N>
class fiber::Eye< Scalar, N >

A N x N matrix expression for the identity matrix.

Definition at line 32 of file identity.h.

Member Enumeration Documentation

template<typename Scalar , int N>
anonymous enum
Enumerator
ROWS_ 
COLS_ 
SIZE_ 

Definition at line 34 of file identity.h.

Member Function Documentation

template<typename Scalar , int N>
Size fiber::Eye< Scalar, N >::cols ( ) const
inline

Definition at line 42 of file identity.h.

template<typename Scalar , int N>
Scalar fiber::Eye< Scalar, N >::operator() ( int  i,
int  j 
) const
inline

matrix accessor

Definition at line 54 of file identity.h.

template<typename Scalar , int N>
Scalar fiber::Eye< Scalar, N >::operator[] ( Index  i) const
inline

vector accessor

Definition at line 45 of file identity.h.

template<typename Scalar , int N>
Size fiber::Eye< Scalar, N >::rows ( ) const
inline

Definition at line 41 of file identity.h.

template<typename Scalar , int N>
Size fiber::Eye< Scalar, N >::size ( ) const
inline

Definition at line 40 of file identity.h.


The documentation for this class was generated from the following file: