TMtxVecSample.CopyToArray Method

Overload List

#SignatureDescription
1TMtxVecBase CopyToArray(ref Double[] Dst)Copy values to Dst array. The size of the array is set automatically.
└ indexed: TMtxVecBase CopyToArray(ref Double[] Dst, Int32 DstIndex, Int32 Index, Int32 Len)
2TMtxVecBase CopyToArray(ref Single[] Dst)Copies the calling object data to an array of single precision floating point data.
└ indexed: TMtxVecBase CopyToArray(ref Single[] Dst, Int32 DstIndex, Int32 Index, Int32 Len)

Overload 1: TMtxVecBase CopyToArray(ref Double[] Dst)

Copy values to Dst array. The size of the array is set automatically.

#NameTypeDescription
1DstDouble[] (ref)

Returns: TMtxVecBase

Remarks:

If the calling object is complex, the size of the Dst array will be equal to 2*Dew.Math.TMtxVecBase.Length. If the calling object is not complex an exception will be raised.

Indexed: TMtxVecBase CopyToArray(ref Double[] Dst, Int32 DstIndex, Int32 Index, Int32 Len)

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

#NameTypeDescription
1DstDouble[] (ref)
2DstIndexInt32destination start index
3IndexInt32start index
4LenInt32element count

Returns: TMtxVecBase

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.

Overload 2: TMtxVecBase CopyToArray(ref Single[] Dst)

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

#NameTypeDescription
1DstSingle[] (ref)

Returns: TMtxVecBase

Remarks:

Any values exceeding the range are clipped.

Indexed: TMtxVecBase CopyToArray(ref Single[] Dst, Int32 DstIndex, Int32 Index, Int32 Len)

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
1DstSingle[] (ref)
2DstIndexInt32destination start index
3IndexInt32start index
4LenInt32element count

Returns: TMtxVecBase

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.