Boost logo

Boost Users :

Subject: Re: [Boost-users] from matrix to vectors
From: Ryan (mccorywork_at_[hidden])
Date: 2011-04-07 09:19:06


On Mon, Apr 4, 2011 at 1:06 PM, Virili <virili.v_at_[hidden]> wrote:

> Hi to all,
> I'm trying to have a vector (for example a row or a column) from a
> matrix.
> like in Matlab : my_column_vector = my_matrix(:,3) or
> my_row_vector = my_matrix(1,:);
> I know that it will be a stupid thing, but can you post a reference or a
> pseudo code??
>
> Thanks!!
>
If you are using Boost uBLAS then these two links should help. They are
what I use if I have to access a row or column from my matrix.

http://www.boost.org/doc/libs/1_46_1/libs/numeric/ublas/doc/matrix_proxy.htm#1MatrixRow
http://www.boost.org/doc/libs/1_46_1/libs/numeric/ublas/doc/matrix_proxy.htm#2MatrixColumn

Ryan



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net