[petsc-users] set petsc matrix using input array

Smith, Barry F. bsmith at mcs.anl.gov
Thu Jan 9 12:55:35 CST 2020


  Since PETSc does not use that format there, of course, has to be a time when you have duplicate memory. 

  Barry





> On Jan 9, 2020, at 12:47 PM, Sam Guo <sam.guo at cd-adapco.com> wrote:
> 
> Dear PETSc dev team,
>    Suppose I have the matrix already in triplet format int int[] I, int[] J, double[] A, Is possible to create petsc matrix using A without copying? I like to avoid the duplicate memory if possible.
> 
> Thanks,
> Sam



More information about the petsc-users mailing list