[petsc-users] Does PETSc have some functions like A.*B, A./B in Matlab?

Jed Brown jed at 59a2.org
Sun Feb 21 15:07:59 CST 2010


On Sun, 21 Feb 2010 14:58:39 -0600, Yujie <recrusader at gmail.com> wrote:
> At the beginning, I was just thinking whether PETSc has some similar
> operations with Matlab like A./B or A.*B. To my understanding, PETSc
> realizes a parallel operation version of Matlab regarding matrix
> computations.

Some operations are best avoided when working with sparse matrices in
parallel.  There is almost always a way to formulate the problem so that
it can be solved in a scalable way, and PETSc prefers this approach to
literally translating all Matlab-style operations regardless of
efficiency.

Jed


More information about the petsc-users mailing list