[sage-support] Re: The real part of a matrix

2008-11-24 Thread Jason Grout
Bill wrote: Hello, given a matrix over CDF I would like to obtain its real and imaginary parts. I know how to write my own function to do this, but I was wondering if there is one built-in. Couldn't see anything in the docs. I don't think there is a built-in function for it, but you can

[sage-support] Re: The real part of a matrix

2008-11-24 Thread Bill
Thanks Jason, I opted to use Re(X) = (X + X.conjugate())/2 in the end. I don't know enough about Python's interpreter to know whether this is more or less efficient than your suggestion. Thank you for the info about the new version, I shall upgrade soon. Will. On Nov 24, 3:01 pm, Jason Grout