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



FlipDimArray


Unit:SDL_openarrays
Class: none
Declaration: [1] function FlipDimArray (var Arr: TIntArray; Index: integer): integer;
[2] function FlipDimArray (var Arr: TInt2DArray; Index: integer): integer;
[3] function FlipDimArray (var Arr: TInt3DArray; Index: integer): integer;
[4] function FlipDimArray (var Arr: TInt4DArray; Index: integer): integer;
[5] function FlipDimArray (var Arr: TDoubleArray; Index: integer): integer;
[6] function FlipDimArray (var Arr: TDouble2DArray; Index: integer): integer;
[7] function FlipDimArray (var Arr: TDouble3DArray; Index: integer): integer;
[8] function FlipDimArray (var Arr: TDouble4DArray; Index: integer): integer;

The function FlipDimArray flips the array Arr along the specified index (parameter Index). The valid range of the parameter Index depends on the type of the array:

Type of Array Valid Indices
TDoubleArray 1
TDouble2DArray 1..2
TDouble3DArray 1..3
TDouble4DArray 1..4

The function returns the following error codes:

 0 ... everything is OK
-1 ... Arr has zero size
-2 ... invalid index



Last Update: 2023-Feb-06