Closed fdarricau closed 9 years ago
AFAIK, coeffRef
should not be used in the dense case, we use it for the sparse specialization because gradient
(gradient_t
) is sparse while buffer
(vector_t
) is dense. I guess we could even use gradient = buffer_.sparseView();
there.
I see.
I will update the PR.
Ok, LGTM, you can rebase the 2 commits.
Proposing a solution for the issue #90.
Basically using the Sparse way again. It works for both RowMajor and ColMajor modes.