Class : Vector
~Vector :
prototype: virtual ~Vector ()
description:virtual destructor
Norm :
prototype: virtual double Norm ()
description:get vector norm
input parameters:
return value: vector norm
SqrNorm :
prototype: virtual double SqrNorm ()
description:get square of vector norm
input parameters:
return value: square of vector norm
GetVectorDimension :
prototype: int GetVectorDimension ()
description:Get Vector dimension
input parameters:
return value: vector dimension
GetVectorType :
prototype: int GetVectorType ()
description:Get Vector type
input parameters:
return value: flag indicating vector type
Resize :
prototype: virtual void Resize (int dimension )
description:Resize vector
input parameters:
dimension = new dimension
ResizeAndClean :
prototype: virtual void ResizeAndClean (int dimension )
description:Resize vector and set to zero all components that have been added
input parameters:
dimension = new dimension
ClearVector :
prototype: virtual Vector& ClearVector ()
description:put all vector components to zero
input parameters:
return value: reference on current vector
EmptyClone :
prototype: virtual Vector* EmptyClone (bool zeroFlag = false )
description:create a new vector with same size and same type but non-initialized components
input parameters:
zeroFlag = true if all coordinates have to be set to zero
return value: pointer to new vector
operator += :
prototype: virtual Vector& operator += (const Vector& vector )
description:sum two vectors
input parameters:
vector = vector to add
return value: reference on current vector
AddLinearCombination :
prototype: Vector& AddLinearCombination (double , const Vector& V )
description:add a linear combination to a given vector
input parameters:
x = multiplicative coefficient
V = vector to add
return value: reference on current vector
AddLinearCombination :
prototype: Vector& AddLinearCombination (double , const Vector& , int , int nbrComponent )
description:add a linear combination to a given vector, for a given range of indices
input parameters:
x = multiplicative coefficient
V = vector to add
return value: reference on current vector
AddLinearCombination :
prototype: Vector& AddLinearCombination (double , const Vector& , double , const Vector& v2 )
description:add a linear combination of two vectors to a given vector
input parameters:
x1 = multiplicative coefficient of first vector
v1 = first vector to add
x2 = multiplicative coefficient of first vector
v2 = first vector to add
return value: reference on current vector
AddLinearCombination :
prototype: Vector& AddLinearCombination (double , const Vector& , double ,
const Vector& , int , int nbrComponent )
description:add a linear combination of two vectors to a given vector, for a given range of indices
input parameters:
x1 = multiplicative coefficient of first vector
v1 = first vector to add
x2 = multiplicative coefficient of first vector
v2 = first vector to add
firstComponent = index of the first component to evaluate
nbrComponent = number of components to evaluate
return value: reference on current vector
operator << :
prototype: friend ostream& operator << (ostream& , const Vector& v )
description:Output Stream overload
input parameters:
str = reference on output stream
v = vector to print
return value: reference on output stream
Back to index.