Just wanted to bring attention to ticket #842<http://projects.scipy.org/scipy/numpy/ticket/842>because I think the fix should be pretty easy. I added a comment: The printing inconsistency is a duplicate of #841<http://projects.scipy.org/scipy/numpy/ticket/841>and has been fixed. What remains odd is that the conjugate is a scalar not an array. In [2]: type(conjugate(array(8+7j))) Out[2]: <type 'numpy.complex128'> In [3]: type((array(8+7j))) Out[3]: <type 'numpy.ndarray'> So I think all that needs to be done is fix the return type conjugate if we agree that it should be an array. Chuck
2008/7/19 Charles R Harris <charlesr.harris@gmail.com>:
In [2]: type(conjugate(array(8+7j))) Out[2]: <type 'numpy.complex128'>
In [3]: type((array(8+7j))) Out[3]: <type 'numpy.ndarray'>
So I think all that needs to be done is fix the return type conjugate if we agree that it should be an array.
I think it should be an array. Stéfan
Stéfan van der Walt wrote:
2008/7/19 Charles R Harris <charlesr.harris@gmail.com>:
In [2]: type(conjugate(array(8+7j))) Out[2]: <type 'numpy.complex128'>
In [3]: type((array(8+7j))) Out[3]: <type 'numpy.ndarray'>
So I think all that needs to be done is fix the return type conjugate if we agree that it should be an array.
I think it should be an array.
+1/2
participants (3)
-
Charles R Harris
-
Stéfan van der Walt
-
Travis E. Oliphant