diagonal

Return

the diagonal elements of the array as an array

Parameters

array

the square array, must not be null