This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Find the condition number of matrix?

+1 vote

What is the command to estimate the condition number of a matrix in the Fenics Python interface?

asked Jul 3, 2014 by BB FEniCS Novice (710 points)

1 Answer

+1 vote
 
Best answer

You can use the array() function provided by the matrix interface which returns a numpy array representation of your matrix. You can then plug this into your favorite condest implementation. There is no such function in numpy/scipy directly, but you can try out pyamg.util.linalg.condest.

answered Jul 3, 2014 by Christian Waluga FEniCS Expert (12,310 points)
selected Jul 9, 2014 by BB
...