#[unsafe(no_mangle)]pub extern "C" fn spir_kernel_compute(
kernel: *const spir_kernel,
x: f64,
y: f64,
out: *mut f64,
) -> StatusCodeExpand description
Compute kernel value K(x, y)
§Arguments
kernel- Kernel objectx- First argument (typically in [-1, 1])y- Second argument (typically in [-1, 1])out- Pointer to store the result
§Returns
SPIR_COMPUTATION_SUCCESSon successSPIR_INVALID_ARGUMENTif kernel or out is nullSPIR_INTERNAL_ERRORif internal panic occurs