Blitz logo

Blitz Support :

From: Faheem Mitha (faheem_at_[hidden])
Date: 2004-04-03 23:58:08


Dear People,

I have a question about slicing blitz++ arrays. In section 2.4 of the
users manual, the sytax for creating a slice is discussed eg.

Array<int,2> F = A(Range::all(), 2, Range::all());

I wondered if there is an easy way to create a generalized slice as
follows. Consider the array.

[123
 456
 789
 000]

Extract say the first, second, and fourth rows into a new array

[123
 456
 000]

I don't necessarily just want equally spaced rows, so the use of Range
objects as in 2.4.5 will not suffice for my needs.

I have a further question.

Would you object if your mailing list was subscribed to gmane?
(http://gmane.org/). It does not currently appear to be subscribed.

                                         Sincerely, Faheem Mitha.