Skip to main content

Module math

Module math 

Source
Expand description

Math FFI Functions for JIT

Trigonometric and mathematical functions for JIT-compiled code.

§SIMD Optimization

Series arithmetic (+, -, *, /) uses SIMD-accelerated operations from shape-runtime for high performance vectorized computation.

§R7.1 cleanup

The 11 dispatch-fallback trampolines (jit_generic_add/sub/mul/ div/mod, jit_generic_eq/neq, jit_generic_lt/le/gt/ge) were removed here after R5 retargeted the dynamic arithmetic / comparison paths to typed opcodes + CallMethod; the only remaining callers in MIR (compile_binop) were deleted in the same commit.

Functions§

jit_acos
jit_asin
jit_atan
jit_cos
jit_exp
jit_ln
jit_log
jit_pow
jit_series_gt
Generic comparison for Series > Series, Series > number, etc. Returns a Series of 1.0/0.0 for series comparisons, or a boolean for scalars.
jit_series_gte
jit_series_lt
jit_series_lte
jit_sin
jit_tan