Closed kumargp closed 6 years ago
I don't understand, please be more explicit about what the issue is.
Sorry, I wanted to write, that this step can be added in exec(), since the empty dense matrix is created there.
Or, initialize each element to 0 before adding , in exec
for(int xrw = 0; xrw < x_nr; ++xrw)
for(int ycl = 0; ycl < y_nc; ++ycl)
{
(*z)(xrw,ycl) = 0;
for(int inr = 0; inr < x_nc; ++inr)
(*z)(xrw,ycl) += (*x)(xrw,inr) * (*y)(inr,ycl);
}
added in 158ee29b01431c118c5f4e2233ae7ba675231174 and merged to master
The following zero() will reset it after creating!.