From: Dominik Szczerba (dominik_at_[hidden])
Date: 2008-08-30 02:17:33
On Saturday 30 August 2008 02:38:40 am Gunter Winkler wrote:
> 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)
is it also available for small dense matrices?
> > - 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.
that is great.
> > - unfold a matrix into vector, like in matlab v=m(:)
> It's possible, though not 'officially' supported.
any hint how? just referencing the first element of the matrix?
thanks a lot,
> ublas mailing list
-- Dominik Szczerba, Ph.D. Computational Physics Group Foundation for Research on Information Technologies in Society http://www.itis.ethz.ch