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

Function lanczos3

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

Source from the content-addressed store, hash-verified

52
53@support_sz(6)
54def lanczos3(x):
55 fw, to_dtype, eps = set_framework_dependencies(x)
56 return (((fw.sin(pi * x) * fw.sin(pi * x / 3) + eps) /
57 ((pi**2 * x**2 / 3) + eps)) * to_dtype(abs(x) < 3))
58
59
60@support_sz(2)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected