How do I change the linear algebra backend in dolfinx?

Hi there,

I am trying to change my programme’s linear algebra package to Eigen. I understand that in dolfin, you can change this simply by using the command

parameters['linear_algebra_backend'] = 'Eigen'

as answered in a previous question How i can print backend linear algebra?.

Is there a way of doing this with dolfinx?

Thank you!

DOLFINx does not have an interface for eigen.

There are several wrappers for eigen for Python: Welcome to SpPy’s documentation! — sppy 0.6.7 documentation
for which you can pass in the csr data
Transform dolfinx assemble matrix to numpy array - #11 by Samuel_Groth

1 Like

Ah okay, I’ll give that a go.
Thank you for the help!