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
dims
is the output Array dimensionsdtype
indicates whats the type of the Array to be created
Return Values
Identity matrix