Ticket #1659 (closed enhancement: worksforme)
Add a complex128 method for conversion of symbolic (and other?) expressions to numpy's 128-bit complex type
|Reported by:||was||Owned by:||robertwb|
rishi_: I use scipy very often. To use complex number I have to use the following statement: sage: a=numpy.complex128(complex(2+3*I)). Is it not possible to avoid 2 conversions? [12:29pm] mabshoff: hungry? *ducks* [12:29pm] ondrej: mabshoff - like a small dog? [12:29pm] mabshoff: yes. a young dog. [12:29pm] wstein-1658: We could add a method (2+3*I).complex128(). [12:29pm] wstein-1658: Want that? [12:29pm] wstein-1658: Is I symbolic, by the way? [12:29pm] rishi_: yes [12:30pm] wstein-1658: Do you want to avoid two conversions because of speed or code cleaness? [12:30pm] wstein-1658: Probably clean-ness. [12:30pm] rishi_: cleaness
Note: See TracTickets for help on using tickets.