![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class template for a static vector. More...
#include <mdsStaticVector.h>

Public Types | |
| enum | { CLASS_VECTOR } |
| Templates that require members of the CStaticVector class can use this enum to check the existence. More... | |
| enum | { SIZE = M } |
| The vector size. More... | |
| typedef CVectorBase < CStaticVector< T, M > > | tBase |
| Base class. | |
| typedef T | tElement |
| Vector element type. | |
| typedef Eigen::Matrix < tElement, SIZE, 1, Eigen::ColMajor > | tStorage |
| Underlying data (see the Eigen math library). | |
| typedef CStaticVector< T, M > | tVector |
| Vector type. | |
Public Member Functions | |
| CStaticVector & | abs () |
| Absolute value of all elements. | |
| tStorage & | asEigen () |
| Returns reference to the underlying data (see the Eigen math library). | |
| const tStorage & | asEigen () const |
| T & | at (tSize i) |
| Returns reference to the element [i]. | |
| const T & | at (tSize i) const |
| template<typename U > | |
| CStaticVector (const CStaticVector< U, M > &Vector) | |
| template<typename Derived > | |
| CStaticVector (const Eigen::MatrixBase< Derived > &Vector) | |
| CStaticVector () | |
| Declare iterator types tIterator and tConstIterator. | |
| template<typename U > | |
| CStaticVector (const CStaticVector< U, M > &Vector) | |
| Copy constructor. | |
| template<typename Derived > | |
| CStaticVector (const Eigen::MatrixBase< Derived > &Vector) | |
| Conversion constructor. | |
| CStaticVector (const CStaticVector &Vector) | |
| Specialization of the copy constructor. | |
| CStaticVector & | fill (const T &Value) |
| Sets all elements of the vector to a given value. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| Calls a function object for every vector element. | |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls a function object for every vector element. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| Calls a function object for every vector element. | |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls a function object for every vector element. | |
| tVector & | getImpl () |
| Returns reference to the vector implementation. | |
| const tVector & | getImpl () const |
| T * | getPtr () |
| Returns pointer to the vector data. | |
| const T * | getPtr () const |
| T * | getPtr (tSize i) |
| Returns pointer to a given element. | |
| const T * | getPtr (tSize i) const |
| tSize | getSize () const |
| Returns the vector size. | |
| tSize | getStride () const |
| Returns stride between two neigbouring vector elements. | |
| template<tSize K> | |
| CStaticVector & | mult (const CStaticMatrix< T, M, K > &Matrix, const CStaticVector< T, K > &Vector) |
| Matrix vs. | |
| template<tSize K> | |
| CStaticVector & | mult (const CStaticVector< T, K > &Vector, const CStaticMatrix< T, K, M > &Matrix) |
| Row vector vs. | |
| template<tSize K> | |
| CStaticVector< T, M > & | mult (const CStaticMatrix< T, M, K > &Matrix, const CStaticVector< T, K > &Vector) |
| template<tSize K> | |
| CStaticVector< T, M > & | mult (const CStaticVector< T, K > &Vector, const CStaticMatrix< T, K, M > &Matrix) |
| CStaticVector & | multAdd (const CStaticVector &Vector, const T &Scalar) |
| Provides operation this += Vector * Scalar. | |
| CStaticVector & | ones () |
| The vector initialization method. | |
| T & | operator() (tSize i) |
| Returns reference to the subscripted element [i]. | |
| const T & | operator() (tSize i) const |
| template<typename U > | |
| CStaticVector< T, M > & | operator*= (const CScalar< U > &c) |
| CStaticVector & | operator*= (const CStaticVector &v) |
| Element wise product. | |
| template<typename U > | |
| CStaticVector & | operator*= (const CScalar< U > &c) |
| Multiplies all elements by scalar. | |
| template<typename U > | |
| CStaticVector< T, M > & | operator+= (const CScalar< U > &c) |
| CStaticVector & | operator+= (const CStaticVector &v) |
| Element wise addition. | |
| template<typename U > | |
| CStaticVector & | operator+= (const CScalar< U > &c) |
| Adds scalar to all elements. | |
| template<typename U > | |
| CStaticVector< T, M > & | operator-= (const CScalar< U > &c) |
| CStaticVector & | operator-= (const CStaticVector &v) |
| Element wise subtraction. | |
| template<typename U > | |
| CStaticVector & | operator-= (const CScalar< U > &c) |
| Subtracts scalar from all elements. | |
| template<typename U > | |
| CStaticVector< T, M > & | operator/= (const CScalar< U > &c) |
| CStaticVector & | operator/= (const CStaticVector &v) |
| Element wise addition. | |
| template<typename U > | |
| CStaticVector & | operator/= (const CScalar< U > &c) |
| Divides all elements by scalar. | |
| template<typename U > | |
| CStaticVector< T, M > & | operator= (const CStaticVector< U, M > &Vector) |
| template<typename Derived > | |
| CStaticVector< T, M > & | operator= (const Eigen::MatrixBase< Derived > &Vector) |
| template<typename U > | |
| CStaticVector & | operator= (const CStaticVector< U, M > &Vector) |
| Assignment operator. | |
| template<typename Derived > | |
| CStaticVector & | operator= (const Eigen::MatrixBase< Derived > &Vector) |
| Assignment operator. | |
| CStaticVector & | operator= (const CStaticVector &Vector) |
| Specialization of the assignment operator. | |
| tVector & | set (tSize i, const tElement &Value) |
| Sets the vector element at the position [i]. | |
| CStaticVector & | set (tSize i, const T &Value) |
| Sets the vector element at the position [i]. | |
| tSize | size () const |
| Returns the vector size. | |
| CStaticVector & | zeros () |
| The vector initialization method. | |
| ~CStaticVector () | |
| Destructor. | |
Protected Attributes | |
| tStorage | m_Vector |
| Underlying vector data (see the Eigen library). | |
Class template for a static vector.
| typedef CVectorBase<CStaticVector<T,M> > mds::math::CStaticVector< T, M >::tBase |
Base class.
Reimplemented in mds::lbp::CNormLBPHistogram< N >, mds::img::CFeatureVector< T, Size >, mds::img::CFeatureVector< unsigned, N >, mds::img::CFeatureVector< double, 2 >, mds::img::CFeatureVector< float, N >, mds::lbp::CLBPHistogram< N >, mds::lbp::CLBPHistogram< Mapping< Type >::Size >, and mds::img::CPixelStats.
| typedef T mds::math::CStaticVector< T, M >::tElement |
Vector element type.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| typedef Eigen::Matrix<tElement, SIZE, 1, Eigen::ColMajor> mds::math::CStaticVector< T, M >::tStorage |
Underlying data (see the Eigen math library).
typedef CStaticVector< T, M > mds::math::CVectorBase< CStaticVector< T, M > >::tVector [inherited] |
Vector type.
Reimplemented in mds::img::CFeatureVector< T, Size >.
| anonymous enum |
Templates that require members of the CStaticVector class can use this enum to check the existence.
| CStaticVector::CStaticVector | ( | ) |
Declare iterator types tIterator and tConstIterator.
Constructor.
| mds::math::CStaticVector< T, M >::CStaticVector | ( | const CStaticVector< U, M > & | Vector | ) |
Copy constructor.
| mds::math::CStaticVector< T, M >::CStaticVector | ( | const Eigen::MatrixBase< Derived > & | Vector | ) |
Conversion constructor.
| mds::math::CStaticVector< T, M >::CStaticVector | ( | const CStaticVector< T, M > & | Vector | ) |
Specialization of the copy constructor.
| mds::math::CStaticVector< T, M >::~CStaticVector | ( | ) |
Destructor.
| mds::math::CStaticVector< T, M >::CStaticVector | ( | const CStaticVector< U, M > & | Vector | ) |
| mds::math::CStaticVector< T, M >::CStaticVector | ( | const Eigen::MatrixBase< Derived > & | Vector | ) |
| CStaticVector< T, M > & CStaticVector::abs | ( | ) |
Absolute value of all elements.
| tStorage& mds::math::CStaticVector< T, M >::asEigen | ( | ) |
Returns reference to the underlying data (see the Eigen math library).
| const tStorage& mds::math::CStaticVector< T, M >::asEigen | ( | ) | const |
| T& mds::math::CStaticVector< T, M >::at | ( | tSize | i | ) |
Returns reference to the element [i].
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| const T& mds::math::CStaticVector< T, M >::at | ( | tSize | i | ) | const |
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| CStaticVector< T, M > & CStaticVector::fill | ( | const T & | Value | ) |
Sets all elements of the vector to a given value.
| Function mds::math::CStaticVector< T, M >::forEach | ( | Function | Func | ) |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| Function mds::math::CStaticVector< T, M >::forEach | ( | Function | Func | ) | const |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| Function mds::math::CStaticVector< T, M >::forEach | ( | Function | Func | ) |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| Function mds::math::CStaticVector< T, M >::forEach | ( | Function | Func | ) | const |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| tVector& mds::math::CVectorBase< CStaticVector< T, M > >::getImpl | ( | ) | [inherited] |
Returns reference to the vector implementation.
| const tVector& mds::math::CVectorBase< CStaticVector< T, M > >::getImpl | ( | ) | const [inherited] |
| T* mds::math::CStaticVector< T, M >::getPtr | ( | ) |
Returns pointer to the vector data.
| const T* mds::math::CStaticVector< T, M >::getPtr | ( | ) | const |
| T* mds::math::CStaticVector< T, M >::getPtr | ( | tSize | i | ) |
Returns pointer to a given element.
| const T* mds::math::CStaticVector< T, M >::getPtr | ( | tSize | i | ) | const |
| tSize mds::math::CStaticVector< T, M >::getSize | ( | ) | const |
Returns the vector size.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| tSize mds::math::CStaticVector< T, M >::getStride | ( | ) | const |
Returns stride between two neigbouring vector elements.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::mult | ( | const CStaticMatrix< T, M, K > & | Matrix, |
| const CStaticVector< T, K > & | Vector | ||
| ) |
Matrix vs.
column vector multiplication.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::mult | ( | const CStaticVector< T, K > & | Vector, |
| const CStaticMatrix< T, K, M > & | Matrix | ||
| ) |
Row vector vs.
matrix multiplication.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::mult | ( | const CStaticMatrix< T, M, K > & | Matrix, |
| const CStaticVector< T, K > & | Vector | ||
| ) |
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::mult | ( | const CStaticVector< T, K > & | Vector, |
| const CStaticMatrix< T, K, M > & | Matrix | ||
| ) |
| CStaticVector< T, M > & CStaticVector::multAdd | ( | const CStaticVector< T, M > & | Vector, |
| const T & | Scalar | ||
| ) |
Provides operation this += Vector * Scalar.
| CStaticVector< T, M > & CStaticVector::ones | ( | ) |
The vector initialization method.
| T& mds::math::CStaticVector< T, M >::operator() | ( | tSize | i | ) |
Returns reference to the subscripted element [i].
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| const T& mds::math::CStaticVector< T, M >::operator() | ( | tSize | i | ) | const |
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator*= | ( | const CScalar< U > & | c | ) |
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator*= | ( | const CStaticVector< T, M > & | v | ) |
Element wise product.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator*= | ( | const CScalar< U > & | c | ) |
Multiplies all elements by scalar.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator+= | ( | const CScalar< U > & | c | ) |
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator+= | ( | const CStaticVector< T, M > & | v | ) |
Element wise addition.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator+= | ( | const CScalar< U > & | c | ) |
Adds scalar to all elements.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator-= | ( | const CScalar< U > & | c | ) |
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator-= | ( | const CStaticVector< T, M > & | v | ) |
Element wise subtraction.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator-= | ( | const CScalar< U > & | c | ) |
Subtracts scalar from all elements.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator/= | ( | const CScalar< U > & | c | ) |
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator/= | ( | const CStaticVector< T, M > & | v | ) |
Element wise addition.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator/= | ( | const CScalar< U > & | c | ) |
Divides all elements by scalar.
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator= | ( | const CStaticVector< U, M > & | Vector | ) |
| CStaticVector<T,M>& mds::math::CStaticVector< T, M >::operator= | ( | const Eigen::MatrixBase< Derived > & | Vector | ) |
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator= | ( | const CStaticVector< U, M > & | Vector | ) |
Assignment operator.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator= | ( | const Eigen::MatrixBase< Derived > & | Vector | ) |
Assignment operator.
| CStaticVector< T, M > & mds::math::CStaticVector< T, M >::operator= | ( | const CStaticVector< T, M > & | Vector | ) |
Specialization of the assignment operator.
| tVector& mds::math::CVectorBase< CStaticVector< T, M > >::set | ( | tSize | i, |
| const tElement & | Value | ||
| ) | [inherited] |
Sets the vector element at the position [i].
| CStaticVector& mds::math::CStaticVector< T, M >::set | ( | tSize | i, |
| const T & | Value | ||
| ) |
Sets the vector element at the position [i].
| tSize mds::math::CStaticVector< T, M >::size | ( | ) | const |
Returns the vector size.
Reimplemented from mds::math::CVectorBase< CStaticVector< T, M > >.
| CStaticVector< T, M > & CStaticVector::zeros | ( | ) |
The vector initialization method.
tStorage mds::math::CStaticVector< T, M >::m_Vector [protected] |
Underlying vector data (see the Eigen library).
1.7.6.1