210 virtual void dot(
const tReal& alpha);
220 return sqrt(
dot(*
this));
virtual ~MATH_Vector(void)
destroy a vector
Definition: MATH_Vector.h:34
void divide(const MATH_Vector &x)
This/=x.
Definition: MATH_Vector.h:166
virtual const tReal * getValues() const =0
get the values as contigous pointers
virtual tUIndex getCapacity() const =0
get the capacity of the vector
virtual tReal & operator[](const tUIndex &i)=0
return the values for element at i
virtual void divide(const MATH_Vector &x, MATH_Vector &y) const
y=This/x
Definition: MATH_Vector.cpp:170
virtual SP::MATH_Vector NewInstance() const =0
return a share pointer to a new instance of this
tReal norm2() const
s=tT.T where T is this
Definition: MATH_Vector.h:214
virtual const tReal & operator()(const tUIndex &i) const
return the values for element at i by copiing element
Definition: MATH_Vector.h:61
virtual void setValuesByReference(const tUIndex &n, tReal *Vs)=0
set values by reference
virtual void add(const tReal &beta, const MATH_Vector &x, MATH_Vector &R)
R=T+beta.X.
Definition: MATH_Vector.h:197
virtual void setCapacity(const tUIndex &n)=0
set the capacity of the vector
virtual void copy(const MATH_Vector &v)
Definition: MATH_Vector.h:77
MATH_Vector(void)
create a vector
Definition: MATH_Vector.h:23
virtual void init(const tReal &alpha)
init the value to alpha
Definition: MATH_Vector.cpp:12
tReal norm() const
s=sqrt(tT.T) where T is this
Definition: MATH_Vector.h:219
void setValue(const tUIndex &i, const tReal &v)
set the value at index
Definition: MATH_Vector.h:105
virtual tReal dot(const MATH_Vector &x) const
s=x^t.T where T is this
Definition: MATH_Vector.cpp:480
This class describes a masked vector.
Definition: MATH_Vector.h:16
virtual tUIndex getSize() const =0
get the utile size of the vector
#define tUIndex
Definition: types.h:126
virtual void add(const MATH_Vector &y)
T+=y.
Definition: MATH_Vector.cpp:238
virtual void setSize(const tUIndex &n)=0
set the size of the vector
abstract base class for most classes.
Definition: CORE_Object.h:53
virtual tULLInt getMemorySize() const
return the memory size in byte
Definition: MATH_Vector.h:125
virtual tReal & operator()(const tUIndex &i)
return the values for element at i by copiing element
Definition: MATH_Vector.h:68
#define tULLInt
Definition: types.h:45
#define tReal
Definition: types.h:118