Vector::SetVal Method

Overload List

#SignatureDescription
1TMtxVec *SetVal(double Value) const;Initialize elements to Value.
2TMtxVec *SetVal(double Value, int Index, int Len) const;Set all calling object elements [Index]..[Index+Len-1] to real Value.
3TMtxVec *SetVal(TCplx Value) const;Set all calling object complex elements to complex Value.
4TMtxVec *SetVal(TCplx Value, int Index, int Len) const;Set calling object complex elements [Index]..[Index+Len-1] to complex Value.

Overload 1: TMtxVec *SetVal(double Value) const;

Initialize elements to Value.

#NameTypeDescription
1Valuedouble
Remarks:

Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.

See Also: Vector::SetZero
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *SetVal(double Value, int Index, int Len) const;

Set all calling object elements [Index]..[Index+Len-1] to real Value.

#NameTypeDescription
1Valuedouble
2Indexint
3Lenint
Remarks:

If the calling object is complex then the real part is set to Value and the imaginary is set to zero. An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *SetVal(TCplx Value) const;

Set all calling object complex elements to complex Value.

#NameTypeDescription
1ValueTCplx
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *SetVal(TCplx Value, int Index, int Len) const;

Set calling object complex elements [Index]..[Index+Len-1] to complex Value.

#NameTypeDescription
1ValueTCplx
2Indexint
3Lenint
Remarks:

Vector::Complex properties of the calling object are set to true even before the call it was false. An exception is raised if calling object array borders are overrun/underrun.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler