angles_to_polysph: Conversion between the angular and Cartesian coordinates of the
polysphere
Description
Obtain the angular coordinates of points on a polysphere
\(\mathcal{S}^{d_1}\times\cdots\times\mathcal{S}^{d_r}\), and vice versa.
Usage
angles_to_polysph(theta, d)
polysph_to_angles(x, d)
Value
angles_to_polysph: the matrix x.
polysph_to_angles: the matrix theta.
Arguments
theta
matrix of size c(n, sum(d)) with the angles.
d
vector with the dimensions of the polysphere.
x
matrix of size c(n, sum(d + 1)) with the Cartesian
coordinates on \(\mathcal{S}^{d_1}\times\cdots\times\mathcal{S}^{d_r}\).
Assumed to be of unit norm by blocks of coordinates in the rows.