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


Class: none
Declaration: [1] function CopyArrayColumn (SrcArr: TBool2DArray; Col, RowLo, RowHi: integer; var DstArr: TBoolArray): integer;
[2] function CopyArrayColumn (SrcArr: TInt2DArray; Col, RowLo, RowHi: integer; var DstArr: TIntArray): integer;
[3] function CopyArrayColumn (SrcArr: TDouble2DArray; Col, RowLo, RowHi: integer; var DstArr: TDoubleArray): integer;

The function CopyArrayColumn copies the contents of the given column Col of the two-dimensional source array SrcArr to the one-dimensional destination array DstArr. All rows of Col from given indices RowLo to RowHi will be copied. Indices are 0-based. The destination array DstArr is automatically resized to accomodate the results.

The function returns the following error codes:

 0 ... everything is OK
-1 ... SrcArr has size zero size
-2 ... RowLo and/or RowHi do not constitute a valid range
-3 ... Col is not valid

Last Update: 2017-Nov-24