scipy.sparse.hstack

scipy.sparse.hstack(blocks, format=None, dtype=None)

Stack sparse matrices horizontally (column wise)

Parameters:

blocks :

sequence of sparse matrices with compatible shapes

format : string

sparse format of the result (e.g. “csr”) by default an appropriate sparse matrix format is returned. This choice is subject to change.

Previous topic

scipy.sparse.bmat

Next topic

scipy.sparse.vstack

This Page

Quick search