In file DMatrix.cpp:

DIVAMatrixExport void CDMatrix::Row(int i, CDVector& vRow) const

Return the i-th row of the matrix.

Documentation

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

Notice that due to the row major nature of matrices, row read/writes are *much* faster than col read/writes.

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

To set the i-th row use: void CVisDMatrix::SetRow(int r, const CVisDVector &v)

Returns:
Nothing.
Parameters:
i - The row number.
vRow - Output vector;
Author:
Mikkel B. Stegmann
Version:
3-14-2001


Back DIVA Reference Manual The DIVA-Site