diagonal# static vectorious.diagonal(x)# Gets the diagonal of x. Arguments: x (NDArray) Returns: NDArray – Examples: import { diagonal } from 'vectorious/core/diagonal'; diagonal([[1, 2], [3, 4]]); // => array([1, 4])