Add dtype property.
@@ -120,6 +120,11 @@ class SparseArray(object):
"""Return the sparsified data array."""
return self._data
+ @property
+ def dtype(self):
+ """Return the type of the data array member."""
+ return self._data.dtype
+
@property
def idx(self):
"""Return flattened index vector."""
