Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-03-24 12:33:01


On Thu, 22 Mar 2001, John (EBo) David wrote:
ebo>
ebo> Don't know if it is appropriate, but for the sake of discussion...
ebo>
ebo> how about defining it like a multi-dimentional region of interest? That
ebo> way you only have to define the two min and max points that defined the
ebo> N dimentional ROI.

That's certainly an option... if I get what you mean, instead of a list of
ranges (start/finish pairs), you get two index sets (one for the min and
one for the max). The question then, is what's a convenient way to write
an index set. How about:

A( index_set(2)(1)(5), index_set(4)(2)(1) )
        ^ ^
       min max

where this index_set thing uses operator() recursively to accumulate the
index set.

Since this is basically equivalent to the other method, it wouldn't be too
hard to supply both.

----------------------------------------------------------------------
 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