David Harvey wrote:
> On Oct 27, 2006, at 7:43 AM, David Joyner wrote:
>
>   
>> Hello all:
>>
>> I'm trying to import Numeric to fix the eigenvalues bug for real  
>> and complex
>> matrices. The following function should do it but it has problems I
>> think with the
>> eigenvalues line. Am I importing something wrong?
>>     
>
> smells like a circular import issue....
>   

Yes, but the import statement is very similar to the one in the
numeric_array method in in matrix.py. If I attach a *.sage file are the
rules for import statements different than if a *.py file is preloaded
as part of SAGE? I was assuming they were the same.

(To answer William's question about Numeric's eigenvalues command):
I'm assuming that the Numeric docs at
http://numpy.scipy.org/numpydoc/numpy-18.html#pgfId-303047
are correct. For example,

sage: MS = MatrixSpace(RR,4,4)
sage: A = MS([[1,2,3,4],[4,3,2,1],[4,5,6,7],[5,4,3,5]])
sage: import Numeric
sage: n = len(A[0])
sage:     AN = Numeric.reshape(A.list(),(n,n))

works just fine.


> david
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to