[petsc-dev] How To: petsc binary to matrix market format

Jed Brown jedbrown at mcs.anl.gov
Sun Jul 1 03:28:14 CDT 2012

On Sat, Jun 30, 2012 at 9:32 PM, Dave Nystrom <dnystrom1 at comcast.net> wrote:

> Thanks.  I don't have access or experience with Matlab so that seems not a
> good option.  I'm fairly new to Python and have never done anything with
> the
> petsc python interface.  But that could be an option.  Once python reads
> in a
> petsc binary matrix, does it then have a function to write out the matrix
> in
> matrix market format?  Or would I need to write the python code to do that?

Scipy has routines to write matrix market files.

PETSc intentionally does not provide this routine because MatrixMarket is
such a terrible format. We will give you the gun, but if you want to bolt
it to your foot, you have to find your own bolts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120701/2e649a1d/attachment.html>

More information about the petsc-dev mailing list