parameters: (self)
return_statement: return mask
docstring: Returns a mask of the same shape as self.data, where
          mask[i,j] is True when data[i,j] corresponds to a stored element.
docstring_summary: Returns a mask of the same shape as self.data, where
          mask[i,j] is True when data[i,j] corresponds to a stored element.
docstring_tokens: Returns a mask of the same shape as self . data where mask [ i j ] is True when data [ i j ] corresponds to a stored element .
function: def _data_mask(self):
          """Returns a mask of the same shape as self.data, where
          mask[i,j] is True when data[i,j] corresponds to a stored element."""
          num_rows, num_cols = self.shape
          offset_inds = np.arange(self.data.shape[1])
          row = offset_inds - self.offsets[:,None]
          mask = (row >= 0)
          mask &= (row < num_rows)
          mask &= (offset_inds < num_cols)
          return mask
function_tokens: def _data_mask ( self ) : num_rows , num_cols = self . shape offset_inds = np . arange ( self . data . shape [ 1 ] ) row = offset_inds - self . offsets [ : , None ] mask = ( row >= 0 ) mask &= ( row < num_rows ) mask &= ( offset_inds < num_cols ) return mask