Check Matrix

assert_matrix(x, expected)

Arguments

x

A matrix to be checked.

expected

A character string specifying the expected value. It must be one of "square" or "symmetric".

Value

Throw an error, if any.

See also

Author

N. Frerebeau