2008/5/19 Orest Kozyar <[EMAIL PROTECTED]>:
>> If you don't mind fancy indexing, you can convert your index arrays
>> into boolean form:
>> complement = A==A
>> complement[idx] = False
>
> This actually would work perfectly for my purposes. I don't really
> need super-fancy indexing.
Heh. Actuall
> If you don't mind fancy indexing, you can convert your index arrays
> into boolean form:
> complement = A==A
> complement[idx] = False
This actually would work perfectly for my purposes. I don't really
need super-fancy indexing.
>> Given a slice, such as s_[..., :-2:], is it possible to take t
On Mon, May 19, 2008 at 9:34 AM, Orest Kozyar <[EMAIL PROTECTED]> wrote:
> Given a slice, such as s_[..., :-2:], is it possible to take the
> complement of this slice? Specifically, s_[..., ::-2].
Hmm, that doesn't look like the complement. Did you mean s_[..., -2:]
and s_[..., :-2]?
> I have a
2008/5/19 Orest Kozyar <[EMAIL PROTECTED]>:
> Given a slice, such as s_[..., :-2:], is it possible to take the
> complement of this slice? Specifically, s_[..., ::-2]. I have a
> series of 2D arrays that I need to split into two subarrays via
> slicing where the members of the second array are al
Given a slice, such as s_[..., :-2:], is it possible to take the
complement of this slice? Specifically, s_[..., ::-2]. I have a
series of 2D arrays that I need to split into two subarrays via
slicing where the members of the second array are all the members
leftover from the slice. The problem