[petsc-users] MatDenseGetArray question

Michael Povolotskyi mpovolot at purdue.edu
Wed Apr 17 14:25:09 CDT 2013


On 04/17/2013 01:37 PM, Matthew Knepley wrote:
> On Wed, Apr 17, 2013 at 1:23 PM, Michael Povolotskyi 
> <mpovolot at purdue.edu <mailto:mpovolot at purdue.edu>> wrote:
>
>     Dear Petsc developers,
>     does the function MatDenseGetArray allocate additional memory or
>     just returns a pointer to existing memory ?
>
>
> Returns a pointer.
>
>   Matt
Thank you, one more detail about MatDenseGetArray
is this statement correct:
if a dense matrix is serial, the data is stored in memory in a 
column-wise order, but if a dense matrix is distributed the data is 
stored in a row-wise order?

thank you,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130417/b6193e12/attachment.html>


More information about the petsc-users mailing list