ffsim.random.random_orthogonal¶
- ffsim.random.random_orthogonal(dim, seed=None, dtype=<class 'float'>)[source]¶
Return a random 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.Generatoror else a valid input tonp.random.default_rng.
- Return type:
- Returns:
The sampled orthogonal matrix.
References