[petsc-users] MatCreate() or MatCreateFoobar()
Florian Lindner
mailinglists at xgm.de
Thu Oct 23 10:06:42 CDT 2014
Hello,
the petsc user doc says:
One should use the matrix creation routines for particular data structures, such as MatCreateSeqAIJ() and MatCreateAIJ() for compressed, sparse row formats, instead of the generic MatCreate() routine.
(13.4.1, p. 172)
However online doc says:
It is recommended that one use the MatCreate(), MatSetType() and/or MatSetFromOptions(), MatXXXXSetPreallocation() paradgm instead of this routine directly.
(http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateSBAIJ.html)
Somehow contradicting....
So, what is true? ;-)
Best Regards,
Florian
More information about the petsc-users
mailing list