#include <mat.hh>
Public Types | |
enum | { N = n, M = m, dim = n * m } |
typedef Object< void > | category |
typedef T | coord |
typedef mat< n, m, T > | exact_t |
Public Member Functions | |
mat () | |
template<typename U > | |
mat (const mat< n, m, U > &rhs) | |
template<typename F > | |
mat (const Function_v2v< F > &f) | |
Constructor; coordinates are set by function f . | |
const T & | operator() (unsigned i, unsigned j) const |
T & | operator() (unsigned i, unsigned j) |
template<typename U > | |
mat & | operator= (const mat< n, m, U > &rhs) |
void | set_all (const T &val) |
unsigned | size () const |
Static Public Member Functions | |
static mat | identity () |
Static Public Attributes | |
static const mat< n, m, T > | Id = mat<n,m,T>::identity() |
Private Attributes | |
T | data_ [n][m] |
typedef Object<void> mln::Object< mat< n, m, T > >::category [inherited] |
typedef T mln::metal::mat< n, m, T >::coord |
typedef mat< n, m, T > mln::Object< mat< n, m, T > >::exact_t [inherited] |
mln::metal::mat< n, m, T >::mat | ( | ) | [inline] |
mln::metal::mat< n, m, T >::mat | ( | const mat< n, m, U > & | rhs | ) | [inline] |
References mln::metal::mat< n, m, T >::data_, and mln::rhs.
mln::metal::mat< n, m, T >::mat | ( | const Function_v2v< F > & | f | ) | [inline] |
Constructor; coordinates are set by function f
.
References mln::metal::mat< n, m, T >::data_, and mln::exact().
mat< n, m, T > mln::metal::mat< n, m, T >::identity | ( | ) | [inline, static] |
T & mln::metal::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | [inline] |
References mln::metal::mat< n, m, T >::data_.
const T & mln::metal::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | const [inline] |
References mln::metal::mat< n, m, T >::data_.
mat< n, m, T > & mln::metal::mat< n, m, T >::operator= | ( | const mat< n, m, U > & | rhs | ) | [inline] |
References mln::metal::mat< n, m, T >::data_, and mln::rhs.
void mln::metal::mat< n, m, T >::set_all | ( | const T & | val | ) | [inline] |
References mln::metal::mat< n, m, T >::data_.
unsigned mln::metal::mat< n, m, T >::size | ( | ) | const [inline] |
T mln::metal::mat< n, m, T >::data_[n][m] [private] |
const mat< n, m, T > mln::metal::mat< n, m, T >::Id = mat<n,m,T>::identity() [static] |