1 #ifndef MATH_MaskArrayVector_H 2 #define MATH_MaskArrayVector_H 45 inline static SP::MATH_MaskArrayVector
New() {
const CORE_RealArray & getArray() const
get the array for reading
Definition: MATH_MaskArrayVector.h:180
virtual tReal & operator[](const tUIndex &i)
return the values for element at i
Definition: MATH_MaskArrayVector.h:94
const tUIndex & getSize() const
return the size of the array for reading
Definition: CORE_Array.h:1018
virtual tReal * getValues()
get the values as contigous pointers without taking into account the mask
Definition: MATH_MaskArrayVector.h:199
virtual tReal & operator()(const tUIndex &i)
return the value for element at i when mask is taken into account
Definition: MATH_MaskArrayVector.h:114
static SP::MATH_MaskArrayVector New()
return a share pointer of a vector based on CORE_RealArray
Definition: MATH_MaskArrayVector.h:45
virtual void copy(const MATH_Vector &v)
Definition: MATH_MaskVector.h:77
MATH_MaskArrayVector(void)
create a vector
Definition: MATH_MaskArrayVector.h:27
virtual void setSize(const tUIndex &n)
set the size of the vector to n*inc
Definition: MATH_MaskArrayVector.h:144
virtual tString toString() const
turn the array into string
Definition: CORE_Array.hpp:301
#define tUSInt
Definition: types.h:28
CORE_RealArray & getArray()
get the array for writing
Definition: MATH_MaskArrayVector.h:186
virtual const tReal * getValues() const
get the values as contigous pointers without taking into account the mask
Definition: MATH_MaskArrayVector.h:193
void setSize(const tUIndex &n)
set the size
Definition: CORE_Array.h:292
SP_OBJECT(MATH_MaskArrayVector)
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:106
Definition: MATH_MaskVector.h:16
#define null
Definition: types.h:144
virtual ~MATH_MaskArrayVector(void)
destroy a vector
Definition: MATH_MaskArrayVector.h:38
tBoolean setValuesByReference(const tUIndex &n, Q *array)
set the the values by reference
Definition: CORE_Array.h:405
virtual tUIndex getSize() const
get the size of the vector
Definition: MATH_MaskArrayVector.h:137
virtual tString toString() const
return the string representation of the object
Definition: MATH_MaskArrayVector.h:215
MATH_MaskArrayVector & operator+=(const MATH_Vector &v)
add operator
Definition: MATH_MaskArrayVector.h:78
This class impements the MATH_MaskVector class thanks to CORE_RealArray data.
Definition: MATH_MaskArrayVector.h:17
virtual void dot(const tReal &alpha)
T*=alpha.
Definition: MATH_MaskVector.cpp:156
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: MATH_MaskArrayVector.h:174
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
const tUSInt & getIncrement() const
get the increment of the vector
Definition: MATH_MaskVector.h:119
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: CORE_Array.h:545
virtual tUIndex getCapacity() const
get the size of the vector
Definition: MATH_MaskArrayVector.h:206
#define tUIndex
Definition: types.h:126
#define tString
Definition: types.h:135
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: MATH_Vector.h:125
MATH_MaskArrayVector & operator*=(const tReal &v)
do operator
Definition: MATH_MaskArrayVector.h:86
virtual const tReal & operator[](const tUIndex &i) const
return the values for element at i
Definition: MATH_MaskArrayVector.h:101
tString toString() const
return the string associated to the real
Definition: CORE_Real.h:97
MATH_MaskArrayVector & operator=(const MATH_Vector &v)
copy operator
Definition: MATH_MaskArrayVector.h:64
virtual void add(const MATH_Vector &y)
T+=y.
Definition: MATH_MaskVector.cpp:220
MATH_MaskArrayVector & operator=(const tReal &v)
init operator
Definition: MATH_MaskArrayVector.h:71
#define tULLInt
Definition: types.h:45
DEFINE_SPTR(MATH_MaskArrayVector)
virtual const tReal & operator()(const tUIndex &i) const
return the value for element at i when mask is taken into account
Definition: MATH_MaskArrayVector.h:107
CORE_RealArray mArray
Definition: MATH_MaskArrayVector.h:22
#define tReal
Definition: types.h:118
virtual void copy(const MATH_Vector &v)
Definition: MATH_MaskArrayVector.h:125
virtual void setValuesByReference(const tUIndex &n, tReal *Vs)
set values by reference with taking into account the mask
Definition: MATH_MaskArrayVector.h:160
virtual void init(const tReal &alpha)
init the values from getStartIndex() index with increment getIncrement() to alpha ...
Definition: MATH_MaskVector.cpp:10
void copy(const CORE_Array< Q > &f)
copy the array
Definition: CORE_Array.hpp:16
virtual void setCapacity(const tUIndex &n)
set the capacity of the vector to n
Definition: MATH_MaskArrayVector.h:152
virtual SP::MATH_Vector NewInstance() const
return a share pointer to a new instance of this
Definition: MATH_MaskArrayVector.h:53
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141