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....



CopyArray


Unit:SDL_openarrays
Class: none
Declaration: [1] function CopyArray (Src: TBoolArray; DstElem: integer; var Dst: TBoolArray): integer;
[2] function CopyArray (Src: TBool2DArray; DstCol, DstRow: integer; var Dst: TBool2DArray): integer;
[3] function CopyArray (Src: TIntArray; DstElem: integer; var Dst: TIntArray): integer;
[4] function CopyArray (Src: TIntArray; SrcElemLo, SrcElemHi, DstElem: integer; var Dst: TIntArray): integer;
[5] function CopyArray (Src: TInt2DArray; DstCol, DstRow: integer; var Dst: TInt2DArray): integer;
[6] function CopyArray (Src: TInt2DArray; SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, DstCol, DstRow: integer; var Dst: TInt2DArray): integer;
[7] function CopyArray (Src: TInt3DArray; DstCol, DstRow, DstLayer: integer; var Dst: TInt3DArray): integer;
[8] function CopyArray (Src: TInt3DArray; SrcColLo, SrcRowLo, SrcLayerLo, SrcColHi, SrcRowHi, SrcLayerHi, DstCol, DstRow, DstLayer: integer; var Dst: TInt3DArray): integer;
[9] function CopyArray (Src: TInt4DArray; DstCol, DstRow, DstLayer, DstTSlot: integer; var Dst: TInt4DArray): integer;
[10] function CopyArray (Src: TInt4DArray; SrcColLo, SrcRowLo, SrcLayerLo, SrcTSlotLo, SrcColHi, SrcRowHi, SrcLayerHi, SrcTSlotHi, DstCol, DstRow, DstLayer, DstTSlot: integer; var Dst: TInt4DArray): integer;
[11] function CopyArray (Src: TDoubleArray; DstElem: integer; var Dst: TDoubleArray): integer;
[12] function CopyArray (Src: TDoubleArray; SrcElemLo, SrcElemHi, DstElem: integer; var Dst: TDoubleArray): integer;
[13] function CopyArray (Src: TDouble2DArray; DstCol, DstRow: integer; var Dst: TDouble2DArray): integer;
[14] function CopyArray (Src: TDouble2DArray; SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, DstCol, DstRow: integer; var Dst: TDouble2DArray): integer;
[15] function CopyArray (Src: TDouble3DArray; DstCol, DstRow, DstLayer: integer; var Dst: TDouble3DArray): integer;
[16] function CopyArray (Src: TDouble3DArray; SrcColLo, SrcRowLo, SrcLayerLo, SrcColHi, SrcRowHi, SrcLayerHi, DstCol, DstRow, DstLayer: integer; var Dst: TDouble3DArray): integer;
[17] function CopyArray (Src: TDouble4DArray; DstCol, DstRow, DstLayer, DstTSlot: integer; var Dst: TDouble4DArray): integer;
[18] function CopyArray (Src: TDouble4DArray; SrcColLo, SrcRowLo, SrcLayerLo, SrcTSlotLo, SrcColHi, SrcRowHi, SrcLayerHi, SrcTSlotHi, DstCol, DstRow, DstLayer, DstTSlot: integer; var Dst: TDouble4DArray): integer;

The function CopyArray copies part of the contents of the source matrix Src to the destination matrix Dst. The destination matrix must be large enough to accommodate all copied cells.

Version Parameters Explanation
[1] DstElem Copies the entire one-dimensional boolean array Src into the one-dimensional boolean array Dst, starting at the position [DstElem]
[2] DstCol, DstRow Copies the entire two-dimensional boolean array Src into the two-dimensional boolean array Dst, starting at the position [DstCol,DstRow]
[3], [11] DstElem Copies the entire one-dimensional integer/double array Src into the one-dimensional integer/double array Dst, starting at the position [DstElem]
[4], [12] SrcElemLo, SrcElemHi, DstElem Copies part of the one-dimensional integer/double array Src into the one-dimensional integer/double array Dst. The range to be copied is specified by the parameters SrcElemLo and SrcElemHi, the destination location is determined by [DstElem]
[5], [13] DstCol, DstRow Copies the entire two-dimensional integer/double array Src into the two-dimensional integer/double array Dst, starting at the position [DstCol,DstRow]
[6], [14] SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, DstCol, DstRow Copies part of the two-dimensional integer/double array Src into the two-dimensional integer/double array Dst. The range to be copied is specified by the parameters SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, the destination location is determined by [DstCol,DstRow]
[7], [15] DstCol, DstRow, DstLayer Copies the entire three-dimensional integer/double array Src into the three-dimensional integer/double array Dst, starting at the position [DstCol,DstRow, DstLayer]
[8], [16] SrcColLo, SrcRowLo, SrcLayerLo, SrcColHi, SrcRowHi, SrcLayerHi, DstCol, DstRow, DstLayer Copies part of the three-dimensional integer/double array Src into the three-dimensional integer/double array Dst. The range to be copied is specified by the parameters SrcColLo, SrcRowLo, SrcLayerLo, SrcColHi, SrcRowHi, SrcLayerHi, the destination location is determined by [DstCol,DstRow,DstLayer]
[9], [17] DstCol, DstRow, DstLayer, DstTSlot Copies the entire four-dimensional integer/double array Src into the four-dimensional integer/double array Dst, starting at the position [DstCol,DstRow,DstLayer,DstTSlot]
[10], [18] SrcColLo, SrcRowLo, SrcLayerLo, SrcTSlotLo, SrcColHi, SrcRowHi, SrcLayerHi, SrcTSlotHi, DstCol, DstRow, DstLayer, DstTSlot Copies part of the four-dimensional integer/double array Src into the four-dimensional integer/double array Dst. The range to be copied is specified by the parameters SrcColLo, SrcRowLo, SrcLayerLo, SrcTSlotLo, SrcColHi, SrcRowHi, SrcLayerHi, SrcTSlotHi, the destination location is determined by [DstCol,DstRow,DstLayer,DstTSlot]

The function returns the following error codes:

 0 ... everything is OK
-1 ... the source matrix has zero size
-2 ... any of the parameters is out of range, or the destination array is too small



Last Update: 2023-Feb-06