TMtx::SetVal Method

Overload List

#SignatureDescription
1TMtxVec *SetVal(const double Value);Initialize elements to Value.
2TMtxVec *SetVal(const double Value, int Index, int Len);Set all calling object elements [Index]..[Index+Len-1] to real Value.
3TMtxVec *SetVal(const TCplx &Value);Set all calling object complex elements to complex Value.
4TMtxVec *SetVal(const TCplx &Value, int Index, int Len);Set calling object complex elements [Index]..[Index+Len-1] to complex Value.
5TMtx *SetVal(const double Value, int Row, int Col, int ToRow, int ToCol);Initializes matrix values to Value.
6TMtx *SetVal(const TCplx &Value, int Row, int Col, int ToRow, int ToCol);Sets the calling matrix elements [Row,Col]..[ToRow,ToCol] to complex value Value.

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

Initialize elements to Value.

#NameTypeDescription
1Valueconst double
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: TMtx::SetZero
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1Valueconst double
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::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

Set all calling object complex elements to complex Value.

#NameTypeDescription
1Valueconst TCplx &
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1Valueconst TCplx &
2Indexint
3Lenint
Remarks:

TMtx::Complex property 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::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 5: TMtx *SetVal(const double Value, int Row, int Col, int ToRow, int ToCol);

Initializes matrix values to Value.

#NameTypeDescription
1Valueconst double
2Rowint
3Colint
4ToRowint
5ToColint
Remarks:

Sets the calling matrix elements [Row,Col]..[ToRow,ToCol] to Value. An exception is raised if TMtx::ConditionCheck is true and array bounds are overrun.

See Also: TMtx::SetIt, TMtx::SetZero
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 6: TMtx *SetVal(const TCplx &Value, int Row, int Col, int ToRow, int ToCol);

Sets the calling matrix elements [Row,Col]..[ToRow,ToCol] to complex value Value.

#NameTypeDescription
1Valueconst TCplx &
2Rowint
3Colint
4ToRowint
5ToColint
Remarks:

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

See Also: TMtx::SetIt, TMtx::SetZero
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler