Matrix::SetIt Method

Overload List

#SignatureDescription
1TMtxVec *SetIt(int Index, const DewArray<double> &A) const;Sets object values.
2TMtxVec *SetIt(int Index, int AIndex, int Len, const DewArray<double> &A) const;The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index.
3TMtx *SetIt(int ARows, int ACols, bool AComplex, const DewArray<double> &A) const;Sets matrix values.

Overload 1: TMtxVec *SetIt(int Index, const DewArray<double> &A) const;

Sets object values.

#NameTypeDescription
1Indexint
2Aconst DewArray<double> &
Remarks:

Set object values. Method call does not change object's size or Matrix::Complex property, but it does check for array overrun. The elements of A array are copied to the calling object elements, starting at Index. If the calling object is complex, then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).

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

Overload 2: TMtxVec *SetIt(int Index, int AIndex, int Len, const DewArray<double> &A) const;

The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index.

#NameTypeDescription
1Indexint
2AIndexint
3Lenint
4Aconst DewArray<double> &
Remarks:

If the calling object is complex, then real parts of complex numbers in the A array are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).

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

Overload 3: TMtx *SetIt(int ARows, int ACols, bool AComplex, const DewArray<double> &A) const;

Sets matrix values.

#NameTypeDescription
1ARowsint
2AColsint
3AComplexbool
4Aconst DewArray<double> &
Remarks:

Sets matrix values. This method gives you the possibility to pass large arrays of elements without having to declare constant arrays. Pass all elements in A array to the calling matrix. The Matrix::Rows and Matrix::Cols properties of the calling matrix are set to ARows and ACols and the Matrix::Complex property is set to AComplex. An exception is raised if the matrix size (ARows*ACols) does not match the number of complex numbers in A.

See Also: Matrix::SetVal
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler