[petsc-users] How to get Matrix from MatGetArray()

Jed Brown jedbrown at mcs.anl.gov
Sun Oct 2 07:03:21 CDT 2011


On Sun, Oct 2, 2011 at 01:29, behzad baghapour
<behzad.baghapour at gmail.com>wrote:

> I know about the efficiency and scalability of modern linear methods and I
> don't really want to pass memory in a inefficient manner.
> But here I need to test my designed matrix and know what PETSc brings out
> in a dense format to check my procedure.
>

You can use MatConvert() to create a dense matrix with the same format, but
I would usually just call MatView() with a very small problem size.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111002/638785f9/attachment.htm>


More information about the petsc-users mailing list