This function checks whether a numeric array is symmetric, in the sense of transposition. This is tested by comparing the reversed vectorised array to the unreversed equivalent.
symmetric(x)
x | An object that can be coerced to a numeric array. |
---|
A logical value indicating whether the array is symmetric or not.
Jon Clayden <code@clayden.org>