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.
- (
Galleries and Tutorials using discretize.utils.speye
#
Operators: Cahn Hilliard