discretize.utils.speye#
- discretize.utils.speye(n)[source]#
Generate sparse identity matrix.
- Parameters:
- n
int
The dimensions of the sparse identity matrix.
- n
- Returns:
- (
n
,n
)scipy.sparse.csr_matrix
The sparse identity matrix.
- (
Site Navigation
Section Navigation
discretize
)discretize.base
)discretize.operators
)discretize.mixins
)discretize.utils
)discretize.utils
)Generate sparse identity matrix.
int
The dimensions of the sparse identity matrix.
n
, n
) scipy.sparse.csr_matrix
The sparse identity matrix.
discretize.utils.speye
#