code wiki / (root) / nx_morf_eval_core.nx

nx_morf_eval_core.nx

buildroot/runtime/nx_morf_eval_core.nx

6135 B144 linesdepth 0pulls 0 transitivereach 140 importersview sourcekind librarytopic morf
docsdependenciesstructsconstsfunctions

about

ORIGINAL. Pure MORF arithmetic extracted from the admitted mf_eval path. No file parser, allocations, globals, hardware access or rendering policy. The owner admits NXA through nxa_section_entry/nxa_counted_section and the existing MORF shape/membership checks, then lends immutable arrays here.

dependencies 0 imports · 4 importers

nx_morf_eval_core.nx nx_morf_draw_core.nx nx_morf_eval_core_gate.nx nx_nxa_morf.nx nx_nxa_morf_admit.nx

imports: none

imported by: nx_morf_draw_core.nxnx_morf_eval_core_gate.nxnx_nxa_morf.nxnx_nxa_morf_admit.nx

structs

13struct MvcView

consts

5const MVC_I64_MAX: i64 = 9223372036854775807
6const MVC_WORD: i64 = 8
7const MVC_AXES: i64 = 3
8const MVC_E_SHAPE: i64 = 0 - 1
9const MVC_E_ALIAS: i64 = 0 - 2
10const MVC_E_PRODUCT: i64 = 0 - 3
11const MVC_E_SUM: i64 = 0 - 4

functions

27func mvc_span(p: *i64, words: i64) -> i64
36func mvc_overlap(a: *i64, an: i64, b: *i64, bn: i64) -> i64
43func mvc_product_ok(dv: i64, weight: i64) -> i64
55func mvc_sum_ok(old: i64, add: i64) -> i64
66func mvc_apply(v: *MvcView, weights: *i64, weight_words: i64, out: *i64, out_words: i64) -> i64