Algosim documentation: IsSkewSymmetric

IsSkewSymmetric

Tests if a matrix is skew-symmetric.

Syntax

Description

If A is a matrix, then IsSkewSymmetric(A) returns true iff A is skew-symmetric, that is, iff A is square and A[i, j] = −A[j, i] for all valid indices i and j. Floating-point comparisons are made with epsilon ε.

Examples

A ≔ ❨❨0, 2, 1, 1❩, ❨−2, 0, −1, 2❩, ❨−1, 1, 0, −2❩, ❨−1, −2, 2, 0❩❩
⎛ 0   2   1   1⎞
⎜−2   0  −1   2⎟
⎜−1   1   0  −2⎟
⎝−1  −2   2   0⎠
IsSkewSymmetric(A)
true

See also