|
#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 |
bool | operator< (const SmallVector &right) const |
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
|
inline |
|
inline |
|
inline |
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data(), SmallVector< numberOfRows >::data_, and logger.
|
inline |
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
Referenced by main(), SmallMatrix< numberOfRows, numberOfColumns >::operator*(), operator*(), SmallMatrix< numberOfRows, numberOfColumns >::SmallMatrix(), SmallVector< numberOfRows >::SmallVector(), and SmallMatrix< numberOfRows, numberOfColumns >::solve().
|
inline |
References SmallVector< numberOfRows >::length().
|
inline |
References SmallVector< numberOfRows >::data_, DEBUG, and logger.
Referenced by SuperQuadricParticle::getCurvature(), and SmallVector< numberOfRows >::getNormalised().
|
inline |
|
inline |
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal.
References SmallVector< numberOfRows >::data_, and constants::i.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
References SmallVector< numberOfRows >::data_.
|
inline |
This function is dangerous to use, since it compares doubles without a tolerance interval to see if they are equal.
References SmallVector< numberOfRows >::data_, and constants::i.
|
inline |
|
inline |
|
inline |
Referenced by main(), SmallMatrix< numberOfRows, numberOfColumns >::operator*(), and operator*().
|
private |
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().