These codes didn't work for my FEniCS program. I am not sure why. Could you give some suggestions
In the latest release of FEniCS, uBLAS is no longer supported. Please use Eigen instead.
parameters['linear_algebra_backend'] = 'Eigen'
Setting this to "Eigen", the command that worked for "uBLAS"
rows, cols, values = A.data()
fails with AttributeError: 'Matrix' object has no attribute 'data'
AttributeError: 'Matrix' object has no attribute 'data'
What is the command to use here?
Try:
as_backend_type(A).data()
or to get a scipy sparse array:
as_backend_type(A).sparray()
That was quick. I made it a separate question - maybe that will be of interest for others as well.