From: David S. <dps...@gm...> - 2007-06-25 21:03:33
|
Hi, I would like to be able to use list-based array indirection, as described in chapter 6 of the Blitz manual, in something like the following (schematic) way: vector< TinyVector<int,2> > positions; Array<int, 2> data; Array<bool, 2> above_threshold; data[positions] += 10; above_threshold = where(data[positions] > 100, true, false); That is, I would like to be able to use arrays with indirection within any kind of array expressions. Is this possible, or do I have to hand-code everything with iterators to loop over the lists of positions? [I have of course tried the above in a sample program, and it doesn't seem to work.] Thanks and best wishes, David. |