[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

AltStyle によって変換されたページ (->オリジナル) /