rong
a87445d656
feat(sql/ml): 掩码 WHERE+聚合 与 分箱 Mᵀ@y 接到密态算子,2 方端到端跑通
- nax-sql 加可选 feature secure:secure_where_aggregate 实现
SELECT COUNT/SUM/AVG/MIN/MAX ... WHERE col <op> T。
掩码 bit_lt/gt/eq → bit_mask;COUNT/SUM 本地线性;AVG scale_public+truncate;
MIN/MAX 用 (1-mask)·(±SENTINEL) 本地补位后两两 bit_lt+select_raw 归约(不靠 sentinel 分片)。
2 测对拍明文 Engine(含空命中 NaN)。
- nax-ml 新增 binning_secure:bad = Mᵀ·y(matmul_trunc) + total(本地列和),1 测对拍明文。
M/y 按 fxp 编码,Mᵀ@y 落 2fxp,matmul_trunc 截回 fxp。
workspace 216 测全绿;nax-sql --features secure 17、nax-fl --features secure 13、nax-ml 15,零警告。