#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. More... | |
template<class U > | |
RKSmallVector & | increment (const RKSmallVector< U, N > &v, const T &t) |
Increment by another vector multiplied by a scalar. More... | |
const T & | operator() (int i) const |
access to values More... | |
T & | operator() (int i) |
RKSmallVector & | operator*= (const T &t) |
Scaling by a scalar value (multiplication) More... | |
template<class U > | |
RKSmallVector & | operator+= (const RKSmallVector< U, N > &v) |
Operations with vector of same size. More... | |
RKSmallVector | operator- () const |
Unary minus, returns a vector with negated components. More... | |
template<class U > | |
RKSmallVector & | operator-= (const RKSmallVector< U, N > &v) |
RKSmallVector & | operator/= (const T &t) |
Scaling by a scalar value (division) More... | |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
RKSmallVector () | |
RKSmallVector (const Scalar *d) | |
Construct from array. More... | |
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.
|
inline |
Definition at line 14 of file RKSmallVector.h.
|
inline |
|
inline |
construct from pair of iterators; when dereferenced, they should return a type convertible to Scalar. The iterator range shold be exactly N
Definition at line 23 of file RKSmallVector.h.
|
inline |
Definition at line 28 of file RKSmallVector.h.
|
inline |
Scalar product, or "dot" product, with a vector of same type.
Definition at line 77 of file RKSmallVector.h.
|
inline |
|
inline |
|
inline |
Definition at line 32 of file RKSmallVector.h.
|
inline |
|
inline |
|
inline |
Unary minus, returns a vector with negated components.
Definition at line 59 of file RKSmallVector.h.
|
inline |
Definition at line 45 of file RKSmallVector.h.
|
inline |
|
inline |
Definition at line 33 of file RKSmallVector.h.
|
inline |
Definition at line 34 of file RKSmallVector.h.
|
inline |
Definition at line 27 of file RKSmallVector.h.
|
private |
Definition at line 85 of file RKSmallVector.h.