[Numpy-discussion] nanmean(), nanstd() and other "missing" functions for 1.8

Todd 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
> complex
> > 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
> (using
> > __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
would not.

The function version would also probably allow you to specify the dtype,
which 1j does not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130501/1fbd27ee/attachment.html>

More information about the NumPy-Discussion mailing list