Boost logo

Ublas :

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-03-09 03:54:17


Sourabh wrote:

>Hi,
>I want to get the reference of a row of some matrix.
>I saw the matrix_row, but it creates the copy of that row of the matrix,
>whereas I just want to get a constant reference,
>What is the way to do this ?
>
>
>

matrix_row is an object that can be considered a reference to the row of
the matrix. I am sure it does not make a copy.

I guess you could use

matrix_row<ublas::matrix<...> const>
which is a const reference.

Karl