tfg.math.spherical_harmonics.integration_product

Computes the integral of harmonics1.harmonics2 over the sphere.

Note:

In the following, A1 to An are optional batch dimensions.

harmonics1 A tensor of shape [A1, ..., An, C], where the last dimension represents spherical harmonics coefficients.
harmonics2 A tensor of shape [A1, ..., An, C], where the last dimension represents spherical harmonics coefficients.
keepdims If True, retains reduced dimensions with length 1.
name A name for this op. Defaults to "spherical_harmonics_convolution".

A tensor of shape [A1, ..., An] containing scalar values resulting from integrating the product of the spherical harmonics harmonics1 and harmonics2.

ValueError if the last dimension of harmonics1 is different from the last dimension of harmonics2.