[petsc-users] Does PETSc have some functions like A.*B, A./B in Matlab?
Jed Brown
jed at 59a2.org
Sun Feb 21 14:54:22 CST 2010
On Sun, 21 Feb 2010 14:44:55 -0600, Yujie <recrusader at gmail.com> wrote:
> I need do it for many. Actually, we don't consider a vector. Generally, if A
> is dense matrix (nonzero entries) and B is sparse matrix, MatGetRow()
> doesn't work when doing A.*B or A./B directly, right?
You can call MatGetRow with all column indices, you have to do something
special about dividing by zero.
But we're getting caught up in algebraic shenanigans again. What
problem are you trying to solve? Why do you have a dense matrix and why
do you think you need to perform A./B?
Jed
More information about the petsc-users
mailing list