MatMult

Yixun Liu enjoywm at cs.wm.edu
Wed Feb 11 13:10:23 CST 2009


Hi,
I saw MatMult() is used in ex2 as,
Vec u, b;
ierr = MatMult(A,u,b);

MatMult is defined as,
PetscErrorCode  MatMult(Mat mat,Vec x,Vec y)

Should be PetscErrorCode  MatMult(Mat mat,Vec x,Vec &y)?

Thanks.

Yixun




More information about the petsc-users mailing list