Re: [sympy] Sympy objects converted to float in Numpy

2014-01-22 Thread Ondřej Čertík
I wonder if this is related to this: https://github.com/sympy/sympy/pull/2678 Would somebody help me review it please? Ondrej On Tue, Jan 21, 2014 at 6:42 PM, Aaron Meurer asmeu...@gmail.com wrote: I'm not sure if SymPy has much to say in the matter. This strikes me as entirely NumPy's

Re: [sympy] Sympy objects converted to float in Numpy

2014-01-21 Thread Aaron Meurer
I'm not sure if SymPy has much to say in the matter. This strikes me as entirely NumPy's behavior. Aaron Meurer On Sat, Jan 18, 2014 at 3:05 PM, F. B. franz.bona...@gmail.com wrote: I came across with this strange behavior: In [1]: o=numpy.array(3, dtype=object) In [2]: o Out[2]: array(3,

[sympy] Sympy objects converted to float in Numpy

2014-01-18 Thread F. B.
I came across with this strange behavior: In [1]: o=numpy.array(3, dtype=object) In [2]: o Out[2]: array(3, dtype=object) In [3]: o.ndim Out[3]: 0 In [4]: S.One*o Out[4]: 3.00 In [7]: e=numpy.array([3], dtype=object) In [8]: e.ndim Out[8]: 1 In [9]: S.One*e Out[9]: