API Documentation Generated by Endo, 2006-08-14
Scipy 2D sparse matrix module.
Original code by Travis Oliphant. Modified and extended by Ed Schofield and Robert Cimrman.
ALLOCSIZE = 1000
MAXPRINT = 50
NZMAX = 100
issparse = isspmatrix
Function used to simplify argument processing. If 'dtype' is not specified (is None), returns a.dtype; otherwise returns a numpy.dtype object created from the specified dtype argument. If 'dtype' and 'a' are both None, construct a data type out of the 'default' parameter. Furthermore, 'dtype' must be in 'allowed' set.
Is x a valid 2-tuple of dimensions?
Return a sparse matrix in CSC format given its diagonals.
B = spdiags(diags, offsets, M, N)
speye(n, m) returns a (n x m) matrix stored in CSC sparse matrix format, where the k-th diagonal is all ones, and everything else is zeros.
spidentity( n ) returns the identity matrix of shape (n, n) stored in CSC sparse matrix format.
| Local name | Refers to |
|---|---|
| amax | numpy.amax |
| arange | numpy.arange |
| array | numpy.array |
| asarray | numpy.asarray |
| asmatrix | numpy.asmatrix |
| bisect_left | bisect.bisect_left |
| ceil | numpy.ceil |
| conj | numpy.conj |
| copy | copy |
| empty | numpy.empty |
| greater | numpy.greater |
| imag | numpy.imag |
| intc | numpy.intc |
| isscalar | numpy.isscalar |
| itertools | itertools |
| less | numpy.less |
| matrix | numpy.matrix |
| ndarray | numpy.ndarray |
| numpy | numpy |
| ones | numpy.ones |
| operator | operator |
| rank | numpy.rank |
| real | numpy.real |
| searchsorted | numpy.searchsorted |
| shape | numpy.shape |
| sparsetools | sparsetools |
| transpose | numpy.transpose |
| where | numpy.where |
| zeros | numpy.zeros |