On Tue, Jan 29, 2013 at 6:16 AM, denis wrote:
> Folks,
> the doc for `where` says "x and y need to have the same shape as
> condition"
> http://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.where.html
> But surely
> "where is equivalent to:
> [xv if c else yv for (c,xv,yv) in z
Lluís writes:
> Sebastian Berg writes:
>> On Tue, 2013-01-29 at 14:53 +0100, Lluís wrote:
>>> Gregor Thalhammer writes:
>>>
>>> > Am 28.1.2013 um 23:15 schrieb Lluís:
>>>
>>> >> Hi,
>>> >>
>>> >> I have a somewhat convoluted N-dimensional array that contains
>>> >> information of a
>>> >> set
Sebastian Berg writes:
> On Tue, 2013-01-29 at 14:53 +0100, Lluís wrote:
>> Gregor Thalhammer writes:
>>
>> > Am 28.1.2013 um 23:15 schrieb Lluís:
>>
>> >> Hi,
>> >>
>> >> I have a somewhat convoluted N-dimensional array that contains
>> >> information of a
>> >> set of experiments.
>> >>
>>
On Tue, 2013-01-29 at 14:53 +0100, Lluís wrote:
> Gregor Thalhammer writes:
>
> > Am 28.1.2013 um 23:15 schrieb Lluís:
>
> >> Hi,
> >>
> >> I have a somewhat convoluted N-dimensional array that contains information
> >> of a
> >> set of experiments.
> >>
> >> The last dimension has as many ent
Gregor Thalhammer writes:
> Am 28.1.2013 um 23:15 schrieb Lluís:
>> Hi,
>>
>> I have a somewhat convoluted N-dimensional array that contains information
>> of a
>> set of experiments.
>>
>> The last dimension has as many entries as iterations in the experiment (an
>> iterative application), an
Folks,
the doc for `where` says "x and y need to have the same shape as condition"
http://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.where.html
But surely
"where is equivalent to:
[xv if c else yv for (c,xv,yv) in zip(condition,x,y)]"
holds as long as len(condition) == len(x)
Hi,
I need to link the documentation on ctypes and SWIG support for Numpy.
For ctypes I found:
http://www.scipy.org/Cookbook/Ctypes
Which seems to be reasonably up-to-date. There are of course also:
http://docs.scipy.org/doc/numpy/reference/routines.ctypeslib.html
There are also the corresp
Am 28.1.2013 um 23:15 schrieb Lluís:
> Hi,
>
> I have a somewhat convoluted N-dimensional array that contains information of
> a
> set of experiments.
>
> The last dimension has as many entries as iterations in the experiment (an
> iterative application), and the penultimate dimension has as m