← Back to team overview

dolfin team mailing list archive

Re: extract matrix

 

What? This seems ridiculous. I know there are routines to extract a block of values from a matrix. But I need to have some kind of pointer to the matrix. I don't know how to get this.

- Shawn

On Mon, 22 Jun 2009, Jed Brown wrote:

Shawn Walker wrote:
Sure.  I just need to be able to compute the difference between the
entries of two matrices.  Is there a demo for this?

It's a PETSc thing, be sure to call dolfin_init(argc,argv) at the top of
main.  Depending on where the other matrix comes from, there are many
ways to do this, but I assume you will be working with very small
matrices so you either want to put them in Matlab/Octave or just eyeball
them.

Jed




Follow ups

References