check_sym: Logical; if TRUE each matrix (slice) must be symmetric.
Returns
NULL.
Details
Check if x is a valid distance vector, matrix or array. It errors if any elements in x is negative, or if x is not a symmetric matrix or an array of symmetric matrices.