What it does
This tool stacks sparse matrices horizontally (column wise) or vertically (row wise). It can handle two different formats:
- Compressed Sparse Column matrix (csc_matrix)
- Compressed Sparse Row matrix (csr_matrix)
Sparse matrices in column format should be stacked horizontally (hstack) , while matrices in row format are stacked vertically (vstack). This tool outputs a single resulting sparse matrix which is compatible with the inputs in format.
Parameters: blocks sequence of sparse matrices with compatible shapes format.
For more information please refer to DOI:10.1109/MCSE.2011.37.