[petsc-users] question about extracting numbers from a matrix
Matthew Knepley
knepley at gmail.com
Mon Jun 24 17:06:38 CDT 2013
On Tue, Jun 25, 2013 at 12:01 AM, Michael Povolotskyi
<mpovolot at purdue.edu>wrote:
> Hello everybody,
> I have a sparse matrix defined on 1 MPI process.
> I want to extract all entries from it (including zeros) and put them into
> an array to use as an argument for some lapack functions.
> What is the most optimal way of doing this?
>
Maybe MatConvert to MATSEQDENSE, then do what you want.
Matt
> Thank you,
> Michael.
>
>
> --
> Michael Povolotskyi, PhD
> Research Assistant Professor
> Network for Computational Nanotechnology
> 207 S Martin Jischke Drive
> Purdue University, DLR, room 441-10
> West Lafayette, Indiana 47907
>
> phone: +1-765-494-9396
> fax: +1-765-496-6026
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130625/424a149e/attachment.html>
More information about the petsc-users
mailing list