Rosetta
|
#include <MathVector.hh>
Public Member Functions | |
MathVector () | |
default constructor More... | |
MathVector (const Size SIZE, const T &FILL_VALUE=T(0)) | |
construct from size and possible filler More... | |
MathVector (const Size SIZE, const T *DATA) | |
construct from length and pointer to data More... | |
MathVector (MathVector const &VECTOR) | |
copy constructor More... | |
MathVector< T > * | clone () const |
Clone function. More... | |
~MathVector () | |
@ brief destructor More... | |
Size | size () const |
size of vector More... | |
const T * | begin () const |
pointer to First Element More... | |
T * | begin () |
pointer to First Element More... | |
const T * | end () const |
pointer to end of range More... | |
T * | end () |
pointer to end of range More... | |
T | norm () const |
norm = length of vector More... | |
T | square_norm () const |
square norm = square length of vector More... | |
T | sum () const |
sum up all elements More... | |
MathVector< T > | MakeVector (const T &X) |
construct vector from one element More... | |
MathVector< T > | MakeVector (const T &X, const T &Y) |
construct vector from two elements More... | |
MathVector< T > | MakeVector (const T &X, const T &Y, const T &Z) |
construct vector from three elements More... | |
bool | operator== (MathVector< T > const &rhs) const |
T & | operator() (const Size POS) |
return reference to changeable element ( POS) More... | |
const T & | operator() (const Size POS) const |
return copy of element ( POS) More... | |
MathVector< T > & | operator= (const MathVector< T > &VECTOR) |
equal operator More... | |
MathVector< T > & | operator= (const T &VALUE) |
equal operator More... | |
MathVector< T > & | operator+= (const T &VALUE) |
operator += VALUE More... | |
MathVector< T > & | operator-= (const T &VALUE) |
operator -= VALUE More... | |
MathVector< T > & | operator*= (const T &VALUE) |
operator *= VALUE More... | |
MathVector< T > & | operator/= (const T &VALUE) |
operator /= VALUE More... | |
MathVector< T > & | operator-= (const MathVector< T > &BASE) |
operator -= BASE More... | |
MathVector< T > & | operator+= (const MathVector< T > &BASE) |
operator += BASE More... | |
Protected Member Functions | |
bool | assert_valid_position (const Size POS) const |
check whether position is valid More... | |
Private Attributes | |
Size | size_ |
length of vector More... | |
T * | data_ |
range of dynamically allocated memory of size size_ More... | |
|
inline |
default constructor
|
inlineexplicit |
construct from size and possible filler
SIZE | number fo elements in Vector |
FILL_VALUE | assign every element to that value |
|
inline |
construct from length and pointer to data
|
inline |
copy constructor
VECTOR | copy the given Vector |
References erraser_util::copy(), numeric::MathVector< T >::data_, and numeric::MathVector< T >::size_.
|
inline |
@ brief destructor
|
inlineprotected |
check whether position is valid
References numeric::MathVector< T >::size_, and utility_exit_with_message.
Referenced by numeric::MathVector< T >::operator()().
|
inline |
pointer to First Element
References numeric::MathVector< T >::data_.
|
inline |
pointer to First Element
References numeric::MathVector< T >::data_.
Referenced by numeric::MathMatrix< T >::get_col(), numeric::operator*(), numeric::MathMatrix< T >::operator*=(), numeric::operator==(), numeric::operator^(), numeric::geometry::projection_area(), numeric::MathMatrix< T >::replace_col(), numeric::MathMatrix< T >::replace_row(), and numeric::MathVector< T >::square_norm().
|
inline |
Clone function.
|
inline |
pointer to end of range
References numeric::MathVector< T >::data_, and numeric::MathVector< T >::size_.
|
inline |
pointer to end of range
References numeric::MathVector< T >::data_, and numeric::MathVector< T >::size_.
Referenced by numeric::operator*(), numeric::operator==(), numeric::operator^(), numeric::geometry::projection_area(), numeric::MathMatrix< T >::replace_col(), numeric::MathMatrix< T >::replace_row(), and numeric::MathVector< T >::square_norm().
|
inline |
construct vector from one element
|
inline |
construct vector from two elements
References spectral_cluster_kmeans_adaptive_kernel_density_bb_dependent_rotlib::Y.
|
inline |
construct vector from three elements
References spectral_cluster_kmeans_adaptive_kernel_density_bb_dependent_rotlib::Y.
|
inline |
norm = length of vector
References numeric::MathVector< T >::square_norm(), and pyrosetta.distributed.cluster.exceptions::T.
|
inline |
return reference to changeable element ( POS)
References numeric::MathVector< T >::assert_valid_position(), and numeric::MathVector< T >::data_.
|
inline |
return copy of element ( POS)
References numeric::MathVector< T >::assert_valid_position(), and numeric::MathVector< T >::data_.
|
inline |
operator *= VALUE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
operator += BASE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
operator += VALUE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
operator -= BASE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
operator -= VALUE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
operator /= VALUE
References numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and basic::options::OptionKeys::mp::transform::transform.
|
inline |
equal operator
VECTOR | source vector |
References erraser_util::copy(), numeric::MathVector< T >::data_, and numeric::MathVector< T >::size_.
|
inline |
equal operator
VALUE | all elements are set to that value |
References numeric::MathVector< T >::data_, detail::fill(), and numeric::MathVector< T >::size_.
|
inline |
References numeric::MathVector< T >::data_, create_a3b_hbs::ii, and numeric::MathVector< T >::size_.
|
inline |
size of vector
References numeric::MathVector< T >::size_.
Referenced by numeric::operator==(), numeric::MathMatrix< T >::replace_col(), numeric::MathMatrix< T >::replace_row(), and numeric::interpolation::spline::CubicSpline::train().
|
inline |
square norm = square length of vector
References numeric::MathVector< T >::begin(), numeric::MathVector< T >::end(), numeric::inner_product(), and pyrosetta.distributed.cluster.exceptions::T.
Referenced by numeric::MathVector< T >::norm().
|
inline |
sum up all elements
References ObjexxFCL::internal::ObserverMediator::accumulate(), numeric::MathVector< T >::data_, numeric::MathVector< T >::size_, and pyrosetta.distributed.cluster.exceptions::T.
|
private |
range of dynamically allocated memory of size size_
Referenced by numeric::MathVector< T >::begin(), numeric::MathVector< T >::end(), numeric::MathVector< T >::MathVector(), numeric::MathVector< T >::operator()(), numeric::MathVector< T >::operator*=(), numeric::MathVector< T >::operator+=(), numeric::MathVector< T >::operator-=(), numeric::MathVector< T >::operator/=(), numeric::MathVector< T >::operator=(), numeric::MathVector< T >::operator==(), and numeric::MathVector< T >::sum().
|
private |
length of vector
Referenced by numeric::MathVector< T >::assert_valid_position(), numeric::MathVector< T >::end(), numeric::MathVector< T >::MathVector(), numeric::MathVector< T >::operator*=(), numeric::MathVector< T >::operator+=(), numeric::MathVector< T >::operator-=(), numeric::MathVector< T >::operator/=(), numeric::MathVector< T >::operator=(), numeric::MathVector< T >::operator==(), numeric::MathVector< T >::size(), and numeric::MathVector< T >::sum().