MercuryDPM
Trunk
|
Implementation of a 3D vector (by Vitaliy). More...
#include <SmallVector.h>
Public Member Functions | |
SmallVector () | |
SmallVector (const SmallVector &other) | |
SmallVector (SmallVector &&other) | |
SmallVector (const Mdouble array[]) | |
SmallVector (std::initializer_list< Mdouble > data) | |
SmallVector & | operator= (const SmallVector &right) |
SmallVector & | operator= (const std::array< Mdouble, numberOfRows > l) |
SmallVector | operator+ (const SmallVector &right) const |
SmallVector | operator- (const SmallVector &right) const |
SmallVector | operator* (const Mdouble &right) const |
Mdouble | operator* (const SmallVector &right) const |
Computes inner product between two vectors. More... | |
SmallVector & | operator/= (const Mdouble &right) |
SmallVector | operator/ (const Mdouble &right) const |
void | axpy (Mdouble a, const SmallVector &x) |
bool | operator== (const SmallVector &right) const |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal. More... | |
bool | operator< (const SmallVector &right) const |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal. More... | |
SmallVector & | operator+= (const SmallVector &right) |
SmallVector & | operator-= (const SmallVector &right) |
SmallVector & | operator*= (const double &right) |
Mdouble & | operator[] (unsigned int n) |
const Mdouble & | operator[] (unsigned int n) const |
Mdouble & | operator() (unsigned int n) |
const Mdouble & | operator() (unsigned int n) const |
unsigned int | size () const |
const Mdouble * | data () const |
Mdouble * | data () |
SmallVector | operator- () const |
Mdouble | length () const |
SmallVector< numberOfRows > | getNormalised () const |
Private Attributes | |
std::array< Mdouble, numberOfRows > | data_ |
Implementation of a 3D vector (by Vitaliy).
Modifications 21:9:2009 - Added the inclusion guards and some include objects
Definition at line 61 of file SmallVector.h.
|
inline |
Definition at line 66 of file SmallVector.h.
|
inline |
Definition at line 71 of file SmallVector.h.
|
inline |
Definition at line 76 of file SmallVector.h.
|
inline |
|
inline |
Definition at line 87 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and logger.
|
inline |
Definition at line 150 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and constants::i.
|
inline |
Definition at line 238 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
Referenced by SmallMatrix< numberOfRows, numberOfColumns >::operator*(), operator*(), SmallMatrix< numberOfRows, numberOfColumns >::SmallMatrix(), and SmallMatrix< numberOfRows, numberOfColumns >::solve().
|
inline |
|
inline |
|
inline |
Definition at line 253 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, DEBUG, and logger.
Referenced by SuperQuadricParticle::getCurvature(), and SmallVector< numberOfRows >::getNormalised().
|
inline |
Definition at line 221 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and logger.
|
inline |
Definition at line 227 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and logger.
|
inline |
Definition at line 121 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
Computes inner product between two vectors.
Definition at line 130 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
|
inline |
Definition at line 107 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
Definition at line 190 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
Definition at line 114 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
Definition at line 248 of file SmallVector.h.
|
inline |
Definition at line 196 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
Definition at line 142 of file SmallVector.h.
References SmallVector< numberOfRows >::data_.
|
inline |
|
inline |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal.
Definition at line 174 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and constants::i.
|
inline |
|
inline |
|
inline |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal.
Definition at line 160 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and constants::i.
|
inline |
Definition at line 209 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and logger.
|
inline |
Definition at line 215 of file SmallVector.h.
References SmallVector< numberOfRows >::data_, and logger.
|
inline |
Definition at line 233 of file SmallVector.h.
Referenced by SmallMatrix< numberOfRows, numberOfColumns >::operator*(), and operator*().
|
private |
Definition at line 270 of file SmallVector.h.
Referenced by SmallVector< numberOfRows >::axpy(), SmallVector< numberOfRows >::data(), SmallVector< numberOfRows >::length(), SmallVector< numberOfRows >::operator()(), SmallVector< numberOfRows >::operator*(), SmallVector< numberOfRows >::operator*=(), SmallVector< numberOfRows >::operator+(), SmallVector< numberOfRows >::operator+=(), SmallVector< numberOfRows >::operator-(), SmallVector< numberOfRows >::operator-=(), SmallVector< numberOfRows >::operator/(), SmallVector< numberOfRows >::operator/=(), SmallVector< numberOfRows >::operator<(), SmallVector< numberOfRows >::operator=(), SmallVector< numberOfRows >::operator==(), SmallVector< numberOfRows >::operator[](), and SmallVector< numberOfRows >::SmallVector().