random_antisymmetric_matrix#

random_antisymmetric_matrix(dim, seed=None)[source]#

Return a random antisymmetric matrix.

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

  • seed (Any | None) – The pseudorandom number generator or seed. Should be a valid input to numpy.random.default_rng().

Returns:

The sampled antisymmetric matrix.

Return type:

ndarray