brainpy.math.random.orthogonal

Contents

brainpy.math.random.orthogonal#

brainpy.math.random.orthogonal(n, size=None, key=None)[source]#

Sample uniformly from the orthogonal group O(n).

Parameters:
  • n (int) – An integer indicating the resulting dimension.

  • size (optional, int, tuple of int) – The batch dimensions of the result.

Returns:

out – The sampled results.

Return type:

Array