Dear all,
I'm trying to write a sparse matrix to a file.
SparseMatrix::print() does this, but it prints all the 0 entries,
which results in a huge file that is practically useless (besides from
exceeding my disk quota).
PetscMatrix::print_matlab() is supposed to do better, but PETSc says:
[2]PETSC ERROR: ASCII matrix output not allowed for matrices with more
than 1024 rows, use binary format instead.
PetscMatrix::print_personal() can only print to stdout, which makes it
difficult for me to cut out the correct part of the output, in
particular if I'm writing more than one matrix.
I would like to implement a method, e.g. called
SparseMatrix::print_sparse(), which works the same way as
SparseMatrix::print() does, but does not print all the 0 entries. It
would e.g. rather print one entry per line in the format
row column value
Any objections or thoughts?
--
Dr. Tim Kroeger
CeVis -- Center of Complex Systems and Visualization
University of Bremen [email protected]
Universitaetsallee 29 [email protected]
D-28359 Bremen Phone +49-421-218-59246
Germany Fax +49-421-218-59277
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel