Define a predicate that determines whether a matrix (square) is symmetric about the main diagonal. The predicate would read about, where Z is a matrix (square) symmetric about the main diagonal
symmetrical (Z)
The idea is to check that the rows and columns are equal, but do not know how to begin to raise the exercise …
good old matrix I,J indexing:
test:
note I wrote this before I saw @gusbro comment, but it’s exactly what he suggested…