Public Member Functions |
Vec< T, M > | add (const T a) |
Vec< T, M > & | add (const Vec< T, M > &v) |
const T & | at (const int i) const |
T & | at (const int i) |
int | compareTo (const Vec< T, M > &v) const |
Vec< T, M > | cumsum () const |
T | dot (const Vec< T, M > &v) const |
bool | equalTo (const Vec< T, M > &v, const T tol=T(0)) const |
template<int N> |
Vec< T, N > | getSubVec (const int i) const |
T | max () const |
Vec< T, M > | maximize (const Vec< T, M > &other) |
T | min () const |
Vec< T, M > | minimize (const Vec< T, M > &other) |
T | norm () const |
T | normalize () |
Vec< T, M > | normalized () const |
T | normSqr () const |
bool | operator!= (const Vec< T, M > &v) const |
T & | operator() (const int i) |
T | operator() (const int i) const |
Vec< T, M > | operator* (const Vec< T, M > &v) const |
Vec< T, M > | operator* (const T a) const |
void | operator*= (const Vec< T, M > &v) |
void | operator*= (const T a) |
Vec< T, M > | operator+ (const T a) const |
Vec< T, M > | operator+ (const Vec< T, M > &v) const |
void | operator+= (const T a) |
void | operator+= (const Vec< T, M > &v) |
Vec< T, M > | operator- (const T a) const |
Vec< T, M > | operator- () const |
Vec< T, M > | operator- (const Vec< T, M > &v) const |
void | operator-= (const T a) |
void | operator-= (const Vec< T, M > &v) |
Vec< T, M > | operator/ (const Vec< T, M > &v) const |
Vec< T, M > | operator/ (const T a) const |
void | operator/= (const Vec< T, M > &v) |
void | operator/= (const T a) |
Vec< bool, M > | operator< (const Vec< T, M > &v) const |
Vec< bool, M > | operator<= (const Vec< T, M > &v) const |
template<class U > |
Vec< T, M > & | operator= (const Vec< U, M > &v) |
Vec< T, M > & | operator= (const Vec< T, M > &v) |
Vec< T, M > & | operator= (const T *d) |
Vec< T, M > & | operator= (const T a) |
bool | operator== (const Vec< T, M > &v) const |
Vec< bool, M > | operator> (const Vec< T, M > &v) const |
Vec< bool, M > | operator>= (const Vec< T, M > &v) const |
T & | operator[] (const int i) |
T | operator[] (const int i) const |
SMat< T, M > | outer () const |
SMat< T, M > | outer (const Vec< T, M > &v) const |
void | perform (T(*mathFun)(T, T), const Vec< T, M > &v) |
void | perform (T(*mathFun)(T, T), const T arg2) |
void | perform (T(*mathFun)(T)) |
Vec< T, M > | performed (T(*mathFun)(T, T), const Vec< T, M > &v) |
Vec< T, M > | performed (T(*mathFun)(T, T), const T arg2) |
Vec< T, M > | performed (T(*mathFun)(T)) |
T | pnorm (float p) const |
T | prod () const |
bool | read (InputHandler &ih) |
template<class U > |
void | set (const Vec< U, M > &v) |
void | set (const Vec< T, M > &v) |
void | set (const T a) |
void | set (const T *d) |
template<int N> |
void | setSubVec (const int i, const Vec< T, N > &v) |
void | sort (bool ascending=true) |
Vec< T, M > | sorted (bool ascending=true) |
Vec< T, M > | subtract (const T a) |
Vec< T, M > & | subtract (const Vec< T, M > &v) |
T | sum () const |
template<class U > |
| Vec (const Vec< U, M > &v) |
| Vec (const Vec< T, M > &v) |
| Vec (const T a) |
| Vec (const T *d) |
| Vec () |
bool | write (OutputHandler &oh) const |
Static Public Member Functions |
static Vec< T, M > | multivariateGauss (const Vec< T, M > &mean, const SMat< T, M > &cov) |
static Vec< T, M > | normalRand (const T mean=T(0), const T stdev=T(1)) |
static Vec< T, M > | uniformRand (const T a=T(0), const T b=T(1)) |
Public Attributes |
T | x [M] |
| storage array
|
An M-Dimensional statically allocated vector. Represents an M dimensional vector of type T