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

Declaring an uBLAS Matrix

+1 vote

I am not sure how to use the uBLAS interface provided by FEniCS. I.e. When I try

import dolfin
a = dolfin.uBLASMatrix(2,2)

I get the following message

AttributeError: 'module' object has no attribute 'uBLASMatrix'

Is there something I forgot to install?

asked May 24, 2014 by sixtysymbols FEniCS User (2,280 points)

1 Answer

0 votes
 
Best answer

Try this instead

a = dolfin.uBLASDenseMatrix(2,2)

If you are unsure which backends you have do

list_linear_algebra_backends()
answered May 24, 2014 by mikael-mortensen FEniCS Expert (29,340 points)
selected May 25, 2014 by sixtysymbols

Thanks, this worked

...