MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / constructor

Method constructor

src/compute-engine/rubi/driver.ts:148–159  ·  view source on GitHub ↗
(
    private readonly ce: ComputeEngine,
    private readonly rules: CompiledRule[],
    private readonly options: {
      timeLimitMs?: number;
      trace?: boolean;
      /** @internal Force the legacy full-scan dispatch (root-operator
       * prescreen only), bypassing the skeleton screen. Overrides the
       * `RUBI_NO_SKELETON` env default. For the A/B equivalence harness. */
      noSkeleton?: boolean;
    } = {}
  )

Source from the content-addressed store, hash-verified

146// RUBI_NO_RECIP: disable the csc/sec → sin^-1/cos^-1 reciprocal normalization
147// (for A/B measuring its effect on the benchmark).
148const NO_RECIP = process.env.RUBI_NO_RECIP !== undefined;
149// RUBI_NO_COFN: disable the sec→csc[+π/2] / cot→-tan[+π/2] cofunction
150// deactivation shift (A/B measuring its effect on the 4.5/4.3 benchmarks).
151const NO_COFN = process.env.RUBI_NO_COFN !== undefined;
152// RUBI_NO_SICI: disable the R15 rational×sin/cos(linear) → Si/Ci
153// partial-fraction fallback (A/B measuring its effect on the 4.1 benchmark).
154const NO_SICI = process.env.RUBI_NO_SICI !== undefined;
155// RUBI_NO_SICI_COMPLEX: disable only the R18 quadratic extension of the Si/Ci
156// fallback (irreducible-quadratic denominators split over complex-conjugate
157// linear roots), keeping the R15 all-linear path. A/B measures the quadratic
158// extension's effect on the 4.1.11 benchmark.
159const NO_SICI_COMPLEX = process.env.RUBI_NO_SICI_COMPLEX !== undefined;
160// RUBI_NO_TRIGSQ: disable the R16 poly×csc(u)²/sec(u)² integration-by-parts
161// fallback (A/B measuring its effect on the 4.1.10 benchmark).
162const NO_TRIGSQ = process.env.RUBI_NO_TRIGSQ !== undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected