Skip to main content

ClikaRT::ops::sinc

function

sinc()​

Tensor sinc(Tensor input)

Elementwise normalized sinc.

sinc(xi)=sin⁡(πxi)πxi\mathrm{sinc}(x_i) = \frac{\sin(\pi x_i)}{\pi x_i}

Normalized convention: zeros at nonzero integers, sinc(0) = 1 (matching torch / numpy). Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.

Throws

  • ClikaRT::Error: when the input's dtype is not served for this operation (the machine-readable reason rides code_name()).

Returns: a new tensor, same shape and dtype as input.

auto y = ClikaRT::ops::sinc(x);

Declared in ClikaRT/compute/ops.h, line 5223