tfg.math.spherical_harmonics.integration_product

Stay organized with collections Save and categorize content based on your preferences.

Computes the integral of harmonics1.harmonics2 over the sphere.

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.