In file DMatrix.cpp:

DIVAMatrixExport void CDMatrix::Col(int i, CDVector& vCol) const

Return the i-th column of the matrix.

Documentation

Return the i-th column of the matrix. The vector will be resized if it doesn't have the right length.

Alternatively, one could use the more costly CVisDVector CVisDMatrix::Row(int r) method.

To set the i-th col use: void CVisDMatrix::SetColumn(int c, const CVisDVector &v)

Returns:
Nothing.
Parameters:
i - The column number.
vCol - Output vector;
Author:
Rune Fisker
Version:
3-14-2001


Back DIVA Reference Manual The DIVA-Site