Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-10-20 03:59:04

On Thursday, 20. October 2005 10:27, Eddie.Vedder_at_[hidden] wrote:
> Dear list,
> I try to assign several vectors to different colums of a matrix. I thought
> this would work with
> project(A, r1, r2) = u;
> in the notation of the uBlas documentation. But project() accepts only a
> matrix on the right hand side.

That is correct 'project(A, r1, r2)' returns a sub matrix, in this case a
If you want to assign to a whole row or column then the simple
        row(A, r) = u;
will suffice.
If you want to assign to a specific sub vector of a matrix then you will need
to use either
matrix_vector_range or matrix_vector_slice

Michael Stevens Systems Engineering

34128 Kassel, Germany
Phone/Fax: +49 561 5218038

Navigation Systems, Estimation and
                 Bayesian Filtering