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)

Arguments

x

An object that can be coerced to a numeric array.

Value

A logical value indicating whether the array is symmetric or not.

Author

Jon Clayden <code@clayden.org>