feat: config and approximate equality
All checks were successful
/ test (pull_request) Successful in 17s
All checks were successful
/ test (pull_request) Successful in 17s
Establishes a global config object for a TypeDispatcher instance, so far with just properties representing comparison tolerances. Begins a "relational" group of functions with basic approximate equality, and an initial primitive ordering comparison. Ensures that methods that depend on properties of `config` will be properly updated when those properties change.
This commit is contained in:
parent
27fa4b0193
commit
d3f2bc09b7
19 changed files with 496 additions and 175 deletions
5
src/generic/config.js
Normal file
5
src/generic/config.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {ImplementationsGenerator, onType} from '#core/helpers.js'
|
||||
import {Passthru} from '#core/TypePatterns.js'
|
||||
|
||||
export const config = new ImplementationsGenerator(
|
||||
() => onType(Passthru, {relTol: 1e-12, absTol: 1e-15}))
|
Loading…
Add table
Add a link
Reference in a new issue