docstr: Return a dense matrix representing self, mainly for debugging purposes.
docstr_tok: ["Return","a","dense","matrix","representing","self",",","mainly","for","debugging","purposes","."]
code: def to_dense(self):
      """
      Return a dense matrix representing self, mainly for debugging purposes.
      """
      ret = np.zeros([self.n, self.m], dtype=np.float64)
      nvals = self.vals.size
      for i in range(nvals):
          ret[self.rows[i], self.cols[i]] += self.vals[i]
      return ret
  
imports: import numpy
  from matplotlib import _api
  from matplotlib.tri import Triangulation
  from matplotlib.tri._trifinder import TriFinder
  from matplotlib.tri._tritools import TriAnalyzer
label_desc: Use image node_id 5 for calling the _Sparse_Matrix_coo obj's underlying member method code with example usage: obj.to_dense() and returns: ret