#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< n, m, T > | _1 () const |
Return the inverse of the matrix. | |
template<typename F > | |
mat (const Function_v2v< F > &f) | |
Constructor; coordinates are set by function f . | |
mat (const literal::zero_t &) | |
mat (const literal::identity_t &) | |
template<typename U > | |
mat (const mat< n, m, U > &rhs) | |
mat () | |
mat (const literal::one_t &) | |
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 |
mat< m, n, T > | t () const |
Return the transpose of the matrix. | |
Static Public Member Functions | |
static mat | identity () |
Static Public Attributes | |
static const mat< n, m, T > | Id = mat<n,m,T>::identity() |
Private Member Functions | |
void | set_id_ () |
Private Attributes | |
T | data_ [n][m] |
typedef Object<void> mln::Object< mat< n, m, T > >::category [inherited] |
typedef T mln::algebra::mat< n, m, T >::coord |
typedef mat< n, m, T > mln::Object< mat< n, m, T > >::exact_t [inherited] |
mln::algebra::mat< n, m, T >::mat | ( | ) | [inline] |
mln::algebra::mat< n, m, T >::mat | ( | const literal::zero_t & | ) | [inline] |
References mln::algebra::mat< n, m, T >::set_all().
mln::algebra::mat< n, m, T >::mat | ( | const literal::one_t & | ) | [inline] |
References mln::algebra::mat< n, m, T >::set_id_().
mln::algebra::mat< n, m, T >::mat | ( | const literal::identity_t & | ) | [inline] |
References mln::algebra::mat< n, m, T >::set_id_().
mln::algebra::mat< n, m, T >::mat | ( | const mat< n, m, U > & | rhs | ) | [inline] |
References mln::algebra::mat< n, m, T >::data_, and mln::rhs.
mln::algebra::mat< n, m, T >::mat | ( | const Function_v2v< F > & | f | ) | [inline] |
Constructor; coordinates are set by function f
.
References mln::algebra::mat< n, m, T >::data_, and mln::exact().
mat< n, m, T > mln::algebra::mat< n, m, T >::_1 | ( | ) | const [inline] |
Return the inverse of the matrix.
Only compile on square matrix.
References mln::algebra::internal::inverse().
Referenced by mln::fun::stat::mahalanobis< V >::mahalanobis().
mat< n, m, T > mln::algebra::mat< n, m, T >::identity | ( | ) | [inline, static] |
const T & mln::algebra::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | const [inline] |
References mln::algebra::mat< n, m, T >::data_.
T & mln::algebra::mat< n, m, T >::operator() | ( | unsigned | i, | |
unsigned | j | |||
) | [inline] |
References mln::algebra::mat< n, m, T >::data_.
mat< n, m, T > & mln::algebra::mat< n, m, T >::operator= | ( | const mat< n, m, U > & | rhs | ) | [inline] |
References mln::algebra::mat< n, m, T >::data_, and mln::rhs.
void mln::algebra::mat< n, m, T >::set_all | ( | const T & | val | ) | [inline] |
References mln::algebra::mat< n, m, T >::data_.
Referenced by mln::accu::stat::var< T >::init(), and mln::algebra::mat< n, m, T >::mat().
void mln::algebra::mat< n, m, T >::set_id_ | ( | ) | [inline, private] |
References mln::algebra::mat< n, m, T >::data_, mln::literal::one, and mln::literal::zero.
Referenced by mln::algebra::mat< n, m, T >::mat().
unsigned mln::algebra::mat< n, m, T >::size | ( | ) | const [inline] |
mat< m, n, T > mln::algebra::mat< n, m, T >::t | ( | ) | const [inline] |
Return the transpose of the matrix.
References mln::algebra::mat< n, m, T >::data_.
Referenced by mln::registration::get_rot(), mln::accu::stat::var< T >::take(), mln::accu::stat::var< T >::take_as_init_(), and mln::accu::stat::var< T >::take_n_times_().
T mln::algebra::mat< n, m, T >::data_[n][m] [private] |
const mat< n, m, T > mln::algebra::mat< n, m, T >::Id = mat<n,m,T>::identity() [static] |