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

Reply via email to