SciPy.org SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Compressed sparse row matrix
This can be instantiated in several ways:
  - csr_matrix(d)
    with a dense matrix d

  - csr_matrix(s)
    with another sparse matrix s (sugar for .tocsr())

  - csr_matrix((M, N), [nzmax, dtype])
    to construct a container, where (M, N) are dimensions and
    nzmax, dtype are optional, defaulting to nzmax=sparse.NZMAX
    and dtype='d'.

  - csr_matrix((data, ij), [dims=(M, N), nzmax=nzmax])
    where data, ij satisfy:
        a[ij[0, k], ij[1, k]] = data[k]

  - csr_matrix((data, col, ptr), [dims=(M, N)])
    standard CSR representation

Method summary

Methods