Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2006-10-07 13:47:02

Hi Toon,

On Friday, 29. September 2006 15:32, Toon Knapen wrote:
> I understand that the idea of 'distance_j(1,num_rows,num_cols)' is to
> return the distance in memory between two elements at the same row in
> adjacent columns. Is that correct?

It is the oposite way round! Given a distance in storage (memory) between two
elements it returns the equivilent difference for an iterator2 index.
distance_i does the same for an iterator1.

The functions are used for computing differences for two "Indexed Random
Access Column/Row Iterator" and only work when the two iterators are
'reachable' from each other.

I don't think these functions have much use other then for the one purpose
they are used for in matrix iterator types.


Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation  and
                 Bayesian Filtering