Skip to main content

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?