and test for DenseMatrix elementwise