ffsim.random.random_special_orthogonal

ffsim.random.random_special_orthogonal(dim, seed=None, dtype=<class 'float'>)[source]

Return a random special orthogonal matrix distributed with Haar measure.

Parameters:
  • dim (int) – The width and height of the matrix.

  • seed – The pseudorandom number generator or seed. Should be an instance of np.random.Generator or else a valid input to np.random.default_rng.

Return type:

ndarray

Returns:

The sampled special orthogonal matrix.