Inherits from
- spmatrix: SciPy.sparse.sparse.spmatrix
Attributes
Method summary
- __add__(self, other)
- __getitem__(self, index)
- __iadd__(self, other)
- __imul__(self, other)
- __init__(self, A = None, shape = None, dtype = None)
- __isub__(self, other)
- __mul__(self, other)
- __rmul__(self, other)
- __setitem__(self, index, x)
- __str__(self)
- copy(self)
- getnnz(self)
- getrow(self, i)
- getrowview(self, i)
- multiply(self, other)
- reshape(self, shape)
- toarray(self)
- tocsc(self, nzmax = None)
- tocsr(self, nzmax = None)
- transpose(self)
Inherited from base classes
- __abs__(self)
- __div__(self, other)
- __getattr__(self, attr)
- __idiv__(self, other)
- __iter__(self)
- __len__(self)
- __neg__(self)
- __nonzero__(self)
- __pow__(self, other)
- __radd__(self, other)
- __repr__(self)
- __rsub__(self, other)
- __sub__(self, other)
- __truediv__(self, other)
- asformat(self, format)
- astype(self, t)
- conj(self)
- conjugate(self)
- dot(self, other)
- getH(self)
- get_shape(self)
- getcol(self, j)
- getdata(self, num)
- getformat(self)
- getmaxprint(self)
- getnzmax(self)
- listprint(self, start, stop)
- matmat(self, other)
- matvec(self, other)
- mean(self, axis = None)
- rmatvec(self, other, conjugate = True)
- rowcol(self, num)
- save(self, file_name, format = """%d %d %f """)
- set_shape(self, shape)
- setdiag(self, values, k = 0)
- sum(self, axis = None)
- tocoo(self)
- todense(self)
- toself(self, copy = False)
Methods
- __add__(self, other)
- __getitem__(self, index)
Return the element(s) index=(i, j), where j may be a slice. This always returns a copy for consistency, since slices into Python lists return copies.
- __iadd__(self, other)
- __imul__(self, other)
- __init__(self, A = None, shape = None, dtype = None)
Create a new list-of-lists sparse matrix. An optional argument A is accepted, which initializes the lil_matrix with it. This can be a tuple of dimensions (M, N) or a dense array / matrix to copy, or a sparse matrix of the following types: - csr_matrix - lil_matrix
- __isub__(self, other)
- __mul__(self, other)
- __rmul__(self, other)
- __setitem__(self, index, x)
- __str__(self)
- copy(self)
- getnnz(self)
- getrow(self, i)
Returns a copy of the 'i'th row.
- getrowview(self, i)
Returns a view of the 'i'th row (without copying).
- multiply(self, other)
Point-wise multiplication by another lil_matrix.
- reshape(self, shape)
- toarray(self)
- tocsc(self, nzmax = None)
Return Compressed Sparse Column format arrays for this matrix.
- tocsr(self, nzmax = None)
Return Compressed Sparse Row format arrays for this matrix.
- transpose(self)
Return the transpose as a csc_matrix.
