[Numpy-discussion] nanmean(), nanstd() and other "missing" functions for 1.8
toddrjen at gmail.com
Wed May 1 11:34:34 EDT 2013
On Wed, May 1, 2013 at 5:22 PM, Daπid <davidmenhur at gmail.com> wrote:
> On 1 May 2013 17:13, Todd <toddrjen at gmail.com> wrote:
> > Speaking of which, I think there should be a function to construct a
> > array out of two identically-shaped floating-point arrays, as well as
> > perhaps an np.i class that converts a real array to an imaginary one
> > __mul__ and such).
> np.i would be exactly the same as array * 1j, or am I missing anything?
> The same goes for constructing a complex, real + imag * 1j
it would always produce a numpy array. So array*1j and array*np.i (or np.j
if you prefer, perhaps both) would be the same, but list*1j and list*np.i
The function version would also probably allow you to specify the dtype,
which 1j does not.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion