On Mon, Apr 4, 2011 at 1:06 PM, Virili <virili.v@gmail.com> 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