[Numpy-discussion] Complex arange

Russel Howe russel@appliedminds....
Thu Feb 1 18:46:12 CST 2007

Should this work?

Python 2.4.3 (#1, Dec 27 2006, 21:18:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as N
 >>> N.__version__
 >>> N.arange(1j, 5j)
array([], dtype=complex128)
 >>> N.arange(1j, 5j, 1j)
array([], dtype=complex128)

Currently, the real direction is determined to be of zero length  
(multiarraymodule.c _calc_length), and the length of the array is the  
minimal length.  I can understand the first one not working (default  
step is 1, it takes 0 of those to cover this range), but the second  
seems like a bug.

More information about the Numpy-discussion mailing list