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: TVector, TIntVector
Declaration: [1] procedure CopyFrom2DArrayColumn (SrcArray: TInt2DArray; Col, FirstRow, LastRow, DestElem: integer); { class TIntVector }
[2] procedure CopyFrom2DArrayColumn (SrcArray: TDouble2DArray; Col, FirstRow, LastRow, DestElem: integer); { class TVector }

The method CopyFrom2DArrayColumn copies part of a column of the array SrcArry into the vector at the position DestElem. The parameters FirstRow, and LastRow define the range of the Col to be copied to the vector. The matrix element with address [Col,FirstRow] is copied to DestElem, the element [Col,FirstRow+1] is copied to the second vector element, and so on, until the cell at [Col,LastRow] has been copied.

Please note that DestCell can be negative as well (valid range: -(LastRow-FirstRow-1)...DestVec.NrOfElems).

Hint: Setting both FirstRow and LastRow to zero values forces the method to use all rows.

Last Update: 2023-Feb-06