$extrastylesheet
#include <mln/algebra/vec.hh>
Public Member Functions | |
vec () | |
vec (const vec< n, T > &rhs) | |
template<typename U > | |
vec (const vec< n, U > &rhs) | |
template<typename F > | |
vec (const Function_v2v< F > &f) | |
template<typename U > | |
vec (const mat< n, 1, U > &rhs) | |
const vec< n, T > & | normalize () |
template<typename U > | |
operator mat< n, 1, U > () const | |
template<typename U > | |
vec & | operator= (const vec< n, U > &rhs) |
template<typename U > | |
vec & | operator= (const mat< n, 1, U > &rhs) |
const T & | operator[] (unsigned i) const |
T & | operator[] (unsigned i) |
void | set_all (const T &val) |
unsigned | size () const |
mat< 1, n, T > | t () const |
algebra::h_vec< n, T > | to_h_vec () const |
vec (const literal::zero_t &) | |
vec & | operator= (const literal::zero_t &) |
vec (const literal::origin_t &) | |
vec & | operator= (const literal::origin_t &) |
Static Public Attributes | |
static const vec< n, T > | origin |
static const vec< n, T > | zero |
Protected Attributes | |
T | data_ [n] |
Public Types | |
enum | { dim = n } |
typedef Object< void > | category |
typedef T | coord |
typedef T | enc [n] |
typedef T | equiv [n] |
typedef vec< n, T > | exact_t |
N-dimensional vector.
Definition at line 185 of file algebra/vec.hh.
mln::algebra::vec< n, T >::vec | ( | ) |
mln::algebra::vec< n, T >::vec | ( | const literal::zero_t & | ) |
Constructors/assignments with literal::zero.
mln::algebra::vec< n, T >::vec | ( | const literal::origin_t & | ) |
Constructors/assignments with literal::origin.
mln::algebra::vec< n, T >::vec | ( | const vec< n, T > & | rhs | ) |
mln::algebra::vec< n, T >::vec | ( | const vec< n, U > & | rhs | ) |
mln::algebra::vec< n, T >::vec | ( | const Function_v2v< F > & | f | ) |
Constructor; coordinates are set by function f
.
mln::algebra::vec< n, T >::vec | ( | const mat< n, 1, U > & | rhs | ) |
Construction from a matrix.
const vec<n, T>& mln::algebra::vec< n, T >::normalize | ( | ) |
mln::algebra::vec< n, T >::operator mat< n, 1, U > | ( | ) | const |
Conversion to a matrix.
vec& mln::algebra::vec< n, T >::operator= | ( | const literal::zero_t & | ) |
vec& mln::algebra::vec< n, T >::operator= | ( | const literal::origin_t & | ) |
vec& mln::algebra::vec< n, T >::operator= | ( | const vec< n, U > & | rhs | ) |
vec& mln::algebra::vec< n, T >::operator= | ( | const mat< n, 1, U > & | rhs | ) |
Assignment from a matrix.
const T& mln::algebra::vec< n, T >::operator[] | ( | unsigned | i | ) | const |
T& mln::algebra::vec< n, T >::operator[] | ( | unsigned | i | ) |
void mln::algebra::vec< n, T >::set_all | ( | const T & | val | ) |
unsigned mln::algebra::vec< n, T >::size | ( | ) | const |
mat<1, n, T> mln::algebra::vec< n, T >::t | ( | ) | const |
Transposition.
algebra::h_vec<n, T> mln::algebra::vec< n, T >::to_h_vec | ( | ) | const |
|
protectedinherited |
Definition at line 120 of file algebra/vec.hh.
|
static |
Origin value.
Definition at line 258 of file algebra/vec.hh.
|
static |
Zero value.
Definition at line 255 of file algebra/vec.hh.
|
inherited |
typedef T mln::algebra::vec< n, T >::coord |
Definition at line 197 of file algebra/vec.hh.
typedef T mln::algebra::vec< n, T >::enc[n] |
Definition at line 195 of file algebra/vec.hh.
typedef T mln::algebra::vec< n, T >::equiv[n] |
Definition at line 194 of file algebra/vec.hh.
anonymous enum |
Definition at line 198 of file algebra/vec.hh.