Function arrayfire::identity_t
[−]
[src]
pub fn identity_t(dims: Dim4, dtype: DType) -> Array
Create an identity array with 1's in diagonal of given type(DType)
Parameters
dimsis the output Array dimensionsdtypeindicates whats the type of the Array to be created
Return Values
Identity matrix