Initialize dense matrix to NaN in debug mode