Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2001-03-27 09:02:00


Jeremy Siek wrote:

> Potential solution to the problems with option 2).
>
> From operator[](range), return an indexer proxy that collects a list of
> ranges via operator[]. The operator[] for the last dimension returns a
> real subarray. If you don't want to specify all the dimensions,
> use the all() shortcut to cover the rest. For examp,e
>
> Suppose A is 2 dimensional
>
> A[3<=stride(1)<10][0<=stride(1)<5] // returns a subarray
> A[3<=stride(1)<10] // a compiler error, unless followed by more []'s
> A[3<=stride(1)<10].all() // same as A[3<=stride(1)<10][all]
>

What does:
    A[all][3<=stride(1)<5]
mean? I would want it to mean:
     A[0<=stride(1)<A.size(0)][3<=stride(1)<5]
where A.size(0) is the size of the 0-th dimension (or, in apl parlance axis)
of A.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk