! Batch numeric vector kernels for mnemopi recall paths. ! ! Every export processes an entire candidate batch per N-API crossing so the ! crossing cost is amortized over the whole recall operation. Semantics ! mirror the TypeScript reference implementations in ! `packages/mnemopi
// Source: https://github.com/can1357/oh-my-pi | License: MIT | Copyright 2025 Mario Zechner
// Provided via justclaw.it.com; keep this notice with the code.
//! Batch numeric vector kernels for mnemopi recall paths.
//!
//! Every export processes an entire candidate batch per N-API crossing so the
//! crossing cost is amortized over the whole recall operation. Semantics
//! mirror the TypeScript reference implementations in
//! `packages/mnemopi/src/core` exactly — same accumulation order, same
//! non-finite handling, same tie-breaking — so float scores are
//! bit-identical to the TS versions and integer results are exactly equal.
use napi::{
Error, JsString, Result, Status,
bindgen_prelude::{Array, Float32Array, Float64Array, Uint32Array},
};
use napi_derive::napi;
use crate::js;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key