SparseArray
Array class that generalize the regular scipy.sparse
Basically acts like a high-dimensional wrapper that manages the shape of a standard scipy.sparse_matrix
, since that is rigidly 2D.
Properties and Methods
from_diag: method
__init__(self, a, shape=None, layout=<class 'scipy.sparse.csc.csc_matrix'>, initialize=True):
toarray(self):
todense(self):
@property
data(self):
@property
fmt(self):
@property
shape(self):
@property
ndim(self):
@property
block_data(self):
transpose(self, transp):
Transposes the array and returns a new one. Not necessarily a cheap operation.
transp
:Iterable[int]
the transposition to do
:returns
:_
No description…
reshape(self, shp):
squeeze(self):
__matmul__(self, other):
dot(self, b, reverse=False):
tensordot(self, b, axes=2, reverse=False):
__add__(self, other):
plus(self, other):
floopy_flop(self):
__truediv__(self, other):
__rtruediv__(self, other):
__rmul__(self, other):
__mul__(self, other):
multiply(self, other):
__getitem__(self, item):
__repr__(self):
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings