1 #ifndef MATH_ArrayVector_H 2 #define MATH_ArrayVector_H 45 inline static SP::MATH_ArrayVector
New() {
const tUIndex & getSize() const
return the size of the array for reading
Definition: CORE_Array.h:1018
virtual const tReal & operator[](const tUIndex &i) const
return the values for element at i
Definition: MATH_ArrayVector.h:101
MATH_ArrayVector & operator=(const MATH_Vector &v)
copy operator
Definition: MATH_ArrayVector.h:64
virtual ~MATH_ArrayVector(void)
destroy a vector
Definition: MATH_ArrayVector.h:38
virtual void setCapacity(const tUIndex &n)
set the size of the vector
Definition: MATH_ArrayVector.h:131
virtual tReal * getValues()
get the values as contigous pointers
Definition: MATH_ArrayVector.h:185
virtual tString toString() const
turn the array into string
Definition: CORE_Array.hpp:301
MATH_ArrayVector & operator=(const tReal &v)
init operator
Definition: MATH_ArrayVector.h:71
virtual void copy(const MATH_Vector &v)
Definition: MATH_ArrayVector.h:113
virtual tUIndex getCapacity() const
get the size of the vector
Definition: MATH_ArrayVector.h:196
void setSize(const tUIndex &n)
set the size
Definition: CORE_Array.h:292
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:106
#define null
Definition: types.h:144
virtual SP::MATH_Vector NewInstance() const
return a share pointer to a new instance of this
Definition: MATH_ArrayVector.h:53
virtual void copy(const MATH_Vector &v)
Definition: MATH_Vector.h:77
tBoolean setValuesByReference(const tUIndex &n, Q *array)
set the the values by reference
Definition: CORE_Array.h:405
virtual void setValuesByReference(const tUIndex &n, tReal *Vs)
set values by reference
Definition: MATH_ArrayVector.h:139
virtual void init(const tReal &alpha)
init the value to alpha
Definition: MATH_Vector.cpp:12
virtual void setSize(const tUIndex &n)
set the size of the vector
Definition: MATH_ArrayVector.h:125
MATH_ArrayVector & operator+=(const MATH_Vector &v)
add operator
Definition: MATH_ArrayVector.h:78
virtual tReal dot(const MATH_Vector &x) const
s=x^t.T where T is this
Definition: MATH_Vector.cpp:480
virtual tString toString() const
return the string representation of the object
Definition: MATH_ArrayVector.h:205
CORE_RealArray & getArray()
get the array for writing
Definition: MATH_ArrayVector.h:172
This class describes a masked vector.
Definition: MATH_Vector.h:16
CORE_RealArray mArray
Definition: MATH_ArrayVector.h:22
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: CORE_Array.h:545
void setValues(const tUIndex &n, const Q *v)
set the values of the array by copying the n first values of pointer v
Definition: CORE_Array.h:445
This class impements the MATH_Vector class thanks to CORE_RealArray data.
Definition: MATH_ArrayVector.h:17
#define tUIndex
Definition: types.h:126
virtual void add(const MATH_Vector &y)
T+=y.
Definition: MATH_Vector.cpp:238
virtual tReal & operator[](const tUIndex &i)
return the values for element at i
Definition: MATH_ArrayVector.h:94
static SP::MATH_ArrayVector New()
return a share pointer of a vector based on CORE_RealArray
Definition: MATH_ArrayVector.h:45
#define tString
Definition: types.h:135
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: MATH_Vector.h:125
virtual tUIndex getSize() const
get the size of the vector
Definition: MATH_ArrayVector.h:191
MATH_ArrayVector & operator*=(const tReal &v)
do operator
Definition: MATH_ArrayVector.h:86
MATH_ArrayVector(void)
create a vector
Definition: MATH_ArrayVector.h:27
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: MATH_ArrayVector.h:160
DEFINE_SPTR(MATH_ArrayVector)
SP_OBJECT(MATH_ArrayVector)
#define tULLInt
Definition: types.h:45
virtual void setValues(const tUIndex &n, tReal *Vs)
set values by reference
Definition: MATH_ArrayVector.h:146
#define tReal
Definition: types.h:118
const CORE_RealArray & getArray() const
get the array for reading
Definition: MATH_ArrayVector.h:166
virtual const tReal * getValues() const
get the values as contigous pointers
Definition: MATH_ArrayVector.h:179
void copy(const CORE_Array< Q > &f)
copy the array
Definition: CORE_Array.hpp:16
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141