thi-ng/umbrella

View on GitHub
packages/vectors/src/addns.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { VecOpSGVN, VecOpSVN } from "./api.js";
import { defOpS } from "./compile/emit.js";
import { ARGS_V, ARGS_VN, MATH_N, SARGS_V } from "./compile/templates.js";

export const [addNS, addNS2, addNS3, addNS4] = defOpS<VecOpSGVN, VecOpSVN>(
    MATH_N("+"),
    ARGS_VN,
    SARGS_V,
    ARGS_V
);