[petsc-users] question about extracting numbers from a matrix
Michael Povolotskyi
mpovolot at purdue.edu
Mon Jun 24 17:08:24 CDT 2013
thank you,
Michael.
On 06/24/2013 06:06 PM, Matthew Knepley wrote:
> On Tue, Jun 25, 2013 at 12:01 AM, Michael Povolotskyi
> <mpovolot at purdue.edu <mailto: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 <tel:%2B1-765-494-9396>
> fax: +1-765-496-6026 <tel:%2B1-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
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130624/0cd4e39a/attachment.html>
More information about the petsc-users
mailing list