Skip to content

Matrix Predicates

Sergey Duyunov edited this page Nov 17, 2019 · 2 revisions

antisymmetric?()

Returns true if this is an antisymmetric matrix. Raises an error if matrix is not square.

m = Matrix[
[ 0, 1, -3], 
[-1, 0, -5], 
[ 3, 5,  0]]
m.antisymmetric?
# => true