Chi2fit.Matrix.diagonal

You're seeing just the function diagonal, go back to Chi2fit.Matrix module for more information.

Specs

diagonal(matrix()) :: vector()

Returns the diagonal elements of the matrix as a vector.

Example

iex> diagonal [[1,2,3],[4,5,6],[7,8,9]]
[1, 5, 9]