function for adding matrices

Matthew Knepley knepley at gmail.com
Thu Jul 19 16:08:16 CDT 2007


On 7/19/07, Alejandro Garzon <gtg100n at mail.gatech.edu> wrote:
> Hi, is there a function in petsc for adding two matrices? or one for multiplying

http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatAXPY.html

> a matrix by a scalar? I looked several times in the manual pages and couldn't

http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatScale.html

  Thanks,

    Matt

> find any. If they don't exist, why is it so? Thanks.
> --
> Alejandro
>
>
>
>
>


-- 
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




More information about the petsc-users mailing list