Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-08-29 20:38:40


Dominik Szczerba wrote:
> Hi,
> Can ublas do the following things for me:
>
> - define base for indexing. fortran storage seems to be available as a
> template parameter if I am not mistaken, but I need in addition counting
> indexes from 1, not 0.

some sparse matrix types support this. (See the 'index base', IB
template parameter)

> - use slicing and subindexing, e.g.
> double_matrix2(int_matrix1(:,3)) or int_matrix3(int_vector1)

there are a matrix_slice and an indirect_matrix proxy available.

> - unfold a matrix into vector, like in matlab v=m(:)

It's possible, though not 'officially' supported.

mfg
Gunter