[−][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
input
is the input Arraydim
is the diagonal index relative to principal diagonal where values from input Array are to be placed
Return Values
An Array with values as a diagonal Matrix