discretize.utils.spzeros#

discretize.utils.spzeros(n1, n2)[source]#

Generate sparse matrix of zeros of shape=(n1, n2).

Parameters:
n1int

Number of rows.

n2int

Number of columns.

Returns:
(n1, n2) scipy.sparse.dia_matrix

A sparse matrix of zeros.