Returns the first diagonal of a matrix
The Function \(GetDiag\) As a result, it returns a vector containing the values of the first diagonal of a matrix.
GetDiag (Matrix)