Function arrayfire::diag_extract [] [src]

pub fn diag_extract(input: &Array, dim: i32) -> Array

Extract diagonal from a given Matrix

Parameters

  • input is the input Matrix
  • dim is the index of the diagonal that has to be extracted from the input Matrix

Return Values

An Array with values of the diagonal from input Array