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


CopyColToVec

Declaration: TMatrix.CopyColToVec (DestVec: TVector; Col, FirstRow, LastRow, DestCell: integer);
The method CopyColToVec copies part of a column of the matrix into the vector DestVec. The parameter Col specifies the column to be copied, the parameters FirstRow, and LastRow define the range of the column to be copied to the vector. The matrix element with address [Col,FirstRow] is copied to the first element of the vector, the element [Col,FirstRow+1] is copied to the second vector element, and so on, until the cell at [Col,LastRow] has been copied.

If the destination vector is larger than the specified range, the remaining cells are set to zero values. If the vector is smaller, only the first n elements (n = size of the vector) are copied.

The parameter DestCell specifies the first destination cell of the destination vector. All values are copied to this cell and the subsequent ones. 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.