Skip to main content

Module convolution

Module convolution 

Source
Expand description

Convolution intrinsics — full migration to typed marshal layer.

Per the intrinsics-typed-CC migration’s per-file table, the single convolution intrinsic (stencil) migrates to a register_typed_fn_3_full typed entry via create_convolution_intrinsics_module. Inputs are Arc<Vec<f64>> (series + kernel) and an optional Arc<String> mode keyword (default "same"). Output projects through ConcreteReturn::ArrayF64.

__intrinsic_stencil was found to have zero stdlib/package consumers via post-bulldozer rg across crates/shape-runtime/stdlib-src/ and packages/; full-migrate-anyway maintains consumer-surface parity for any in-flight Shape consumer and flags the function as a deletion-candidate for shape-vm cleanup workstream’s natural scope (analogous to the scan.rs zero-consumer flag in N1’s queue subsection).

Provides SIMD-accelerated 1D convolution for:

  • Physics simulations (heat diffusion, wave equation)
  • Signal processing (FIR filters)
  • Spatial operations (smoothing, edge detection)

Functions§

create_convolution_intrinsics_module
Create the convolution intrinsics module with the single typed-marshal entry point __intrinsic_stencil.