Public Member Functions |
Vec< T, M > & | add (const Vec< T, M > &v) |
Vec< T, M > | add (const T a) |
T & | at (const int i) |
const T & | at (const int i) const |
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) const |
T & | operator() (const int i) |
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 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 Vec< T, M > &v) const |
Vec< T, M > | operator- () 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< bool, M > | operator< (const Vec< T, M > &v) const |
Vec< bool, M > | operator<= (const Vec< T, M > &v) const |
Vec< T, M > & | operator= (const T a) |
Vec< T, M > & | operator= (const T *d) |
Vec< T, M > & | operator= (const Vec< T, M > &v) |
template<class U > |
Vec< T, M > & | operator= (const Vec< U, M > &v) |
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) const |
T & | operator[] (const int i) |
SMat< T, M > | outer (const Vec< T, M > &v) const |
SMat< T, M > | outer () const |
void | perform (T(*mathFun)(T)) |
void | perform (T(*mathFun)(T, T), const T arg2) |
void | perform (T(*mathFun)(T, T), const Vec< T, M > &v) |
Vec< T, M > | performed (T(*mathFun)(T)) |
Vec< T, M > | performed (T(*mathFun)(T, T), const T arg2) |
Vec< T, M > | performed (T(*mathFun)(T, T), const Vec< T, M > &v) |
T | pnorm (float p) const |
T | prod () const |
bool | read (InputHandler &ih) |
void | set (const T *d) |
void | set (const T a) |
void | set (const Vec< T, M > &v) |
template<class U > |
void | set (const Vec< U, M > &v) |
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 Vec< T, M > &v) |
Vec< T, M > | subtract (const T a) |
T | sum () const |
| Vec () |
| Vec (const T *d) |
| Vec (const T a) |
| Vec (const Vec< T, M > &v) |
template<class U > |
| Vec (const Vec< U, M > &v) |
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
|
template<class T, int M>
class rtc::Vec< T, M >
An M-Dimensional statically allocated vector. Represents an M dimensional vector of type T
Definition at line 44 of file rtcVec.h.