#include <RKSmallVector.h>
Public Types | |
typedef T | Scalar |
Public Member Functions | |
int | dim () const |
T | dot (const RKSmallVector &v) const |
Scalar product, or "dot" product, with a vector of same type. | |
template<class U > | |
RKSmallVector & | increment (const RKSmallVector< U, N > &v, const T &t) |
Increment by another vector multiplied by a scalar. | |
const T & | operator() (int i) const |
access to values | |
T & | operator() (int i) |
RKSmallVector & | operator*= (const T &t) |
Scaling by a scalar value (multiplication) | |
template<class U > | |
RKSmallVector & | operator+= (const RKSmallVector< U, N > &v) |
Operations with vector of same size. | |
RKSmallVector | operator- () const |
Unary minus, returns a vector with negated components. | |
template<class U > | |
RKSmallVector & | operator-= (const RKSmallVector< U, N > &v) |
RKSmallVector & | operator/= (const T &t) |
Scaling by a scalar value (division) | |
T & | operator[] (int i) |
const T & | operator[] (int i) const |
RKSmallVector (const Scalar *d) | |
Construct from array. | |
RKSmallVector () | |
template<class Iter > | |
RKSmallVector (Iter begin, Iter end) | |
int | size () const |
Private Attributes | |
Scalar | data_ [N] |
Definition at line 10 of file RKSmallVector.h.
typedef T RKSmallVector< T, N >::Scalar |
Definition at line 12 of file RKSmallVector.h.
RKSmallVector< T, N >::RKSmallVector | ( | ) | [inline] |
Definition at line 14 of file RKSmallVector.h.
{}
RKSmallVector< T, N >::RKSmallVector | ( | const Scalar * | d | ) | [inline] |
RKSmallVector< T, N >::RKSmallVector | ( | Iter | begin, |
Iter | end | ||
) | [inline] |
int RKSmallVector< T, N >::dim | ( | ) | const [inline] |
Definition at line 28 of file RKSmallVector.h.
{return N;}
T RKSmallVector< T, N >::dot | ( | const RKSmallVector< T, N > & | v | ) | const [inline] |
RKSmallVector& RKSmallVector< T, N >::increment | ( | const RKSmallVector< U, N > & | v, |
const T & | t | ||
) | [inline] |
T& RKSmallVector< T, N >::operator() | ( | int | i | ) | [inline] |
Definition at line 32 of file RKSmallVector.h.
const T& RKSmallVector< T, N >::operator() | ( | int | i | ) | const [inline] |
RKSmallVector& RKSmallVector< T, N >::operator*= | ( | const T & | t | ) | [inline] |
RKSmallVector& RKSmallVector< T, N >::operator+= | ( | const RKSmallVector< U, N > & | v | ) | [inline] |
RKSmallVector RKSmallVector< T, N >::operator- | ( | ) | const [inline] |
RKSmallVector& RKSmallVector< T, N >::operator-= | ( | const RKSmallVector< U, N > & | v | ) | [inline] |
RKSmallVector& RKSmallVector< T, N >::operator/= | ( | const T & | t | ) | [inline] |
const T& RKSmallVector< T, N >::operator[] | ( | int | i | ) | const [inline] |
Definition at line 33 of file RKSmallVector.h.
T& RKSmallVector< T, N >::operator[] | ( | int | i | ) | [inline] |
Definition at line 34 of file RKSmallVector.h.
int RKSmallVector< T, N >::size | ( | void | ) | const [inline] |
Definition at line 27 of file RKSmallVector.h.
{return N;}
Scalar RKSmallVector< T, N >::data_[N] [private] |
Definition at line 85 of file RKSmallVector.h.