egttools.utils.sparray¶
- class sparray[source]¶
Bases:
objectThis class provides a base class for all sparse array and matrix classes. It cannot be instantiated. Most of the work is provided by subclasses.
Methods
- classmethod __class_getitem__(arg, /)[source]¶
Return a parametrized wrapper around the ~scipy.sparse.sparray type.
Added in version 1.16.0.
- Returns:
alias – A parametrized ~scipy.sparse.sparray type.
- Return type:
Examples
>>> import numpy as np >>> from scipy.sparse import coo_array
>>> coo_array[np.int8, tuple[int]] scipy.sparse._coo.coo_array[numpy.int8, tuple[int]]
- __annotations__ = {}¶