Hi Santanu,

On 27 Jul., 09:50, Santanu Sarkar <sarkar.santanu....@gmail.com>
wrote:
> I have a matrix of size (512,512) with real entries. I want to inverse this
> matrix efficiently. How can I do this in Sage?

Do you just mean "how can I compute the inverse"? Then the answer is
"by the usual Python syntax:

sage: MS = MatrixSpace(RR,512,512)
sage: A = MS.random_element()
sage: B = ~A # Note: "~" is not the minus sign.

You can also do B = A^(-1), which may read more naturally. On my
computer, it takes 100.15 s.

Or do you mean "Are there different algorithms implemented in Sage for
inverting a matrix over the reals? How can I pick a particular
inversion algorithm that is most efficient for my matrix"?

I am afraid I don't know an answer to the latter questions.

Best regards,
Simon

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to