Matrix::Copy Method

Overload List

#SignatureDescription
1TMtxVec *Copy(TMtxVec *Vec) const;Copy object values.
2TMtxVec *Copy(TMtxVec *Src, const TMtxFloatPrecision dstFloatPrecision) const;Copy object values.
3TMtxVec *Copy(TMtxVec *Vec, int VecIndex, int Index, int Len) const;Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].
4TMtx *Copy(TMtx *Mtx, int MtxRow, int MtxCol, int Row, int Col, int NrRows, int NrCols, bool Transpose = false) const;Copy the Mtx elements [MtxRow,MtxCol]..[MtxRow+NrRows-1,MtxCol+NrCols-1] to the calling matrix elements [Row,Col],,[Row+NrRows-1,Col+NrCols-1].
5TMtxVec *Copy(TVecInt *Src, const TMtxFloatPrecision dstFloatPrecision) const;Copy and convert values from TVecInt.
6TMtxVec *Copy(TVecInt *Src, int SrcIndex, int Index, int Len) const;Copy and convert values from TVecInt at indexes [SrcIndex]...[SrcIndex+Len-1].
7TMtxVec *Copy(TMtxInt *Src, const TMtxFloatPrecision dstFloatPrecision) const;Copy and convert values from TVecInt.
8TMtxVec *Copy(TMtxInt *Src, int SrcIndex, int Index, int Len) const;Copy and convert values from TMtxInt at indexes [SrcIndex]...[SrcIndex+Len-1].

Overload 1: TMtxVec *Copy(TMtxVec *Vec) const;

Copy object values.

#NameTypeDescription
1VecTMtxVec *
Remarks:

Copy each of Vec elements to the calling object. Size and Matrix::Complex properties of the calling object are set implicitly to match Vec object.

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

Overload 2: TMtxVec *Copy(TMtxVec *Src, const TMtxFloatPrecision dstFloatPrecision) const;

Copy object values.

#NameTypeDescription
1SrcTMtxVec *
2dstFloatPrecisionconst TMtxFloatPrecision
Remarks:

Copy each of Src elements to the calling object. Size and Matrix::Complex properties of the calling object are set implicitly to match Src object.

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

Overload 3: TMtxVec *Copy(TMtxVec *Vec, int VecIndex, int Index, int Len) const;

Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

Size and Matrix::Complex properties must be set explicitly. An exception is raised if Matrix::ConditionCheck is True and array borders are overrun or underrun.

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

Overload 4: TMtx *Copy(TMtx *Mtx, int MtxRow, int MtxCol, int Row, int Col, int NrRows, int NrCols, bool Transpose = false) const;

Copy the Mtx elements [MtxRow,MtxCol]..[MtxRow+NrRows-1,MtxCol+NrCols-1] to the calling matrix elements [Row,Col],,[Row+NrRows-1,Col+NrCols-1].

#NameTypeDescription
1MtxTMtx *
2MtxRowint
3MtxColint
4Rowint
5Colint
6NrRowsint
7NrColsint
8Transpose = falsebool
Remarks:

An exception is raised if Matrix::ConditionCheck is true and bounds are overrun. If Transpose is true, the matrix is transposed as well. An exception is raised if Matrix::ConditionCheck is true and Complex properties of the calling matrix and Mtx do not match.

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

Overload 5: TMtxVec *Copy(TVecInt *Src, const TMtxFloatPrecision dstFloatPrecision) const;

Copy and convert values from TVecInt.

#NameTypeDescription
1SrcTVecInt *
2dstFloatPrecisionconst TMtxFloatPrecision
Remarks:

Applies appropriate conversion and copy data from TVecInt. The size of the matrix must match the length of the vector or an exception will be raised.

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

Overload 6: TMtxVec *Copy(TVecInt *Src, int SrcIndex, int Index, int Len) const;

Copy and convert values from TVecInt at indexes [SrcIndex]...[SrcIndex+Len-1].

#NameTypeDescription
1SrcTVecInt *
2SrcIndexint
3Indexint
4Lenint
Remarks:

Applies appropriate conversion and copy data from TVecInt. The results are stored in calling object elements [Index]...[Index+Len-1]. Size and Matrix::Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun.

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

Overload 7: TMtxVec *Copy(TMtxInt *Src, const TMtxFloatPrecision dstFloatPrecision) const;

Copy and convert values from TVecInt.

#NameTypeDescription
1SrcTMtxInt *
2dstFloatPrecisionconst TMtxFloatPrecision
Remarks:

Applies appropriate conversion and copy data from TVecInt. The size of the matrix must match the length of the vector or an exception will be raised.

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

Overload 8: TMtxVec *Copy(TMtxInt *Src, int SrcIndex, int Index, int Len) const;

Copy and convert values from TMtxInt at indexes [SrcIndex]...[SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxInt *
2SrcIndexint
3Indexint
4Lenint
Remarks:

Applies appropriate conversion and copy data from TMtxInt. The results are stored in calling object elements [Index]...[Index+Len-1]. Size and Matrix::Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun.

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