[][src]Function arrayfire::diag_create

pub fn diag_create<T>(input: &Array<T>, dim: i32) -> Array<T> where
    T: HasAfEnum

Create a diagonal matrix

Parameters

Return Values

An Array with values as a diagonal Matrix