Matrix::CopyToArray Method

Overload List

#SignatureDescription
1TMtxVec *CopyToArray(DewArray<TCplx> &Dst) const;Copy values to an array.
2TMtxVec *CopyToArray(DewArray<TCplx> &Dst, int DstIndex, int Index, int Len) const;Copy complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].
3TMtxVec *CopyToArray(DewArray<double> &Dst) const;Copy values to Dst array.
4TMtxVec *CopyToArray(DewArray<double> &Dst, int DstIndex, int Index, int Len) const;Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].
5TMtxVec *CopyToArray(DewArray<float> &Dst) const;Copies the calling object data to an array of single precision floating point data.
6TMtxVec *CopyToArray(DewArray<float> &Dst, int DstIndex, int Index, int Len) const;Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst single precision floating point array at positions [DstIndex]...[DstIndex+Len-1].
7TMtxVec *CopyToArray(DewArray<int> &Dst, TRounding Rounding) const;Copies values from the calling object to the Dst array and converts floating point data to integer numbers.
8TMtxVec *CopyToArray(DewArray<int> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].
9TMtxVec *CopyToArray(DewArray<short> &Dst, TRounding Rounding) const;Copies values from the calling object to the Dst array and converts floating point data to 2 byte signed integer numbers.
10TMtxVec *CopyToArray(DewArray<short> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].
11TMtxVec *CopyToArray(DewArray<unsigned char> &Dst, TRounding Rounding) const;Copies values from the calling object to the Dst array and converts floating point data to 1 byte unsigned integer numbers.
12TMtxVec *CopyToArray(DewArray<unsigned char> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].
13void CopyToArray(DewArray2D<double> &Dst) const;Copies matrix values to a 2D array.
14void CopyToArray(DewArray2D<TCplx> &Dst) const;Copies all matrix values to a 2D array.

Overload 1: TMtxVec *CopyToArray(DewArray<TCplx> &Dst) const;

Copy values to an array.

#NameTypeDescription
1DstDewArray<TCplx> &
Remarks:

Copy complex values to Dst array. The size of the array is set automatically. If the calling object is not complex an exception will be raised.

See Also: Matrix::Copy, Matrix::CopyTo, Matrix::Round, Matrix::Trunc, Matrix::CopyFromArray
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *CopyToArray(DewArray<TCplx> &Dst, int DstIndex, int Index, int Len) const;

Copy complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<TCplx> &
2DstIndexint
3Indexint
4Lenint
Remarks:

The size of the Dst array is not changed.

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

Overload 3: TMtxVec *CopyToArray(DewArray<double> &Dst) const;

Copy values to Dst array.

#NameTypeDescription
1DstDewArray<double> &
Remarks:

The size of the array is set automatically. If the calling object is complex, the size of the Dst array will be equal to 2*Matrix::Length. If the calling object is not complex an exception will be raised.

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

Overload 4: TMtxVec *CopyToArray(DewArray<double> &Dst, int DstIndex, int Index, int Len) const;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<double> &
2DstIndexint
3Indexint
4Lenint
Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.

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

Overload 5: TMtxVec *CopyToArray(DewArray<float> &Dst) const;

Copies the calling object data to an array of single precision floating point data.

#NameTypeDescription
1DstDewArray<float> &
Remarks:

Any values exceeding the range are clipped.

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

Overload 6: TMtxVec *CopyToArray(DewArray<float> &Dst, int DstIndex, int Index, int Len) const;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst single precision floating point array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<float> &
2DstIndexint
3Indexint
4Lenint
Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.

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

Overload 7: TMtxVec *CopyToArray(DewArray<int> &Dst, TRounding Rounding) const;

Copies values from the calling object to the Dst array and converts floating point data to integer numbers.

#NameTypeDescription
1DstDewArray<int> &
2RoundingTRounding
Remarks:

The rounding method used is specified with the Rounding parameter.

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

Overload 8: TMtxVec *CopyToArray(DewArray<int> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<int> &
2RoundingTRounding
3DstIndexint
4Indexint
5Lenint
Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements. The method converts floating point values to integer. Values exceeding the range of the integer type are clipped.

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

Overload 9: TMtxVec *CopyToArray(DewArray<short> &Dst, TRounding Rounding) const;

Copies values from the calling object to the Dst array and converts floating point data to 2 byte signed integer numbers.

#NameTypeDescription
1DstDewArray<short> &
2RoundingTRounding
Remarks:

The rounding method used is specified with the Rounding parameter.

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

Overload 10: TMtxVec *CopyToArray(DewArray<short> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<short> &
2RoundingTRounding
3DstIndexint
4Indexint
5Lenint
Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements. The method converts floating point values to integers. Values exceeding the range of a 2 byte signed integer type are clipped.

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

Overload 11: TMtxVec *CopyToArray(DewArray<unsigned char> &Dst, TRounding Rounding) const;

Copies values from the calling object to the Dst array and converts floating point data to 1 byte unsigned integer numbers.

#NameTypeDescription
1DstDewArray<unsigned char> &
2RoundingTRounding
Remarks:

The rounding method used is specified with the Rounding parameter.

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

Overload 12: TMtxVec *CopyToArray(DewArray<unsigned char> &Dst, TRounding Rounding, int DstIndex, int Index, int Len) const;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstDewArray<unsigned char> &
2RoundingTRounding
3DstIndexint
4Indexint
5Lenint
Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements. The method converts floating point values to integers. Values exceeding the range of 1 byte unsigned integer type are clipped.

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

Overload 13: void CopyToArray(DewArray2D<double> &Dst) const;

Copies matrix values to a 2D array.

#NameTypeDescription
1DstDewArray2D<double> &
Remarks:

Copies all matrix values to a 2D array. The rows of the array will have two times as many columns, if the calling matrix object is Complex.

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

Overload 14: void CopyToArray(DewArray2D<TCplx> &Dst) const;

Copies all matrix values to a 2D array.

#NameTypeDescription
1DstDewArray2D<TCplx> &
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler