1 #ifndef MATH_MaskVector_H 2 #define MATH_MaskVector_H 155 virtual void dot(
const tReal& alpha);
virtual ~MATH_MaskVector(void)
destroy a vector
Definition: MATH_MaskVector.h:39
DEFINE_SPTR(MATH_MaskVector)
virtual void copy(const MATH_Vector &v)
Definition: MATH_MaskVector.h:77
SP_OBJECT(MATH_MaskVector)
MATH_MaskVector(void)
create a vector
Definition: MATH_MaskVector.h:27
virtual tUIndex getSize() const =0
get the util size taking into account the increment & start index
#define tUSInt
Definition: types.h:28
Definition: MATH_MaskVector.h:16
#define null
Definition: types.h:144
tUIndex mStartIndex
Definition: MATH_MaskVector.h:21
virtual void copy(const MATH_Vector &v)
Definition: MATH_Vector.h:77
virtual tReal & operator()(const tUIndex &i)=0
return the values for element at i taken into account the mask
virtual SP::MATH_Vector NewInstance() const =0
return a share pointer to a new instance of this
virtual void dot(const tReal &alpha)
T*=alpha.
Definition: MATH_MaskVector.cpp:156
const tUIndex & getStartIndex() const
get the start index of the vector
Definition: MATH_MaskVector.h:125
This class describes a masked vector.
Definition: MATH_Vector.h:16
tUSInt mIncrement
Definition: MATH_MaskVector.h:22
const tUSInt & getIncrement() const
get the increment of the vector
Definition: MATH_MaskVector.h:119
#define tUIndex
Definition: types.h:126
void setIncrement(const tUSInt &inc)
set the increment of the vector
Definition: MATH_MaskVector.h:64
virtual void setCapacity(const tUIndex &n)=0
set the size of the vector
virtual void add(const MATH_Vector &y)
T+=y.
Definition: MATH_MaskVector.cpp:220
void setStartIndex(const tUIndex &s)
set the start index of the vector
Definition: MATH_MaskVector.h:70
#define tReal
Definition: types.h:118
virtual void init(const tReal &alpha)
init the values from getStartIndex() index with increment getIncrement() to alpha ...
Definition: MATH_MaskVector.cpp:10