cheshirekow  v0.1.0
fiber::Matrix< Scalar, Rows, Cols > Class Template Reference

#include <fiber/matrix.h>

Inheritance diagram for fiber::Matrix< Scalar, Rows, Cols >:
fiber::_LValue< Scalar, Matrix< Scalar, Rows, Cols > > fiber::_RValue< Scalar, Matrix< Scalar, Rows, Cols > >

Public Types

enum  { ROWS_ = Rows, COLS_ = Cols, SIZE_ = Rows * Cols }
 
- Public Types inherited from fiber::_LValue< Scalar, Matrix< Scalar, Rows, Cols > >
typedef StreamAssignment
< _LValue< Scalar, Matrix
< Scalar, Rows, Cols > > > 
StreamAssign
 

Public Member Functions

Size cols () const
 
 Matrix ()
 Default constructor. More...
 
template<typename Exp >
 Matrix (const _RValue< Scalar, Exp > &exp)
 Construct from any MatrixExpression: More...
 
 Matrix (Scalar x0, Scalar x1, Scalar x2, Scalar x3)
 Fixed size construction. More...
 
 Matrix (Scalar x0, Scalar x1, Scalar x2)
 Fixed size construction. More...
 
 Matrix (Scalar x0, Scalar x1)
 Fixed size construction. More...
 
 Matrix (Scalar a)
 
Scalar & operator() (int i, int j)
 
Scalar operator() (int i, int j) const
 
Scalar & operator[] (Index i)
 
Scalar const & operator[] (Index i) const
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_LValue< Scalar, Matrix< Scalar, Rows, Cols > >
Size cols () const
 
Scalar & operator() (Size i, Size j)
 
Scalar const & operator() (Size i, Size j) const
 
StreamAssign operator<< (Scalar x)
 returns a stream for assignment More...
 
_LValue< Scalar, Matrix
< Scalar, Rows, Cols > > & 
operator= (_RValue< Scalar, Exp2 > const &B)
 
Scalar & operator[] (Size i)
 
Scalar const & operator[] (Size i) const
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_RValue< Scalar, Matrix< Scalar, Rows, Cols > >
Size cols () const
 
Scalar operator() (Size i, Size j) const
 
Scalar operator[] (Size i) const
 
Size rows () const
 
Size size () const
 

Protected Attributes

Scalar data_ [Rows *Cols]
 

Detailed Description

template<typename Scalar, int Rows, int Cols>
class fiber::Matrix< Scalar, Rows, Cols >

Definition at line 32 of file matrix.h.

Member Enumeration Documentation

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

Definition at line 39 of file matrix.h.

Constructor & Destructor Documentation

template<typename Scalar, int Rows, int Cols>
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( )
inline

Default constructor.

Definition at line 70 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
template<typename Exp >
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( const _RValue< Scalar, Exp > &  exp)
inline

Construct from any MatrixExpression:

Definition at line 74 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( Scalar  x0,
Scalar  x1,
Scalar  x2,
Scalar  x3 
)
inline

Fixed size construction.

Definition at line 105 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( Scalar  x0,
Scalar  x1,
Scalar  x2 
)
inline

Fixed size construction.

Definition at line 115 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( Scalar  x0,
Scalar  x1 
)
inline

Fixed size construction.

Definition at line 124 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
fiber::Matrix< Scalar, Rows, Cols >::Matrix ( Scalar  a)
inline

Definition at line 132 of file matrix.h.

Member Function Documentation

template<typename Scalar, int Rows, int Cols>
Size fiber::Matrix< Scalar, Rows, Cols >::cols ( ) const
inline

Definition at line 47 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Scalar& fiber::Matrix< Scalar, Rows, Cols >::operator() ( int  i,
int  j 
)
inline

Definition at line 59 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Scalar fiber::Matrix< Scalar, Rows, Cols >::operator() ( int  i,
int  j 
) const
inline

Definition at line 64 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Scalar& fiber::Matrix< Scalar, Rows, Cols >::operator[] ( Index  i)
inline

Definition at line 49 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Scalar const& fiber::Matrix< Scalar, Rows, Cols >::operator[] ( Index  i) const
inline

Definition at line 54 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Size fiber::Matrix< Scalar, Rows, Cols >::rows ( ) const
inline

Definition at line 46 of file matrix.h.

template<typename Scalar, int Rows, int Cols>
Size fiber::Matrix< Scalar, Rows, Cols >::size ( ) const
inline

Definition at line 45 of file matrix.h.

Member Data Documentation

template<typename Scalar, int Rows, int Cols>
Scalar fiber::Matrix< Scalar, Rows, Cols >::data_[Rows *Cols]
protected

Definition at line 36 of file matrix.h.


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