UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

29 lines (28 loc) 555 B
import { fit as _fit, fit01 as _fit01, fit11 as _fit11 } from "@thi.ng/math/fit"; import { defHofOp } from "./compile/emit.js"; import { ARGS_VVV, FN3, FN5 } from "./compile/templates.js"; const [fit, fit2, fit3, fit4] = defHofOp( _fit, FN5(), "o,a,b,c,d,e" ); const [fit01, fit01_2, fit01_3, fit01_4] = defHofOp(_fit01, FN3(), ARGS_VVV); const [fit11, fit11_2, fit11_3, fit11_4] = defHofOp(_fit11, FN3(), ARGS_VVV); export { fit, fit01, fit01_2, fit01_3, fit01_4, fit11, fit11_2, fit11_3, fit11_4, fit2, fit3, fit4 };