Mojo function
cubic_kernel
cubic_kernel(x: SIMD[float32, 1]) -> SIMD[float32, 1]
Cubic interpolation kernel with a=-0.5.
Args:
- x (
SIMD[float32, 1]
): Distance from the center point.
Returns:
Weight contribution based on the distance.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!