Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-04-02 10:20:14


On Sun, 1 Apr 2001, Larry Evans wrote:
jcampb> So, just to be sure I understand, the following expression:
jcampb>
jcampb> A[3 <= stride(2) < 7][all][0 <= stride(1) < 10]
jcampb> [all][all][all]
jcampb>
jcampb> would be a 3 dimensional array. This means that you could
jcampb> have an infinite number of [sliceExpr] operators strung together,
jcampb> where sliceExpr is either all or something like [3<=stride(1)<7].

Well, not really infinite ;) The number of []'s has to be the same as the
number of dimensions in the array (unless you use the .all() method).
However, there is no hard-coded limit on the number of dimensions.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------


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