#include <TrackPropagation/RungeKutta/interface/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. | |
RKSmallVector & | operator *= (const T &t) |
Scaling by a scalar value (multiplication). | |
T & | operator() (int i) |
const T & | operator() (int i) const |
access to values | |
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 |
template<class Iter> | |
RKSmallVector (Iter begin, Iter end) | |
construct from pair of iterators; when dereferenced, they should return a type convertible to Scalar. | |
RKSmallVector (const Scalar *d) | |
Construct from array. | |
RKSmallVector () | |
int | size () const |
Private Attributes | |
Scalar | data_ [N] |
Definition at line 9 of file RKSmallVector.h.
typedef T RKSmallVector< T, N >::Scalar |
Definition at line 11 of file RKSmallVector.h.
RKSmallVector< T, N >::RKSmallVector | ( | ) | [inline] |
RKSmallVector< T, N >::RKSmallVector | ( | const Scalar * | d | ) | [inline] |
RKSmallVector< T, N >::RKSmallVector | ( | Iter | begin, | |
Iter | end | |||
) | [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 22 of file RKSmallVector.h.
References RKSmallVector< T, N >::data_, i, and N.
int RKSmallVector< T, N >::dim | ( | ) | const [inline] |
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] |
RKSmallVector& RKSmallVector< T, N >::operator *= | ( | const T & | t | ) | [inline] |
T& RKSmallVector< T, N >::operator() | ( | int | i | ) | [inline] |
const T& RKSmallVector< T, N >::operator() | ( | int | i | ) | const [inline] |
access to values
Definition at line 30 of file RKSmallVector.h.
References RKSmallVector< T, N >::data_.
RKSmallVector& RKSmallVector< T, N >::operator+= | ( | const RKSmallVector< U, N > & | v | ) | [inline] |
RKSmallVector RKSmallVector< T, N >::operator- | ( | ) | const [inline] |
Unary minus, returns a vector with negated components.
Definition at line 58 of file RKSmallVector.h.
References RKSmallVector< T, N >::data_, i, N, and r.
00058 { 00059 RKSmallVector r; 00060 for (int i=0; i<N; ++i) r[i] = -data_[i]; 00061 return r; 00062 }
RKSmallVector& RKSmallVector< T, N >::operator-= | ( | const RKSmallVector< U, N > & | v | ) | [inline] |
RKSmallVector& RKSmallVector< T, N >::operator/= | ( | const T & | t | ) | [inline] |
T& RKSmallVector< T, N >::operator[] | ( | int | i | ) | [inline] |
const T& RKSmallVector< T, N >::operator[] | ( | int | i | ) | const [inline] |
int RKSmallVector< T, N >::size | ( | void | ) | const [inline] |
Scalar RKSmallVector< T, N >::data_[N] [private] |
Definition at line 84 of file RKSmallVector.h.
Referenced by RKSmallVector< T, N >::dot(), RKSmallVector< T, N >::increment(), RKSmallVector< T, N >::operator *=(), RKSmallVector< T, N >::operator()(), RKSmallVector< T, N >::operator+=(), RKSmallVector< T, N >::operator-(), RKSmallVector< T, N >::operator-=(), RKSmallVector< T, N >::operator/=(), RKSmallVector< T, N >::operator[](), and RKSmallVector< T, N >::RKSmallVector().