[petsc-users] MatCreate() or MatCreateFoobar()

Matthew Knepley knepley at gmail.com
Thu Oct 23 10:13:12 CDT 2014


On Thu, Oct 23, 2014 at 10:06 AM, Florian Lindner <mailinglists at xgm.de>
wrote:

> 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? ;-)
>

Online is correct. The manual lags.

  Thanks,

    Matt


> Best Regards,
> Florian
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141023/769283fc/attachment.html>


More information about the petsc-users mailing list