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


CopyFrom2DArrayRow

Declaration:TVector.CopyFrom2DArrayRow (SrcArray: TDouble2DArray; Col, FirstRow, LastRow, DestElem: integer);
The method CopyFrom2DArrayRow copies part of a row of the array SrcArry into the vector at the position DestElem. The parameters FirstCol, and LastCol define the range of the Row to be copied to the vector. The matrix element with address [FirstCol,Row] is copied to DestElem, the element [FirstCol+1,Row] is copied to the second vector element, and so on, until the cell at [LastCol,Row] has been copied.

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

Hint: Setting both FirstCol and LastCol to zero values forces the method to use all columns.