relax Matrix to DenseMatrix