nanomath/src/core/config.js

12 lines
397 B
JavaScript
Raw Normal View History

import {ImplementationsGenerator} from './Implementations.js'
import {ReturnTyping} from './Type.js'
import {match, Passthru} from './TypePatterns.js'
export const config = new ImplementationsGenerator(() => match(Passthru, {
// default comparison tolerances:
relTol: 1e-12,
absTol: 1e-15,
// Strategy for choosing operation return types:
returnTyping: ReturnTyping.free,
}))