# tfg.math.spherical_harmonics.integration_product

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/math/spherical_harmonics.py#L34-L75) |

Computes the integral of harmonics1.harmonics2 over the sphere.

    tfg.math.spherical_harmonics.integration_product(
        harmonics1: TensorLike,
        harmonics2: TensorLike,
        keepdims: bool = True,
        name: str = 'spherical_harmonics_convolution'
    ) -> TensorLike

<br />

<br />

<br />

| ## Note ||
|---|---|
| In the following, A1 to An are optional batch dimensions. ||

<br />

<br />

<br />

<br />

| ## Args ||
|---|---|
| `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". |

<br />

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if the last dimension of `harmonics1` is different from the last dimension of `harmonics2`. |

<br />