Boost logo

Ublas :

From: Vadim Zborovskii (vadim_z_at_[hidden])
Date: 2006-06-30 06:04:10

Sohail Somani wrote:

>>-----Original Message-----
>>From: ublas-bounces_at_[hidden]
>>[mailto:ublas-bounces_at_[hidden]] On Behalf Of Vadim Zborovskii
>>Sent: Wednesday, June 28, 2006 3:14 AM
>>To: ublas_at_[hidden]
>>Subject: [ublas] Fortran-style array indexing
>>Dear colleagues!
>>I'm doing some computational work and I'm going to migrate
>>from Fortran
>>to C++ environment. I'm new to uBlas and while looking over the
>>documentation I've noticed that arrays (matrices, vectors, etc) are
>>indexed in C way, that is, from zero.
>>I'd like to know is there a way to do Fortran-style arrays indexing
>>(from arbitraty integer number, usually, one) and how to do
>>it. I think
>>that C-style indexing is somewhat inconvenient for me.
>Some but not all of the matrix objects support a third parameter which
>is the base index. I can't recall off the top of my head which ones, but
>I think its just enough of them don't support it to not be useful.
uBlas documentation claims that base index is supported for sparse
vectors and matrices. Is there similar mechanism for dense vectors and