Skip to main content

SimulationKernelFn

Type Alias SimulationKernelFn 

Source
pub type SimulationKernelFn = unsafe extern "C" fn(cursor_index: usize, series_ptrs: *const *const f64, state_ptr: *mut u8) -> i32;
Expand description

JIT-compiled simulation kernel function type.

This signature matches the kernel ABI in shape-jit:

  • cursor_index: Current row in the simulation
  • series_ptrs: Pointer to column data pointers (*const *const f64)
  • state_ptr: Pointer to TypedObject state buffer (*mut u8)
  • Returns: i32 (0 = continue, 1 = done, negative = error)