Static (small and dense) vector class. More...
#include "utl/SVector.h"

Public Types | |
| enum | { Size = n } |
| typedef const T * | ConstIterator |
| typedef T * | Iterator |
| typedef T | Type |
Public Member Functions | |
| template<typename V > | |
| void | Assign (const V &v) |
| T & | At (const int i) |
| Element access with bound checking. More... | |
| Iterator | Begin () |
| ConstIterator | Begin () const |
| Iterator | End () |
| ConstIterator | End () const |
| template<std::size_t i> | |
| T & | Get () |
| static getter More... | |
| template<std::size_t i> | |
| const T & | Get () const |
| static getter More... | |
| double | GetMag () const |
| void | Normalize () |
| template<std::size_t nn, typename U > | |
| bool | operator!= (const SVector< nn, U > &v) const |
| template<typename U > | |
| SVector & | operator*= (const U &fact) |
| template<typename U > | |
| SVector & | operator+= (const SVector< n, U > &v) |
| SVector | operator- () const |
| template<typename U > | |
| SVector & | operator-= (const SVector< n, U > &v) |
| template<typename U > | |
| SVector & | operator/= (const U &div) |
| ListVectorAssignmentProxy < SVector > | operator= (const T &e) |
| template<typename V > | |
| SVector & | operator= (const V &v) |
| template<std::size_t nn, typename U > | |
| bool | operator== (const SVector< nn, U > &v) const |
| T & | operator[] (const std::size_t i) |
| const T & | operator[] (const std::size_t i) const |
| SVector ()=default | |
| Default constructor does not initialize data! More... | |
| SVector (const T &init) | |
| template<class V > | |
| SVector (const V &v) | |
Static Public Member Functions | |
| static std::size_t | GetSize () |
Public Attributes | |
| const T & | const |
| double | const |
| mag2 = std::pow(std::abs(fVector[i]), 2) | |
| return | mag2 |
| void | |
Private Attributes | |
| T | fVector [n] |
Static (small and dense) vector class.
Power of unrolled loops.
Please refer to the testSMatrixSVector.cc file for usage cases.
| typedef const T* utl::SVector< n, T >::ConstIterator |
| typedef T* utl::SVector< n, T >::Iterator |
| typedef T utl::SVector< n, T >::Type |
| anonymous enum |
|
default |
Default constructor does not initialize data!
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 60 of file SVector.h.
Referenced by utl::SVector< 3, double >::operator=(), and utl::SVector< 3, double >::SVector().
|
inline |
|
inline |
Definition at line 134 of file SVector.h.
Referenced by utl::SVector< 3, double >::operator-().
|
inline |
|
inline |
Definition at line 137 of file SVector.h.
Referenced by utl::SVector< 3, double >::operator-().
|
inline |
|
inline |
static getter
Definition at line 125 of file SVector.h.
Referenced by TestSMatrixSVector::TestSVectorCtor().
|
inline |
|
inline |
Definition at line 152 of file SVector.h.
Referenced by utl::Angle(), utl::CosAngle(), and utl::SVector< 3, double >::Normalize().
|
inlinestatic |
Definition at line 41 of file SVector.h.
Referenced by RdStationAssociator::RdStationAssociator::Run(), TestSMatrixSVector::TestSVectorCtor(), TestSMatrixSVector::TestSVectorListAssignment(), TestSMatrixSVector::TestSVectorNontrivialTypes(), and TestSMatrixSVector::TestSVectorOp().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 203 of file SVector.h.
Referenced by utl::SVector< 3, double >::operator!=().
|
inline |
|
inline |
| const T& utl::SVector< n, T >::const |
| double utl::SVector< n, T >::const |
|
private |
Definition at line 219 of file SVector.h.
Referenced by utl::SVector< 3, double >::Assign(), utl::SVector< 3, double >::At(), utl::SVector< 3, double >::Begin(), utl::SVector< 3, double >::End(), utl::SVector< 3, double >::Get(), utl::SVector< 3, double >::operator*=(), utl::SVector< 3, double >::operator+=(), utl::SVector< 3, double >::operator-=(), utl::SVector< 3, double >::operator/=(), utl::SVector< 3, double >::operator=(), utl::SVector< 3, double >::operator==(), and utl::SVector< 3, double >::operator[]().
| utl::SVector< n, T >::mag2 = std::pow(std::abs(fVector[i]), 2) |
| return utl::SVector< n, T >::mag2 |
| utl::SVector< n, T >::void |