MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / lanczos2

Function lanczos2

utils/resize_right/interp_methods.py:47–50  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

45
46@support_sz(4)
47def lanczos2(x):
48 fw, to_dtype, eps = set_framework_dependencies(x)
49 return (((fw.sin(pi * x) * fw.sin(pi * x / 2) + eps) /
50 ((pi**2 * x**2 / 2) + eps)) * to_dtype(abs(x) < 2))
51
52
53@support_sz(6)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected