Create CRS matrix

Megan Lewis meganlewis13 at gmail.com
Mon Jun 22 08:40:43 CDT 2009


Hi,
I know PETSc stores their matrices in CRS format.  I have the 3 arrays
required for CRS format as pointers (two int pointers and one double
pointer).  Instead of allocating the memory and running through all of
the non-zero elements in the matrix, is there any way to create a
matrix in PETSc by passing in the 3 arrays?

Thanks!


More information about the petsc-users mailing list