Delete setValue in Matrices::Dense::setDimensions.
this->values.setValue(0.0)
should not be there, it just decreases performance. Check other matrix formats for the same issue.
this->values.setValue(0.0)
should not be there, it just decreases performance. Check other matrix formats for the same issue.