Module Expr Str ImportFrom alias alias alias Assign NameStore Str Assign NameStore ListLoad Str Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body ImportFrom alias Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Expr Yield SubscriptLoad NameLoad ExtSlice Index NameLoad Slice decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ImportFrom alias Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad body Return AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad attr orelse Return SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore CompareNotEq AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list
N/A N/A Compressed Sparse Column matrix format __future__ division print_function absolute_import N/A __docformat__ restructuredtext en N/A __all__ N/A csc_matrix isspmatrix_csc N/A numpy np scipy._lib.six xrange base spmatrix _sparsetools csc_tocsr N/A _sparsetools sputils upcast isintlike IndexMixin get_index_dtype compressed _cs_matrix csc_matrix N/A _cs_matrix IndexMixin N/A N/A 
    Compressed Sparse Column matrix

    This can be instantiated in several ways:

        csc_matrix(D)
            with a dense matrix or rank-2 ndarray D

        csc_matrix(S)
            with another sparse matrix S (equivalent to S.tocsc())

        csc_matrix((M, N), [dtype])
            to construct an empty matrix with shape (M, N)
            dtype is optional, defaulting to dtype='d'.

        csc_matrix((data, (row_ind, col_ind)), [shape=(M, N)])
            where ``data``, ``row_ind`` and ``col_ind`` satisfy the
            relationship ``a[row_ind[k], col_ind[k]] = data[k]``.

        csc_matrix((data, indices, indptr), [shape=(M, N)])
            is the standard CSC representation where the row indices for
            column i are stored in ``indices[indptr[i]:indptr[i+1]]``
            and their corresponding values are stored in
            ``data[indptr[i]:indptr[i+1]]``.  If the shape parameter is
            not supplied, the matrix dimensions are inferred from
            the index arrays.

    Attributes
    ----------
    dtype : dtype
        Data type of the matrix
    shape : 2-tuple
        Shape of the matrix
    ndim : int
        Number of dimensions (this is always 2)
    nnz
        Number of nonzero elements
    data
        Data array of the matrix
    indices
        CSC format index array
    indptr
        CSC format index pointer array
    has_sorted_indices
        Whether indices are sorted

    Notes
    -----

    Sparse matrices can be used in arithmetic operations: they support
    addition, subtraction, multiplication, division, and matrix power.

    Advantages of the CSC format
        - efficient arithmetic operations CSC + CSC, CSC * CSC, etc.
        - efficient column slicing
        - fast matrix vector products (CSR, BSR may be faster)

    Disadvantages of the CSC format
      - slow row slicing operations (consider CSR)
      - changes to the sparsity structure are expensive (consider LIL or DOK)


    Examples
    --------

    >>> import numpy as np
    >>> from scipy.sparse import csc_matrix
    >>> csc_matrix((3, 4), dtype=np.int8).toarray()
    array([[0, 0, 0, 0],
           [0, 0, 0, 0],
           [0, 0, 0, 0]], dtype=int8)

    >>> row = np.array([0, 2, 2, 0, 1, 2])
    >>> col = np.array([0, 0, 1, 2, 2, 2])
    >>> data = np.array([1, 2, 3, 4, 5, 6])
    >>> csc_matrix((data, (row, col)), shape=(3, 3)).toarray()
    array([[1, 0, 4],
           [0, 0, 5],
           [2, 3, 6]])

    >>> indptr = np.array([0, 2, 3, 6])
    >>> indices = np.array([0, 2, 2, 0, 1, 2])
    >>> data = np.array([1, 2, 3, 4, 5, 6])
    >>> csc_matrix((data, indices, indptr), shape=(3, 3)).toarray()
    array([[1, 0, 4],
           [0, 0, 5],
           [2, 3, 6]])

     N/A format csc transpose N/A N/A self copy N/A False N/A csr csr_matrix N/A N/A M N N/A self shape N/A N/A csr_matrix N/A N/A self data N/A self indices N/A self indptr N/A N M copy copy N/A __iter__ N/A N/A self N/A N/A N/A csr N/A N/A self tocsr N/A r N/A xrange N/A N/A self shape N/A 0 N/A N/A N/A N/A csr N/A N/A r N/A N/A tocsc N/A N/A self copy N/A False N/A N/A copy N/A N/A N/A N/A self copy N/A N/A self N/A N/A N/A tocsc __doc__ N/A N/A spmatrix tocsc __doc__ tocsr N/A N/A self copy N/A False N/A N/A N/A M N N/A self shape N/A idx_dtype N/A get_index_dtype N/A N/A self indptr N/A self indices maxval N/A max N/A self nnz N N/A indptr N/A N/A np empty N/A M 1 dtype idx_dtype N/A indices N/A N/A np empty N/A self nnz dtype idx_dtype N/A data N/A N/A np empty N/A self nnz dtype N/A upcast N/A self dtype N/A N/A csc_tocsr M N N/A N/A N/A self indptr astype idx_dtype N/A N/A N/A self indices astype idx_dtype N/A self data indptr indices data csr csr_matrix N/A A N/A csr_matrix N/A data indices indptr shape N/A self shape N/A N/A A has_sorted_indices True N/A A N/A N/A N/A tocsr __doc__ N/A N/A spmatrix tocsr __doc__ __getitem__ N/A N/A self key N/A N/A N/A N/A row col N/A N/A self _unpack_index key N/A N/A N/A isinstance row slice N/A isinstance col slice N/A isintlike row N/A isintlike col N/A N/A N/A N/A N/A self T N/A N/A col row T N/A N/A N/A N/A self T N/A N/A col row N/A nonzero N/A N/A self N/A N/A N/A N/A major_dim minor_dim N/A N/A self _swap N/A self shape N/A minor_indices N/A self indices N/A major_indices N/A N/A np empty N/A len minor_indices dtype N/A N/A self indices dtype N/A N/A N/A _sparsetools expandptr major_dim N/A self indptr major_indices N/A N/A row col N/A N/A self _swap N/A major_indices minor_indices N/A nz_mask N/A N/A self data 0 N/A row N/A row N/A nz_mask N/A col N/A col N/A nz_mask N/A ind N/A N/A np argsort row kind mergesort N/A row N/A row N/A ind N/A col N/A col N/A ind N/A N/A row col N/A N/A N/A nonzero __doc__ N/A N/A _cs_matrix nonzero __doc__ getrow N/A N/A self i N/A N/A N/A Returns a copy of row i of the matrix, as a (1 x n)
        CSR matrix (row vector).
         N/A N/A N/A N/A N/A self _get_submatrix i N/A slice None tocsr N/A getcol N/A N/A self i N/A N/A N/A Returns a copy of column i of the matrix, as a (m x 1)
        CSC matrix (column vector).
         N/A N/A N/A self _get_submatrix N/A slice None i N/A _swap N/A N/A self x N/A N/A N/A swap the members of x if this is a column-oriented matrix
         N/A N/A N/A x N/A 1 N/A x N/A 0 N/A N/A isspmatrix_csc N/A N/A x N/A N/A N/A N/A isinstance x csc_matrix N/A