#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] |
Definition at line 85 of file algebra/mat.hh.
typedef Object<void> mln::Object< mat< n, m, T > >::category [inherited] |
| typedef T mln::algebra::mat< n, m, T >::coord |
Definition at line 89 of file algebra/mat.hh.
typedef mat< n, m, T > mln::Object< mat< n, m, T > >::exact_t [inherited] |
| anonymous enum |
Definition at line 90 of file algebra/mat.hh.
| mln::algebra::mat< n, m, T >::mat | ( | ) | [inline] |
Definition at line 429 of file algebra/mat.hh.
| mln::algebra::mat< n, m, T >::mat | ( | const literal::zero_t & | ) | [inline] |
Definition at line 435 of file algebra/mat.hh.
References mln::algebra::mat< n, m, T >::set_all().
| mln::algebra::mat< n, m, T >::mat | ( | const literal::one_t & | ) | [inline] |
Definition at line 455 of file algebra/mat.hh.
References mln::algebra::mat< n, m, T >::set_id_().
| mln::algebra::mat< n, m, T >::mat | ( | const literal::identity_t & | ) | [inline] |
Definition at line 462 of file algebra/mat.hh.
References mln::algebra::mat< n, m, T >::set_id_().
| mln::algebra::mat< n, m, T >::mat | ( | const mat< n, m, U > & | rhs | ) | [inline] |
Definition at line 470 of file algebra/mat.hh.
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.
Definition at line 480 of file algebra/mat.hh.
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.
Definition at line 604 of file algebra/mat.hh.
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] |
Definition at line 413 of file algebra/mat.hh.
| const T & mln::algebra::mat< n, m, T >::operator() | ( | unsigned | i, | |
| unsigned | j | |||
| ) | const [inline] |
Definition at line 504 of file algebra/mat.hh.
References mln::algebra::mat< n, m, T >::data_.
| T & mln::algebra::mat< n, m, T >::operator() | ( | unsigned | i, | |
| unsigned | j | |||
| ) | [inline] |
Definition at line 513 of file algebra/mat.hh.
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] |
Definition at line 493 of file algebra/mat.hh.
References mln::algebra::mat< n, m, T >::data_, and mln::rhs.
| void mln::algebra::mat< n, m, T >::set_all | ( | const T & | val | ) | [inline] |
Definition at line 521 of file algebra/mat.hh.
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] |
Definition at line 443 of file algebra/mat.hh.
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] |
Definition at line 530 of file algebra/mat.hh.
| mat< m, n, T > mln::algebra::mat< n, m, T >::t | ( | ) | const [inline] |
Return the transpose of the matrix.
Definition at line 538 of file algebra/mat.hh.
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] |
Definition at line 131 of file algebra/mat.hh.
Referenced by mln::algebra::mat< n, m, T >::mat(), mln::algebra::mat< n, m, T >::operator()(), mln::algebra::mat< n, m, T >::operator=(), mln::algebra::mat< n, m, T >::set_all(), mln::algebra::mat< n, m, T >::set_id_(), and mln::algebra::mat< n, m, T >::t().
const mat< n, m, T > mln::algebra::mat< n, m, T >::Id = mat<n,m,T>::identity() [static] |
Definition at line 94 of file algebra/mat.hh.
1.7.1