SciPy.org API Documentation Generated by Endo, 2006-08-14
A sparse matrix in coordinate list format.

COO matrices are created either as:
    A = coo_matrix(None, dims=(m, n), [dtype])
for a zero matrix, or as:
    A = coo_matrix((obj, ij), [dims])
where the dimensions are optional.  If supplied, we set (M, N) = dims.
If not supplied, we infer these from the index arrays
ij[0][:] and ij[1][:]

The arguments 'obj' and 'ij' represent three arrays:
    1. obj[:]    the entries of the matrix, in any order
    2. ij[0][:]  the row indices of the matrix entries
    3. ij[1][:]  the column indices of the matrix entries

So the following holds:
    A[ij[0][k], ij[1][k] = obj[k]

Inherits from

Attributes

Inherited from base classes

Method summary

Inherited from base classes

Methods