DictStateFn.to_spmatrix

DictStateFn.to_spmatrix()[source]

Same as to_matrix, but returns csr sparse matrix.

Return type

spmatrix

Returns

CSR sparse matrix representation of the State function.

Raises

ValueError – invalid parameters.