#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] |
Definition at line 85 of file metal/mat.hh.
typedef Object<void> mln::Object< mat< n, m, T > >::category [inherited] |
typedef T mln::metal::mat< n, m, T >::coord |
Definition at line 89 of file metal/mat.hh.
typedef mat< n, m, T > mln::Object< mat< n, m, T > >::exact_t [inherited] |
anonymous enum |
Definition at line 90 of file metal/mat.hh.
mln::metal::mat< n, m, T >::mat | ( | ) | [inline] |
Definition at line 96 of file metal/mat.hh.
mln::metal::mat< n, m, T >::mat | ( | const mat< n, m, U > & | rhs | ) | [inline] |
Definition at line 282 of file metal/mat.hh.
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
.
Definition at line 292 of file metal/mat.hh.
References mln::metal::mat< n, m, T >::data_, and mln::exact().
mat< n, m, T > mln::metal::mat< n, m, T >::identity | ( | ) | [inline, static] |
Definition at line 265 of file metal/mat.hh.
T & mln::metal::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | [inline] |
Definition at line 325 of file metal/mat.hh.
References mln::metal::mat< n, m, T >::data_.
const T & mln::metal::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | const [inline] |
Definition at line 316 of file metal/mat.hh.
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] |
Definition at line 305 of file metal/mat.hh.
References mln::metal::mat< n, m, T >::data_, and mln::rhs.
void mln::metal::mat< n, m, T >::set_all | ( | const T & | val | ) | [inline] |
Definition at line 333 of file metal/mat.hh.
References mln::metal::mat< n, m, T >::data_.
unsigned mln::metal::mat< n, m, T >::size | ( | ) | const [inline] |
Definition at line 342 of file metal/mat.hh.
T mln::metal::mat< n, m, T >::data_[n][m] [private] |
Definition at line 121 of file metal/mat.hh.
Referenced by mln::metal::mat< n, m, T >::mat(), mln::metal::mat< n, m, T >::operator()(), mln::metal::mat< n, m, T >::operator=(), and mln::metal::mat< n, m, T >::set_all().
const mat< n, m, T > mln::metal::mat< n, m, T >::Id = mat<n,m,T>::identity() [static] |
Definition at line 94 of file metal/mat.hh.