[petsc-dev] aij and baij data access
Matthew Knepley
knepley at gmail.com
Tue Feb 4 08:21:34 CST 2014
On Tue, Feb 4, 2014 at 7:41 AM, Jed Brown <jed at jedbrown.org> wrote:
> Matthew Knepley <knepley at gmail.com> writes:
>
> > On Mon, Feb 3, 2014 at 10:22 AM, Jose David Bermeol <jbermeol at purdue.edu
> >wrote:
> >
> >> Hi, Is it possible to access to the raw data of aij matrices(row
> indices,
> >> column indices and data). I need to used for and optimize algorithm,
> this
> >> data will keep constant all the time. So is it cossible with the public
> >> interface you have or not??
> >>
> >
> > This is a question for petsc-maint.
>
> I disagree; there is no reason to keep such questions private.
>
Let me rephrase: This is a question for petsc-maint (my default suggestion
so as not to force
people into the public) or petsc-users, not petsc-dev which is for
development discussion.
> >
> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html
>
> You actually want MatGetRowIJ because MatGetColumnIJ is expensive with a
> row-based format like AIJ.
>
Yes, bad click.
Matt
> >
> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatSeqAIJGetArray.html
>
--
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-dev/attachments/20140204/7d08def5/attachment.html>
More information about the petsc-dev
mailing list