cyjax.random.uniform_projective#

cyjax.random.uniform_projective(key, count, dim, affine=True)#

Uniformly distributed points in complex projective space.

Generate uniform points in \(\mathbb{P}^{\mathrm{dim}}\). If affine is true, return a tuple of affine coordinates and the respective patch index. Otherwise return the points as homogeneous coordinates which consist of \(\mathrm{dim}+1\) complex numbers.

Parameters:
  • key (Union[PRNGKeyArray, Array]) – PRNG random key.

  • count (int) – Number of points to generate.

  • dim (int) – Dimension of projective space.

  • affine (bool) – Whether to return the points as affine coordinates plus patch index, as opposed to homogeneous coordinates.

Return type:

Union[Array, ndarray, bool_, number, tuple[Union[Array, ndarray, bool_, number], Union[Array, ndarray, bool_, number]]]

Returns:

Array of homogeneous coordinates with shape (count, dim+1) or tuple of affine coordinates (count, dim) and patches (count,).