Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2001-03-27 23:37:55


Jeremy Siek wrote:

> On Tue, 27 Mar 2001, Larry Evans wrote:
> jcampb>
> jcampb> What does:
> jcampb>
> jcampb> mean? I would want it to mean:
> jcampb> A[0<=stride(1)<A.size(0)][3<=stride(1)<5]
> jcampb> where A.size(0) is the size of the 0-th dimension (or, in
> jcampb> apl parlance axis) of A.
>
> Yes, I agree, that is what it should mean.
>

Suppose C is rank 3. What would the following mean:

    C[0<=stride(1)<3][3][all]

I would guess that it would be a rank 2 subarray since a scalar was used as
2nd index? What I uncertain about is when an expression denotes a
"script proxy thing" (see Jeremy'sMon, 26 Mar 2001 12:40:12 -0500 (EST) post)
or a subarray. If a proxy, then is scalar index valid? If a subarray, then
does the all apply to the 1st axis (which has length 3) or to the 2nd axis
of the subarray (which used to be the 3ird axis of C)?


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