[petsc-users] set petsc matrix using input array

Sam Guo sam.guo at cd-adapco.com
Thu Jan 9 12:47:19 CST 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200109/5150e220/attachment.html>


More information about the petsc-users mailing list