CSR Sparse Matrix Query

Satish Balay balay at mcs.anl.gov
Mon Apr 23 10:15:28 CDT 2007


On Mon, 23 Apr 2007, Dr. Timothy Stitt wrote:

> I am using Fortran. Do I have to perform some operation to switch
> from column-major to row-major representation before calling the
> MatCreateSeqAIJWithArrays routine? 

MatCreateSeqAIJWithArrays expects a 1d array for the values [and
rows,column indicies as well] - so this issue of row-major vs
column-major does not exist.

> Also does this routine replace the call to the MatCreate() routine?
> I am assuming I still need to do the assembling of the matrix
> afterwards?

You will get a fully created & assembled matrix after this call.

Satish




More information about the petsc-users mailing list