Rosetta 3.3
|
#include <MathVector.hh>
Public Member Functions | |
MathVector () | |
default constructor | |
MathVector (const core::Size SIZE, const T &FILL_VALUE=T(0)) | |
construct from size and possible filler | |
MathVector (const core::Size SIZE, const T *DATA) | |
construct from length and pointer to data | |
MathVector (const MathVector< T > &VECTOR) | |
copy constructor | |
MathVector< T > * | clone () const |
Clone function. | |
~MathVector () | |
@ brief destructor | |
core::Size | size () const |
size of vector | |
const T * | begin () const |
pointer to First Element | |
T * | begin () |
pointer to First Element | |
const T * | end () const |
pointer to end of range | |
T * | end () |
pointer to end of range | |
T | norm () const |
norm = length of vector | |
T | square_norm () const |
square norm = square length of vector | |
T | sum () const |
sum up all elements | |
MathVector< T > | MakeVector (const T &X) |
construct vector from one element | |
MathVector< T > | MakeVector (const T &X, const T &Y) |
construct vector from two elements | |
MathVector< T > | MakeVector (const T &X, const T &Y, const T &Z) |
construct vector from three elements | |
T & | operator() (const core::Size POS) |
return reference to changeable element ( POS) | |
const T & | operator() (const core::Size POS) const |
return copy of element ( POS) | |
MathVector< T > & | operator= (const MathVector< T > &VECTOR) |
equal operator | |
MathVector< T > & | operator= (const T &VALUE) |
equal operator | |
MathVector< T > & | operator+= (const T &VALUE) |
operator += VALUE | |
MathVector< T > & | operator-= (const T &VALUE) |
operator -= VALUE | |
MathVector< T > & | operator*= (const T &VALUE) |
operator *= VALUE | |
MathVector< T > & | operator/= (const T &VALUE) |
operator /= VALUE | |
MathVector< T > & | operator-= (const MathVector< T > &BASE) |
operator -= BASE | |
MathVector< T > & | operator+= (const MathVector< T > &BASE) |
operator += BASE | |
Protected Member Functions | |
bool | assert_valid_position (const core::Size POS) const |
check whether position is valid |
numeric::MathVector< T >::MathVector | ( | ) | [inline] |
default constructor
numeric::MathVector< T >::MathVector | ( | const core::Size | SIZE, |
const T & | FILL_VALUE = T( 0) |
||
) | [inline, explicit] |
construct from size and possible filler
SIZE | number fo elements in Vector |
FILL_VALUE | assign every element to that value |
numeric::MathVector< T >::MathVector | ( | const core::Size | SIZE, |
const T * | DATA | ||
) | [inline] |
construct from length and pointer to data
numeric::MathVector< T >::MathVector | ( | const MathVector< T > & | VECTOR | ) | [inline] |
copy constructor
VECTOR | copy the given Vector |
numeric::MathVector< T >::~MathVector | ( | ) | [inline] |
@ brief destructor
bool numeric::MathVector< T >::assert_valid_position | ( | const core::Size | POS | ) | const [inline, protected] |
check whether position is valid
Referenced by numeric::MathVector< core::Real >::operator()().
const T* numeric::MathVector< T >::begin | ( | ) | const [inline] |
pointer to First Element
Referenced by numeric::MathMatrix< core::Real >::get_col(), numeric::MathVector< core::Real >::MathVector(), numeric::operator*(), numeric::MathMatrix< core::Real >::operator*=(), numeric::operator==(), numeric::operator^(), numeric::MathMatrix< core::Real >::replace_col(), numeric::MathMatrix< core::Real >::replace_row(), and numeric::MathVector< core::Real >::square_norm().
T* numeric::MathVector< T >::begin | ( | ) | [inline] |
pointer to First Element
MathVector< T>* numeric::MathVector< T >::clone | ( | ) | const [inline] |
Clone function.
const T* numeric::MathVector< T >::end | ( | ) | const [inline] |
pointer to end of range
Referenced by numeric::MathVector< core::Real >::MathVector(), numeric::operator*(), numeric::operator==(), numeric::operator^(), numeric::MathMatrix< core::Real >::replace_col(), numeric::MathMatrix< core::Real >::replace_row(), and numeric::MathVector< core::Real >::square_norm().
T* numeric::MathVector< T >::end | ( | ) | [inline] |
pointer to end of range
MathVector< T> numeric::MathVector< T >::MakeVector | ( | const T & | X | ) | [inline] |
construct vector from one element
MathVector< T> numeric::MathVector< T >::MakeVector | ( | const T & | X, |
const T & | Y | ||
) | [inline] |
construct vector from two elements
MathVector< T> numeric::MathVector< T >::MakeVector | ( | const T & | X, |
const T & | Y, | ||
const T & | Z | ||
) | [inline] |
construct vector from three elements
T numeric::MathVector< T >::norm | ( | ) | const [inline] |
T& numeric::MathVector< T >::operator() | ( | const core::Size | POS | ) | [inline] |
return reference to changeable element ( POS)
const T& numeric::MathVector< T >::operator() | ( | const core::Size | POS | ) | const [inline] |
return copy of element ( POS)
MathVector< T>& numeric::MathVector< T >::operator*= | ( | const T & | VALUE | ) | [inline] |
operator *= VALUE
MathVector<T>& numeric::MathVector< T >::operator+= | ( | const T & | VALUE | ) | [inline] |
operator += VALUE
MathVector< T>& numeric::MathVector< T >::operator+= | ( | const MathVector< T > & | BASE | ) | [inline] |
operator += BASE
MathVector< T>& numeric::MathVector< T >::operator-= | ( | const T & | VALUE | ) | [inline] |
operator -= VALUE
MathVector< T>& numeric::MathVector< T >::operator-= | ( | const MathVector< T > & | BASE | ) | [inline] |
operator -= BASE
MathVector< T>& numeric::MathVector< T >::operator/= | ( | const T & | VALUE | ) | [inline] |
operator /= VALUE
MathVector< T>& numeric::MathVector< T >::operator= | ( | const MathVector< T > & | VECTOR | ) | [inline] |
equal operator
VECTOR | source vector |
MathVector< T>& numeric::MathVector< T >::operator= | ( | const T & | VALUE | ) | [inline] |
equal operator
VALUE | all elements are set to that value |
core::Size numeric::MathVector< T >::size | ( | ) | const [inline] |
size of vector
Referenced by numeric::interpolation::spline::CubicSpline::dF(), numeric::interpolation::spline::CubicSpline::F(), numeric::operator==(), numeric::MathMatrix< core::Real >::replace_col(), numeric::MathMatrix< core::Real >::replace_row(), and numeric::interpolation::spline::CubicSpline::train().
T numeric::MathVector< T >::square_norm | ( | ) | const [inline] |
square norm = square length of vector
Referenced by numeric::MathVector< core::Real >::norm().
T numeric::MathVector< T >::sum | ( | ) | const [inline] |
sum up all elements