[−][src]Function arrayfire::identity
pub fn identity<T: HasAfEnum>(dims: Dim4) -> Array<T>
Create an identity array with 1's in diagonal
Parameters
dims
is the output Array dimensions
Return Values
Identity matrix
pub fn identity<T: HasAfEnum>(dims: Dim4) -> Array<T>
Create an identity array with 1's in diagonal
dims
is the output Array dimensionsIdentity matrix