ffsim.linalg.is_orthogonal

ffsim.linalg.is_orthogonal(mat, *, rtol=1e-05, atol=1e-08)[source]

Determine if a matrix is approximately orthogonal.

Parameters:
  • mat (ndarray) – The matrix.

  • rtol (float) – Relative numerical tolerance.

  • atol (float) – Absolute numerical tolerance.

Return type:

bool | bool

Returns:

Whether the matrix is orthogonal within the given tolerance.