The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CloneAndReverseArray


Unit:SDL_openarrays
Class: none
Declaration: [1] function CloneAndReverseArray (Src: TBoolArray; var Dst: TBoolArray): integer;
[2] function CloneAndReverseArray (Src: TIntArray; var Dst: TIntArray): integer;
[3] function CloneAndReverseArray (Src: TDoubleArray; var Dst: TDoubleArray): integer;
[4] function CloneAndReverseArray (Src: TIntArray; var Dst: TDoubleArray): integer;
[5] function CloneAndReverseArray (Src: TDoubleArray; var Dst: TIntArray): integer;
[6] function CloneAndReverseArray (Src: TSingleArray; var Dst: TDoubleArray): integer;
[7] function CloneAndReverseArray (Src: TDoubleArray; var Dst: TSingleArray): integer;

The function CloneAndReverseArray copies the contents of the source matrix Src to the destination matrix Dst and reverses the order of the array elements.

The destination matrix is automatically resized to the size of the source matrix. Please note that the versions [4] and [5] are made for the conversion between double precision arrays and integer arrays. The copied values of version [5] are rounded to the nearest integer, values exceeding the valid range of integer numbers (interval [MaxInt,-MaxInt-1]) are confined to these limits.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the source matrix has zero size



Last Update: 2020-Aug-23