TVec::SetIt Method

Overload List

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

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

Sets object values.

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

Set object values. Method call does not change object's size or TVec::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::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

Overload 3: TVec *SetIt(bool AComplex, const DewArray<double> &A);

Sets vector values.

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

SetIt makes the use of open array construction, to set the values of the calling vector. It gives you the possibility to pass large arrays of elements without having to declare constant arrays.

Sets the TVec::Length property of the calling vector to (High(A)+1) and the TVec::Complex property to AComplex. The elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes (1,3,5,..).

See Also: TVec::SetDouble, TVec::SetInteger, TVec::SetCplx, TVec::SetSingle
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: TVec *SetIt(const DewArray<double> &A);

Sets vector values (double).

#NameTypeDescription
1Aconst DewArray<double> &
Remarks:

Does not change the TVec::Length or TVec::Complex properties of the calling vector, but it does check for array overrun. The elements of A array are copied to the calling vector, starting at index 0. If the calling vector 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::TVec · Dew.Math/MtxVec.h · Cross-compiler