DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


CopyFrom2DArrayColumn

Declaration:TVector.CopyFrom2DArrayColumn (SrcArray: TDouble2DArray; Col, FirstRow, LastRow, DestElem: integer);
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.