torch_harmonics.quadrature.clenshaw_curtiss_weights#

torch_harmonics.quadrature.clenshaw_curtiss_weights(n, a=-1.0, b=1.0)[source]#

Computation of the Clenshaw-Curtis quadrature nodes and weights. This implementation follows

Parameters:
  • n (int) – Number of quadrature nodes

  • a (Optional[float]) – Lower bound of the interval

  • b (Optional[float]) – Upper bound of the interval

Returns:

  • tcc (torch.Tensor) – Tensor of quadrature nodes

  • wcc (torch.Tensor) – Tensor of quadrature weights

Return type:

Tuple[Tensor, Tensor]

References

[5]