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

assemble an identity matrix

0 votes

I would like to assemble an identity matrix to interact with others assembled matrices. Second, How can I create a diagonal matrix that has ones on specific entries, to again interact with other assembled matrices?

Thanks

asked Sep 19, 2014 by kokonet FEniCS Novice (120 points)

Hi, consider these answers 1, 2.

...