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



IncArray


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

The function IncArray adds the Scalar to all elements of the array Arr (which is equivalent to incrementing all elements by the value of Scalar).

The function returns the following error codes:

 0 ... everything is OK
-1 ... Arr has zero size



Last Update: 2017-Nov-24