scipy.sparse.bmat

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

Build a sparse matrix from sparse sub-blocks

Parameters:

blocks :

grid of sparse matrices with compatible shapes an entry of None implies an all-zero matrix

format : 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.triu

Next topic

scipy.sparse.hstack

This Page

Quick search