identity
Creates a sparse identity matrix of the specified size.
Return
A sparse identity matrix of size n x n.
Parameters
n
The size of the identity matrix (number of rows and columns).
Creates a sparse identity matrix of the specified size.
A sparse identity matrix of size n x n.
The size of the identity matrix (number of rows and columns).