Routines#

zeros(bshape[, dtype, sizes, symmetry, format])

Create an empty sparse matrix of specified bshape and dtype.

diag(values[, offset, overlap, bshape, ...])

Create a sparse diagonal matrix of specified values and offset.

eye(bshape[, offset, dtype, format])

Create a sparse identity matrix of specified bshape and dtype.

load_npz(file)

Loads a bsparse matrix from a npz archive.

random(bshape[, density, dtype, format])

Create a sparse random matrix of specified shape and density.