[petsc-dev] aij and baij data access

Jed Brown jed at jedbrown.org
Tue Feb 4 07:41:13 CST 2014

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.

> 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.

> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatSeqAIJGetArray.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140204/27c2c9b4/attachment.sig>

More information about the petsc-dev mailing list