pub fn diagflat<T: Element>(
a: &Array<T, IxDyn>,
k: isize,
) -> FerrayResult<Array<T, IxDyn>>Expand description
Create a 2-D array with the flattened input as a diagonal.
Analogous to numpy.diagflat().
ยงErrors
Propagates errors from the underlying construction.