fn
sinc
→Tensorsinc(x: Tensor)Normalised sinc function with the standard removable singularity at 0.
The "normalised" sinc carries a factor of inside the sine, so its zeros coincide with the non-zero integers — the convention used in signal processing.
Parameters
xTensorInput tensor. Any floating-point dtype.
Returns
TensorElement-wise normalised sinc with sinc(0) = 1.
Notes
Mathematical definition:
The composite uses lucid.where to substitute the limit value
at x = 0 so the gradient flows cleanly through the removable
singularity.
Examples
>>> import lucid
>>> x = lucid.tensor([0.0, 0.5, 1.0])
>>> lucid.sinc(x)
Tensor([1. , 0.6366, 0. ])