Skip to main content

identity

Function identity 

Source
pub fn identity<T: Element>(n: usize) -> FerrayResult<Array<T, Ix2>>
Expand description

Create a 2-D identity matrix of size n x n.

Analogous to numpy.identity().