Calculating condition number in dolfinx

Hi,

I wanted to calculate the condition number of a LHS matrix in dolfinx. Based on my quick search, however, the methods that I have found work for the legacy version only. Does anyone have a suggestion for this?

Use slepc4py to calculate the largest and smallest eigenvalue, and then take the ratio. Since you tagged multiphenicsx, tutorial 4 has some examples on eigenvalue problems that you may find helpful.

1 Like