On Thu, Aug 30, 2012 at 4:50 PM, Aaron Meurer <asmeu...@gmail.com> wrote: > Cramer's method is useful for instructive purposes, and also for > theory, but practically, it is highly inefficient. The method used by > SymPy is Gaussian elimination, which is the most direct way to solve a > system of linear equations. > > Of course, if you want to use SymPy to use Cramer's method, that is > possible. I'm not sure what the best method to get the matrices with > columns replaced is. Perhaps we should add some method like > col_replace (and row_replace) to Matrix, which would make this easier.
SymPy can use Cramer's method to do a matrix inverse, see the docstring of Matrix.inv(). This reminds me that for some reason Matrix class is not exposed in the docs: http://docs.sympy.org/dev/modules/matrices.html#sympy.matrices.matrices.Matrix there is only one line "alias of MutableMatrix". Ondrej -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.