@danielsimonjr/mathts-functions 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/algebra/decomposition/lup.d.ts +78 -0
- package/dist/algebra/decomposition/lup.d.ts.map +1 -0
- package/dist/algebra/decomposition/qr.d.ts +60 -0
- package/dist/algebra/decomposition/qr.d.ts.map +1 -0
- package/dist/algebra/decomposition/schur.d.ts +40 -0
- package/dist/algebra/decomposition/schur.d.ts.map +1 -0
- package/dist/algebra/decomposition/slu.d.ts +37 -0
- package/dist/algebra/decomposition/slu.d.ts.map +1 -0
- package/dist/algebra/derivative.d.ts +35 -0
- package/dist/algebra/derivative.d.ts.map +1 -0
- package/dist/algebra/leafCount.d.ts +9 -0
- package/dist/algebra/leafCount.d.ts.map +1 -0
- package/dist/algebra/lyap.d.ts +14 -0
- package/dist/algebra/lyap.d.ts.map +1 -0
- package/dist/algebra/polynomialRoot.d.ts +22 -0
- package/dist/algebra/polynomialRoot.d.ts.map +1 -0
- package/dist/algebra/rationalize.d.ts +43 -0
- package/dist/algebra/rationalize.d.ts.map +1 -0
- package/dist/algebra/resolve.d.ts +25 -0
- package/dist/algebra/resolve.d.ts.map +1 -0
- package/dist/algebra/simplify/util.d.ts +35 -0
- package/dist/algebra/simplify/util.d.ts.map +1 -0
- package/dist/algebra/simplify/wildcards.d.ts +5 -0
- package/dist/algebra/simplify/wildcards.d.ts.map +1 -0
- package/dist/algebra/simplify.d.ts +57 -0
- package/dist/algebra/simplify.d.ts.map +1 -0
- package/dist/algebra/simplifyConstant.d.ts +20 -0
- package/dist/algebra/simplifyConstant.d.ts.map +1 -0
- package/dist/algebra/simplifyCore.d.ts +21 -0
- package/dist/algebra/simplifyCore.d.ts.map +1 -0
- package/dist/algebra/solver/lsolve.d.ts +46 -0
- package/dist/algebra/solver/lsolve.d.ts.map +1 -0
- package/dist/algebra/solver/lsolveAll.d.ts +53 -0
- package/dist/algebra/solver/lsolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/lusolve.d.ts +62 -0
- package/dist/algebra/solver/lusolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolve.d.ts +46 -0
- package/dist/algebra/solver/usolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolveAll.d.ts +53 -0
- package/dist/algebra/solver/usolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts +31 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts.map +1 -0
- package/dist/algebra/sparse/csAmd.d.ts +15 -0
- package/dist/algebra/sparse/csAmd.d.ts.map +1 -0
- package/dist/algebra/sparse/csChol.d.ts +39 -0
- package/dist/algebra/sparse/csChol.d.ts.map +1 -0
- package/dist/algebra/sparse/csCounts.d.ts +13 -0
- package/dist/algebra/sparse/csCounts.d.ts.map +1 -0
- package/dist/algebra/sparse/csCumsum.d.ts +9 -0
- package/dist/algebra/sparse/csCumsum.d.ts.map +1 -0
- package/dist/algebra/sparse/csDfs.d.ts +23 -0
- package/dist/algebra/sparse/csDfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csEreach.d.ts +20 -0
- package/dist/algebra/sparse/csEreach.d.ts.map +1 -0
- package/dist/algebra/sparse/csEtree.d.ts +16 -0
- package/dist/algebra/sparse/csEtree.d.ts.map +1 -0
- package/dist/algebra/sparse/csFkeep.d.ts +22 -0
- package/dist/algebra/sparse/csFkeep.d.ts.map +1 -0
- package/dist/algebra/sparse/csFlip.d.ts +7 -0
- package/dist/algebra/sparse/csFlip.d.ts.map +1 -0
- package/dist/algebra/sparse/csIpvec.d.ts +10 -0
- package/dist/algebra/sparse/csIpvec.d.ts.map +1 -0
- package/dist/algebra/sparse/csLeaf.d.ts +21 -0
- package/dist/algebra/sparse/csLeaf.d.ts.map +1 -0
- package/dist/algebra/sparse/csLu.d.ts +37 -0
- package/dist/algebra/sparse/csLu.d.ts.map +1 -0
- package/dist/algebra/sparse/csMark.d.ts +8 -0
- package/dist/algebra/sparse/csMark.d.ts.map +1 -0
- package/dist/algebra/sparse/csMarked.d.ts +8 -0
- package/dist/algebra/sparse/csMarked.d.ts.map +1 -0
- package/dist/algebra/sparse/csPermute.d.ts +27 -0
- package/dist/algebra/sparse/csPermute.d.ts.map +1 -0
- package/dist/algebra/sparse/csPost.d.ts +8 -0
- package/dist/algebra/sparse/csPost.d.ts.map +1 -0
- package/dist/algebra/sparse/csReach.d.ts +23 -0
- package/dist/algebra/sparse/csReach.d.ts.map +1 -0
- package/dist/algebra/sparse/csSpsolve.d.ts +15 -0
- package/dist/algebra/sparse/csSpsolve.d.ts.map +1 -0
- package/dist/algebra/sparse/csSqr.d.ts +25 -0
- package/dist/algebra/sparse/csSqr.d.ts.map +1 -0
- package/dist/algebra/sparse/csSymperm.d.ts +22 -0
- package/dist/algebra/sparse/csSymperm.d.ts.map +1 -0
- package/dist/algebra/sparse/csTdfs.d.ts +13 -0
- package/dist/algebra/sparse/csTdfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csUnflip.d.ts +7 -0
- package/dist/algebra/sparse/csUnflip.d.ts.map +1 -0
- package/dist/algebra/sylvester.d.ts +30 -0
- package/dist/algebra/sylvester.d.ts.map +1 -0
- package/dist/algebra/symbolicEqual.d.ts +18 -0
- package/dist/algebra/symbolicEqual.d.ts.map +1 -0
- package/dist/arithmetic/abs.d.ts +7 -0
- package/dist/arithmetic/abs.d.ts.map +1 -0
- package/dist/arithmetic/addScalar.d.ts +7 -0
- package/dist/arithmetic/addScalar.d.ts.map +1 -0
- package/dist/arithmetic/cbrt.d.ts +37 -0
- package/dist/arithmetic/cbrt.d.ts.map +1 -0
- package/dist/arithmetic/ceil.d.ts +22 -0
- package/dist/arithmetic/ceil.d.ts.map +1 -0
- package/dist/arithmetic/cube.d.ts +7 -0
- package/dist/arithmetic/cube.d.ts.map +1 -0
- package/dist/arithmetic/divide.d.ts +42 -0
- package/dist/arithmetic/divide.d.ts.map +1 -0
- package/dist/arithmetic/divideScalar.d.ts +8 -0
- package/dist/arithmetic/divideScalar.d.ts.map +1 -0
- package/dist/arithmetic/dotDivide.d.ts +13 -0
- package/dist/arithmetic/dotDivide.d.ts.map +1 -0
- package/dist/arithmetic/dotMultiply.d.ts +11 -0
- package/dist/arithmetic/dotMultiply.d.ts.map +1 -0
- package/dist/arithmetic/dotPow.d.ts +16 -0
- package/dist/arithmetic/dotPow.d.ts.map +1 -0
- package/dist/arithmetic/exp.d.ts +7 -0
- package/dist/arithmetic/exp.d.ts.map +1 -0
- package/dist/arithmetic/expm1.d.ts +15 -0
- package/dist/arithmetic/expm1.d.ts.map +1 -0
- package/dist/arithmetic/fix.d.ts +30 -0
- package/dist/arithmetic/fix.d.ts.map +1 -0
- package/dist/arithmetic/floor.d.ts +22 -0
- package/dist/arithmetic/floor.d.ts.map +1 -0
- package/dist/arithmetic/gcd.d.ts +25 -0
- package/dist/arithmetic/gcd.d.ts.map +1 -0
- package/dist/arithmetic/hypot.d.ts +14 -0
- package/dist/arithmetic/hypot.d.ts.map +1 -0
- package/dist/arithmetic/invmod.d.ts +19 -0
- package/dist/arithmetic/invmod.d.ts.map +1 -0
- package/dist/arithmetic/lcm.d.ts +10 -0
- package/dist/arithmetic/lcm.d.ts.map +1 -0
- package/dist/arithmetic/log.d.ts +18 -0
- package/dist/arithmetic/log.d.ts.map +1 -0
- package/dist/arithmetic/log10.d.ts +18 -0
- package/dist/arithmetic/log10.d.ts.map +1 -0
- package/dist/arithmetic/log1p.d.ts +19 -0
- package/dist/arithmetic/log1p.d.ts.map +1 -0
- package/dist/arithmetic/log2.d.ts +17 -0
- package/dist/arithmetic/log2.d.ts.map +1 -0
- package/dist/arithmetic/mod.d.ts +15 -0
- package/dist/arithmetic/mod.d.ts.map +1 -0
- package/dist/arithmetic/multiplyScalar.d.ts +7 -0
- package/dist/arithmetic/multiplyScalar.d.ts.map +1 -0
- package/dist/arithmetic/norm.d.ts +33 -0
- package/dist/arithmetic/norm.d.ts.map +1 -0
- package/dist/arithmetic/nthRoot.d.ts +38 -0
- package/dist/arithmetic/nthRoot.d.ts.map +1 -0
- package/dist/arithmetic/nthRoots.d.ts +23 -0
- package/dist/arithmetic/nthRoots.d.ts.map +1 -0
- package/dist/arithmetic/pow.d.ts +34 -0
- package/dist/arithmetic/pow.d.ts.map +1 -0
- package/dist/arithmetic/round.d.ts +27 -0
- package/dist/arithmetic/round.d.ts.map +1 -0
- package/dist/arithmetic/sign.d.ts +31 -0
- package/dist/arithmetic/sign.d.ts.map +1 -0
- package/dist/arithmetic/sqrt.d.ts +16 -0
- package/dist/arithmetic/sqrt.d.ts.map +1 -0
- package/dist/arithmetic/square.d.ts +7 -0
- package/dist/arithmetic/square.d.ts.map +1 -0
- package/dist/arithmetic/subtract.d.ts +18 -0
- package/dist/arithmetic/subtract.d.ts.map +1 -0
- package/dist/arithmetic/subtractScalar.d.ts +7 -0
- package/dist/arithmetic/subtractScalar.d.ts.map +1 -0
- package/dist/arithmetic/unaryMinus.d.ts +10 -0
- package/dist/arithmetic/unaryMinus.d.ts.map +1 -0
- package/dist/arithmetic/unaryPlus.d.ts +10 -0
- package/dist/arithmetic/unaryPlus.d.ts.map +1 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts +37 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts.map +1 -0
- package/dist/arithmetic/xgcd.d.ts +25 -0
- package/dist/arithmetic/xgcd.d.ts.map +1 -0
- package/dist/bitwise/bitAnd.d.ts +10 -0
- package/dist/bitwise/bitAnd.d.ts.map +1 -0
- package/dist/bitwise/bitNot.d.ts +7 -0
- package/dist/bitwise/bitNot.d.ts.map +1 -0
- package/dist/bitwise/bitOr.d.ts +11 -0
- package/dist/bitwise/bitOr.d.ts.map +1 -0
- package/dist/bitwise/bitXor.d.ts +11 -0
- package/dist/bitwise/bitXor.d.ts.map +1 -0
- package/dist/bitwise/leftShift.d.ts +17 -0
- package/dist/bitwise/leftShift.d.ts.map +1 -0
- package/dist/bitwise/rightArithShift.d.ts +17 -0
- package/dist/bitwise/rightArithShift.d.ts.map +1 -0
- package/dist/bitwise/rightLogShift.d.ts +17 -0
- package/dist/bitwise/rightLogShift.d.ts.map +1 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts +19 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts.map +1 -0
- package/dist/combinatorics/bellNumbers.d.ts +14 -0
- package/dist/combinatorics/bellNumbers.d.ts.map +1 -0
- package/dist/combinatorics/catalan.d.ts +16 -0
- package/dist/combinatorics/catalan.d.ts.map +1 -0
- package/dist/combinatorics/composition.d.ts +16 -0
- package/dist/combinatorics/composition.d.ts.map +1 -0
- package/dist/combinatorics/stirlingS2.d.ts +22 -0
- package/dist/combinatorics/stirlingS2.d.ts.map +1 -0
- package/dist/complex/arg.d.ts +7 -0
- package/dist/complex/arg.d.ts.map +1 -0
- package/dist/complex/conj.d.ts +7 -0
- package/dist/complex/conj.d.ts.map +1 -0
- package/dist/complex/im.d.ts +7 -0
- package/dist/complex/im.d.ts.map +1 -0
- package/dist/complex/re.d.ts +7 -0
- package/dist/complex/re.d.ts.map +1 -0
- package/dist/core/config.d.ts +17 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/create.d.ts +137 -0
- package/dist/core/create.d.ts.map +1 -0
- package/dist/core/function/config.d.ts +35 -0
- package/dist/core/function/config.d.ts.map +1 -0
- package/dist/core/function/import.d.ts +30 -0
- package/dist/core/function/import.d.ts.map +1 -0
- package/dist/core/function/typed.d.ts +127 -0
- package/dist/core/function/typed.d.ts.map +1 -0
- package/dist/error/ArgumentsError.d.ts +21 -0
- package/dist/error/ArgumentsError.d.ts.map +1 -0
- package/dist/error/DimensionError.d.ts +18 -0
- package/dist/error/DimensionError.d.ts.map +1 -0
- package/dist/error/IndexError.d.ts +24 -0
- package/dist/error/IndexError.d.ts.map +1 -0
- package/dist/error/MathjsError.d.ts +13 -0
- package/dist/error/MathjsError.d.ts.map +1 -0
- package/dist/expression/operators.d.ts +942 -0
- package/dist/expression/operators.d.ts.map +1 -0
- package/dist/factories/evaluate.d.ts +91 -0
- package/dist/factories/evaluate.d.ts.map +1 -0
- package/dist/factories/index.d.ts +317 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/factories/matrix-bridge.d.ts +241 -0
- package/dist/factories/matrix-bridge.d.ts.map +1 -0
- package/dist/factories/scope.d.ts +12 -0
- package/dist/factories/scope.d.ts.map +1 -0
- package/dist/geometry/distance.d.ts +15 -0
- package/dist/geometry/distance.d.ts.map +1 -0
- package/dist/geometry/intersect.d.ts +26 -0
- package/dist/geometry/intersect.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -30
- package/dist/logical/and.d.ts +17 -0
- package/dist/logical/and.d.ts.map +1 -0
- package/dist/logical/not.d.ts +7 -0
- package/dist/logical/not.d.ts.map +1 -0
- package/dist/logical/nullish.d.ts +11 -0
- package/dist/logical/nullish.d.ts.map +1 -0
- package/dist/logical/or.d.ts +15 -0
- package/dist/logical/or.d.ts.map +1 -0
- package/dist/logical/xor.d.ts +15 -0
- package/dist/logical/xor.d.ts.map +1 -0
- package/dist/matrix/column.d.ts +22 -0
- package/dist/matrix/column.d.ts.map +1 -0
- package/dist/matrix/concat.d.ts +6 -0
- package/dist/matrix/concat.d.ts.map +1 -0
- package/dist/matrix/count.d.ts +9 -0
- package/dist/matrix/count.d.ts.map +1 -0
- package/dist/matrix/cross.d.ts +7 -0
- package/dist/matrix/cross.d.ts.map +1 -0
- package/dist/matrix/ctranspose.d.ts +9 -0
- package/dist/matrix/ctranspose.d.ts.map +1 -0
- package/dist/matrix/det.d.ts +42 -0
- package/dist/matrix/det.d.ts.map +1 -0
- package/dist/matrix/diag.d.ts +26 -0
- package/dist/matrix/diag.d.ts.map +1 -0
- package/dist/matrix/diff.d.ts +8 -0
- package/dist/matrix/diff.d.ts.map +1 -0
- package/dist/matrix/dot.d.ts +17 -0
- package/dist/matrix/dot.d.ts.map +1 -0
- package/dist/matrix/eigs/complexEigs.d.ts +48 -0
- package/dist/matrix/eigs/complexEigs.d.ts.map +1 -0
- package/dist/matrix/eigs/realSymmetric.d.ts +34 -0
- package/dist/matrix/eigs/realSymmetric.d.ts.map +1 -0
- package/dist/matrix/eigs.d.ts +75 -0
- package/dist/matrix/eigs.d.ts.map +1 -0
- package/dist/matrix/expm.d.ts +26 -0
- package/dist/matrix/expm.d.ts.map +1 -0
- package/dist/matrix/fft.d.ts +41 -0
- package/dist/matrix/fft.d.ts.map +1 -0
- package/dist/matrix/filter.d.ts +7 -0
- package/dist/matrix/filter.d.ts.map +1 -0
- package/dist/matrix/flatten.d.ts +7 -0
- package/dist/matrix/flatten.d.ts.map +1 -0
- package/dist/matrix/forEach.d.ts +7 -0
- package/dist/matrix/forEach.d.ts.map +1 -0
- package/dist/matrix/getMatrixDataType.d.ts +7 -0
- package/dist/matrix/getMatrixDataType.d.ts.map +1 -0
- package/dist/matrix/identity.d.ts +41 -0
- package/dist/matrix/identity.d.ts.map +1 -0
- package/dist/matrix/ifft.d.ts +33 -0
- package/dist/matrix/ifft.d.ts.map +1 -0
- package/dist/matrix/inv.d.ts +48 -0
- package/dist/matrix/inv.d.ts.map +1 -0
- package/dist/matrix/kron.d.ts +17 -0
- package/dist/matrix/kron.d.ts.map +1 -0
- package/dist/matrix/map.d.ts +7 -0
- package/dist/matrix/map.d.ts.map +1 -0
- package/dist/matrix/mapSlices.d.ts +6 -0
- package/dist/matrix/mapSlices.d.ts.map +1 -0
- package/dist/matrix/matrixFromColumns.d.ts +36 -0
- package/dist/matrix/matrixFromColumns.d.ts.map +1 -0
- package/dist/matrix/matrixFromFunction.d.ts +7 -0
- package/dist/matrix/matrixFromFunction.d.ts.map +1 -0
- package/dist/matrix/matrixFromRows.d.ts +36 -0
- package/dist/matrix/matrixFromRows.d.ts.map +1 -0
- package/dist/matrix/ones.d.ts +3 -0
- package/dist/matrix/ones.d.ts.map +1 -0
- package/dist/matrix/partitionSelect.d.ts +13 -0
- package/dist/matrix/partitionSelect.d.ts.map +1 -0
- package/dist/matrix/pinv.d.ts +51 -0
- package/dist/matrix/pinv.d.ts.map +1 -0
- package/dist/matrix/range.d.ts +27 -0
- package/dist/matrix/range.d.ts.map +1 -0
- package/dist/matrix/reshape.d.ts +8 -0
- package/dist/matrix/reshape.d.ts.map +1 -0
- package/dist/matrix/resize.d.ts +17 -0
- package/dist/matrix/resize.d.ts.map +1 -0
- package/dist/matrix/rotate.d.ts +7 -0
- package/dist/matrix/rotate.d.ts.map +1 -0
- package/dist/matrix/rotationMatrix.d.ts +17 -0
- package/dist/matrix/rotationMatrix.d.ts.map +1 -0
- package/dist/matrix/row.d.ts +22 -0
- package/dist/matrix/row.d.ts.map +1 -0
- package/dist/matrix/size.d.ts +9 -0
- package/dist/matrix/size.d.ts.map +1 -0
- package/dist/matrix/sort.d.ts +8 -0
- package/dist/matrix/sort.d.ts.map +1 -0
- package/dist/matrix/sqrtm.d.ts +33 -0
- package/dist/matrix/sqrtm.d.ts.map +1 -0
- package/dist/matrix/squeeze.d.ts +7 -0
- package/dist/matrix/squeeze.d.ts.map +1 -0
- package/dist/matrix/subset.d.ts +7 -0
- package/dist/matrix/subset.d.ts.map +1 -0
- package/dist/matrix/trace.d.ts +25 -0
- package/dist/matrix/trace.d.ts.map +1 -0
- package/dist/matrix/transpose.d.ts +45 -0
- package/dist/matrix/transpose.d.ts.map +1 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts +32 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts.map +1 -0
- package/dist/matrix/zeros.d.ts +3 -0
- package/dist/matrix/zeros.d.ts.map +1 -0
- package/dist/numeric/solveODE.d.ts +2 -0
- package/dist/numeric/solveODE.d.ts.map +1 -0
- package/dist/plain/number/arithmetic.d.ts +168 -0
- package/dist/plain/number/arithmetic.d.ts.map +1 -0
- package/dist/plain/number/bitwise.d.ts +29 -0
- package/dist/plain/number/bitwise.d.ts.map +1 -0
- package/dist/plain/number/combinations.d.ts +5 -0
- package/dist/plain/number/combinations.d.ts.map +1 -0
- package/dist/plain/number/constants.d.ts +5 -0
- package/dist/plain/number/constants.d.ts.map +1 -0
- package/dist/plain/number/index.d.ts +10 -0
- package/dist/plain/number/index.d.ts.map +1 -0
- package/dist/plain/number/logical.d.ts +17 -0
- package/dist/plain/number/logical.d.ts.map +1 -0
- package/dist/plain/number/probability.d.ts +15 -0
- package/dist/plain/number/probability.d.ts.map +1 -0
- package/dist/plain/number/relational.d.ts +29 -0
- package/dist/plain/number/relational.d.ts.map +1 -0
- package/dist/plain/number/trigonometry.d.ts +101 -0
- package/dist/plain/number/trigonometry.d.ts.map +1 -0
- package/dist/plain/number/utils.d.ts +21 -0
- package/dist/plain/number/utils.d.ts.map +1 -0
- package/dist/probability/bernoulli.d.ts +19 -0
- package/dist/probability/bernoulli.d.ts.map +1 -0
- package/dist/probability/combinations.d.ts +7 -0
- package/dist/probability/combinations.d.ts.map +1 -0
- package/dist/probability/combinationsWithRep.d.ts +7 -0
- package/dist/probability/combinationsWithRep.d.ts.map +1 -0
- package/dist/probability/factorial.d.ts +8 -0
- package/dist/probability/factorial.d.ts.map +1 -0
- package/dist/probability/gamma.d.ts +45 -0
- package/dist/probability/gamma.d.ts.map +1 -0
- package/dist/probability/kldivergence.d.ts +18 -0
- package/dist/probability/kldivergence.d.ts.map +1 -0
- package/dist/probability/lgamma.d.ts +24 -0
- package/dist/probability/lgamma.d.ts.map +1 -0
- package/dist/probability/multinomial.d.ts +13 -0
- package/dist/probability/multinomial.d.ts.map +1 -0
- package/dist/probability/permutations.d.ts +8 -0
- package/dist/probability/permutations.d.ts.map +1 -0
- package/dist/probability/pickRandom.d.ts +10 -0
- package/dist/probability/pickRandom.d.ts.map +1 -0
- package/dist/probability/random.d.ts +11 -0
- package/dist/probability/random.d.ts.map +1 -0
- package/dist/probability/randomInt.d.ts +11 -0
- package/dist/probability/randomInt.d.ts.map +1 -0
- package/dist/probability/util/randomMatrix.d.ts +10 -0
- package/dist/probability/util/randomMatrix.d.ts.map +1 -0
- package/dist/probability/util/seededRNG.d.ts +4 -0
- package/dist/probability/util/seededRNG.d.ts.map +1 -0
- package/dist/relational/compare.d.ts +38 -0
- package/dist/relational/compare.d.ts.map +1 -0
- package/dist/relational/compareNatural.d.ts +8 -0
- package/dist/relational/compareNatural.d.ts.map +1 -0
- package/dist/relational/compareText.d.ts +15 -0
- package/dist/relational/compareText.d.ts.map +1 -0
- package/dist/relational/compareUnits.d.ts +9 -0
- package/dist/relational/compareUnits.d.ts.map +1 -0
- package/dist/relational/deepEqual.d.ts +8 -0
- package/dist/relational/deepEqual.d.ts.map +1 -0
- package/dist/relational/equal.d.ts +26 -0
- package/dist/relational/equal.d.ts.map +1 -0
- package/dist/relational/equalScalar.d.ts +11 -0
- package/dist/relational/equalScalar.d.ts.map +1 -0
- package/dist/relational/equalText.d.ts +9 -0
- package/dist/relational/equalText.d.ts.map +1 -0
- package/dist/relational/larger.d.ts +34 -0
- package/dist/relational/larger.d.ts.map +1 -0
- package/dist/relational/largerEq.d.ts +27 -0
- package/dist/relational/largerEq.d.ts.map +1 -0
- package/dist/relational/smaller.d.ts +34 -0
- package/dist/relational/smaller.d.ts.map +1 -0
- package/dist/relational/smallerEq.d.ts +27 -0
- package/dist/relational/smallerEq.d.ts.map +1 -0
- package/dist/relational/unequal.d.ts +28 -0
- package/dist/relational/unequal.d.ts.map +1 -0
- package/dist/set/setCartesian.d.ts +15 -0
- package/dist/set/setCartesian.d.ts.map +1 -0
- package/dist/set/setDifference.d.ts +15 -0
- package/dist/set/setDifference.d.ts.map +1 -0
- package/dist/set/setDistinct.d.ts +2 -0
- package/dist/set/setDistinct.d.ts.map +1 -0
- package/dist/set/setIntersect.d.ts +15 -0
- package/dist/set/setIntersect.d.ts.map +1 -0
- package/dist/set/setIsSubset.d.ts +2 -0
- package/dist/set/setIsSubset.d.ts.map +1 -0
- package/dist/set/setMultiplicity.d.ts +2 -0
- package/dist/set/setMultiplicity.d.ts.map +1 -0
- package/dist/set/setPowerset.d.ts +2 -0
- package/dist/set/setPowerset.d.ts.map +1 -0
- package/dist/set/setSize.d.ts +2 -0
- package/dist/set/setSize.d.ts.map +1 -0
- package/dist/set/setSymDifference.d.ts +15 -0
- package/dist/set/setSymDifference.d.ts.map +1 -0
- package/dist/set/setUnion.d.ts +16 -0
- package/dist/set/setUnion.d.ts.map +1 -0
- package/dist/signal/freqz.d.ts +2 -0
- package/dist/signal/freqz.d.ts.map +1 -0
- package/dist/signal/zpk2tf.d.ts +2 -0
- package/dist/signal/zpk2tf.d.ts.map +1 -0
- package/dist/special/erf.d.ts +7 -0
- package/dist/special/erf.d.ts.map +1 -0
- package/dist/special/zeta.d.ts +38 -0
- package/dist/special/zeta.d.ts.map +1 -0
- package/dist/statistics/corr.d.ts +18 -0
- package/dist/statistics/corr.d.ts.map +1 -0
- package/dist/statistics/cumsum.d.ts +9 -0
- package/dist/statistics/cumsum.d.ts.map +1 -0
- package/dist/statistics/mad.d.ts +11 -0
- package/dist/statistics/mad.d.ts.map +1 -0
- package/dist/statistics/max.d.ts +12 -0
- package/dist/statistics/max.d.ts.map +1 -0
- package/dist/statistics/mean.d.ts +9 -0
- package/dist/statistics/mean.d.ts.map +1 -0
- package/dist/statistics/median.d.ts +11 -0
- package/dist/statistics/median.d.ts.map +1 -0
- package/dist/statistics/min.d.ts +12 -0
- package/dist/statistics/min.d.ts.map +1 -0
- package/dist/statistics/mode.d.ts +9 -0
- package/dist/statistics/mode.d.ts.map +1 -0
- package/dist/statistics/prod.d.ts +12 -0
- package/dist/statistics/prod.d.ts.map +1 -0
- package/dist/statistics/quantileSeq.d.ts +26 -0
- package/dist/statistics/quantileSeq.d.ts.map +1 -0
- package/dist/statistics/std.d.ts +10 -0
- package/dist/statistics/std.d.ts.map +1 -0
- package/dist/statistics/sum.d.ts +12 -0
- package/dist/statistics/sum.d.ts.map +1 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts +18 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts.map +1 -0
- package/dist/statistics/variance.d.ts +13 -0
- package/dist/statistics/variance.d.ts.map +1 -0
- package/dist/string/bin.d.ts +36 -0
- package/dist/string/bin.d.ts.map +1 -0
- package/dist/string/format.d.ts +7 -0
- package/dist/string/format.d.ts.map +1 -0
- package/dist/string/hex.d.ts +35 -0
- package/dist/string/hex.d.ts.map +1 -0
- package/dist/string/oct.d.ts +36 -0
- package/dist/string/oct.d.ts.map +1 -0
- package/dist/string/print.d.ts +7 -0
- package/dist/string/print.d.ts.map +1 -0
- package/dist/trigonometry/acos.d.ts +16 -0
- package/dist/trigonometry/acos.d.ts.map +1 -0
- package/dist/trigonometry/acosh.d.ts +14 -0
- package/dist/trigonometry/acosh.d.ts.map +1 -0
- package/dist/trigonometry/acot.d.ts +12 -0
- package/dist/trigonometry/acot.d.ts.map +1 -0
- package/dist/trigonometry/acoth.d.ts +19 -0
- package/dist/trigonometry/acoth.d.ts.map +1 -0
- package/dist/trigonometry/acsc.d.ts +19 -0
- package/dist/trigonometry/acsc.d.ts.map +1 -0
- package/dist/trigonometry/acsch.d.ts +12 -0
- package/dist/trigonometry/acsch.d.ts.map +1 -0
- package/dist/trigonometry/asec.d.ts +19 -0
- package/dist/trigonometry/asec.d.ts.map +1 -0
- package/dist/trigonometry/asech.d.ts +19 -0
- package/dist/trigonometry/asech.d.ts.map +1 -0
- package/dist/trigonometry/asin.d.ts +16 -0
- package/dist/trigonometry/asin.d.ts.map +1 -0
- package/dist/trigonometry/asinh.d.ts +5 -0
- package/dist/trigonometry/asinh.d.ts.map +1 -0
- package/dist/trigonometry/atan.d.ts +7 -0
- package/dist/trigonometry/atan.d.ts.map +1 -0
- package/dist/trigonometry/atan2.d.ts +22 -0
- package/dist/trigonometry/atan2.d.ts.map +1 -0
- package/dist/trigonometry/atanh.d.ts +14 -0
- package/dist/trigonometry/atanh.d.ts.map +1 -0
- package/dist/trigonometry/cos.d.ts +7 -0
- package/dist/trigonometry/cos.d.ts.map +1 -0
- package/dist/trigonometry/cosh.d.ts +7 -0
- package/dist/trigonometry/cosh.d.ts.map +1 -0
- package/dist/trigonometry/cot.d.ts +12 -0
- package/dist/trigonometry/cot.d.ts.map +1 -0
- package/dist/trigonometry/coth.d.ts +12 -0
- package/dist/trigonometry/coth.d.ts.map +1 -0
- package/dist/trigonometry/csc.d.ts +12 -0
- package/dist/trigonometry/csc.d.ts.map +1 -0
- package/dist/trigonometry/csch.d.ts +12 -0
- package/dist/trigonometry/csch.d.ts.map +1 -0
- package/dist/trigonometry/sec.d.ts +12 -0
- package/dist/trigonometry/sec.d.ts.map +1 -0
- package/dist/trigonometry/sech.d.ts +12 -0
- package/dist/trigonometry/sech.d.ts.map +1 -0
- package/dist/trigonometry/sin.d.ts +7 -0
- package/dist/trigonometry/sin.d.ts.map +1 -0
- package/dist/trigonometry/sinh.d.ts +7 -0
- package/dist/trigonometry/sinh.d.ts.map +1 -0
- package/dist/trigonometry/tan.d.ts +7 -0
- package/dist/trigonometry/tan.d.ts.map +1 -0
- package/dist/trigonometry/tanh.d.ts +7 -0
- package/dist/trigonometry/tanh.d.ts.map +1 -0
- package/dist/trigonometry/trigUnit.d.ts +9 -0
- package/dist/trigonometry/trigUnit.d.ts.map +1 -0
- package/dist/type/bignumber/BigNumber.d.ts +46 -0
- package/dist/type/bignumber/BigNumber.d.ts.map +1 -0
- package/dist/type/chain/Chain.d.ts +58 -0
- package/dist/type/chain/Chain.d.ts.map +1 -0
- package/dist/type/chain/function/chain.d.ts +6 -0
- package/dist/type/chain/function/chain.d.ts.map +1 -0
- package/dist/type/complex/Complex.d.ts +74 -0
- package/dist/type/complex/Complex.d.ts.map +1 -0
- package/dist/type/local/Decimal.d.ts +223 -0
- package/dist/type/local/Decimal.d.ts.map +1 -0
- package/dist/type/matrix/FibonacciHeap.d.ts +59 -0
- package/dist/type/matrix/FibonacciHeap.d.ts.map +1 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts +282 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts.map +1 -0
- package/dist/type/matrix/MatrixIndex.d.ts +386 -0
- package/dist/type/matrix/MatrixIndex.d.ts.map +1 -0
- package/dist/type/matrix/Spa.d.ts +40 -0
- package/dist/type/matrix/Spa.d.ts.map +1 -0
- package/dist/type/matrix/function/index.d.ts +11 -0
- package/dist/type/matrix/function/index.d.ts.map +1 -0
- package/dist/type/matrix/types.d.ts +435 -0
- package/dist/type/matrix/types.d.ts.map +1 -0
- package/dist/type/matrix/utils/broadcast.d.ts +18 -0
- package/dist/type/matrix/utils/broadcast.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts +34 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts +32 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts +31 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts +26 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts +20 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts +23 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts.map +1 -0
- package/dist/type/resultset/ResultSet.d.ts +28 -0
- package/dist/type/resultset/ResultSet.d.ts.map +1 -0
- package/dist/type/unit/Unit.d.ts +13907 -0
- package/dist/type/unit/Unit.d.ts.map +1 -0
- package/dist/type/unit/function/createUnit.d.ts +40 -0
- package/dist/type/unit/function/createUnit.d.ts.map +1 -0
- package/dist/type/unit/function/splitUnit.d.ts +10 -0
- package/dist/type/unit/function/splitUnit.d.ts.map +1 -0
- package/dist/type/unit/function/unit.d.ts +27 -0
- package/dist/type/unit/function/unit.d.ts.map +1 -0
- package/dist/type/unit/physicalConstants.d.ts +89 -0
- package/dist/type/unit/physicalConstants.d.ts.map +1 -0
- package/dist/typed/algebra.d.ts +418 -0
- package/dist/typed/algebra.d.ts.map +1 -0
- package/dist/typed/arithmetic.d.ts +302 -0
- package/dist/typed/arithmetic.d.ts.map +1 -0
- package/dist/typed/bitwise.d.ts +48 -0
- package/dist/typed/bitwise.d.ts.map +1 -0
- package/dist/typed/cas.d.ts +691 -0
- package/dist/typed/cas.d.ts.map +1 -0
- package/dist/typed/combinatorics.d.ts +333 -0
- package/dist/typed/combinatorics.d.ts.map +1 -0
- package/dist/typed/complex.d.ts +91 -0
- package/dist/typed/complex.d.ts.map +1 -0
- package/dist/typed/dist-objects.d.ts +219 -0
- package/dist/typed/dist-objects.d.ts.map +1 -0
- package/dist/typed/distributions.d.ts +247 -0
- package/dist/typed/distributions.d.ts.map +1 -0
- package/dist/typed/geometry.d.ts +329 -0
- package/dist/typed/geometry.d.ts.map +1 -0
- package/dist/typed/gpu.d.ts +62 -0
- package/dist/typed/gpu.d.ts.map +1 -0
- package/dist/typed/graph.d.ts +339 -0
- package/dist/typed/graph.d.ts.map +1 -0
- package/dist/typed/hypothesis.d.ts +274 -0
- package/dist/typed/hypothesis.d.ts.map +1 -0
- package/dist/typed/index.d.ts +299 -0
- package/dist/typed/index.d.ts.map +1 -0
- package/dist/typed/integration.d.ts +219 -0
- package/dist/typed/integration.d.ts.map +1 -0
- package/dist/typed/interpolation.d.ts +189 -0
- package/dist/typed/interpolation.d.ts.map +1 -0
- package/dist/typed/logical.d.ts +87 -0
- package/dist/typed/logical.d.ts.map +1 -0
- package/dist/typed/matrix-ops.d.ts +303 -0
- package/dist/typed/matrix-ops.d.ts.map +1 -0
- package/dist/typed/numeric.d.ts +395 -0
- package/dist/typed/numeric.d.ts.map +1 -0
- package/dist/typed/probability.d.ts +165 -0
- package/dist/typed/probability.d.ts.map +1 -0
- package/dist/typed/relational.d.ts +136 -0
- package/dist/typed/relational.d.ts.map +1 -0
- package/dist/typed/set.d.ts +145 -0
- package/dist/typed/set.d.ts.map +1 -0
- package/dist/typed/signal.d.ts +427 -0
- package/dist/typed/signal.d.ts.map +1 -0
- package/dist/typed/special.d.ts +469 -0
- package/dist/typed/special.d.ts.map +1 -0
- package/dist/typed/statistics.d.ts +174 -0
- package/dist/typed/statistics.d.ts.map +1 -0
- package/dist/typed/string.d.ts +114 -0
- package/dist/typed/string.d.ts.map +1 -0
- package/dist/typed/trigonometry.d.ts +111 -0
- package/dist/typed/trigonometry.d.ts.map +1 -0
- package/dist/typed/typed-bridge.d.ts +6 -0
- package/dist/typed/typed-bridge.d.ts.map +1 -0
- package/dist/typed/unit.d.ts +60 -0
- package/dist/typed/unit.d.ts.map +1 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/unit/to.d.ts +13 -0
- package/dist/unit/to.d.ts.map +1 -0
- package/dist/unit/toBest.d.ts +5 -0
- package/dist/unit/toBest.d.ts.map +1 -0
- package/dist/utils/array.d.ts +249 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/bigint.d.ts +18 -0
- package/dist/utils/bigint.d.ts.map +1 -0
- package/dist/utils/bignumber/bitwise.d.ts +99 -0
- package/dist/utils/bignumber/bitwise.d.ts.map +1 -0
- package/dist/utils/bignumber/constants.d.ts +25 -0
- package/dist/utils/bignumber/constants.d.ts.map +1 -0
- package/dist/utils/bignumber/formatter.d.ts +105 -0
- package/dist/utils/bignumber/formatter.d.ts.map +1 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts +18 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -0
- package/dist/utils/clone.d.ts +7 -0
- package/dist/utils/clone.d.ts.map +1 -0
- package/dist/utils/collection.d.ts +67 -0
- package/dist/utils/collection.d.ts.map +1 -0
- package/dist/utils/complex.d.ts +11 -0
- package/dist/utils/complex.d.ts.map +1 -0
- package/dist/utils/customs.d.ts +51 -0
- package/dist/utils/customs.d.ts.map +1 -0
- package/dist/utils/emitter.d.ts +13 -0
- package/dist/utils/emitter.d.ts.map +1 -0
- package/dist/utils/factory.d.ts +112 -0
- package/dist/utils/factory.d.ts.map +1 -0
- package/dist/utils/function.d.ts +44 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/hasNumericValue.d.ts +8 -0
- package/dist/utils/hasNumericValue.d.ts.map +1 -0
- package/dist/utils/is.d.ts +204 -0
- package/dist/utils/is.d.ts.map +1 -0
- package/dist/utils/isBounded.d.ts +6 -0
- package/dist/utils/isBounded.d.ts.map +1 -0
- package/dist/utils/isFinite.d.ts +10 -0
- package/dist/utils/isFinite.d.ts.map +1 -0
- package/dist/utils/isInteger.d.ts +8 -0
- package/dist/utils/isInteger.d.ts.map +1 -0
- package/dist/utils/isNaN.d.ts +7 -0
- package/dist/utils/isNaN.d.ts.map +1 -0
- package/dist/utils/isNegative.d.ts +9 -0
- package/dist/utils/isNegative.d.ts.map +1 -0
- package/dist/utils/isNumeric.d.ts +6 -0
- package/dist/utils/isNumeric.d.ts.map +1 -0
- package/dist/utils/isPositive.d.ts +9 -0
- package/dist/utils/isPositive.d.ts.map +1 -0
- package/dist/utils/isPrime.d.ts +7 -0
- package/dist/utils/isPrime.d.ts.map +1 -0
- package/dist/utils/isZero.d.ts +8 -0
- package/dist/utils/isZero.d.ts.map +1 -0
- package/dist/utils/log.d.ts +5 -0
- package/dist/utils/log.d.ts.map +1 -0
- package/dist/utils/lruQueue.d.ts +6 -0
- package/dist/utils/lruQueue.d.ts.map +1 -0
- package/dist/utils/map.d.ts +95 -0
- package/dist/utils/map.d.ts.map +1 -0
- package/dist/utils/node.d.ts +2 -0
- package/dist/utils/node.d.ts.map +1 -0
- package/dist/utils/noop.d.ts +6 -0
- package/dist/utils/noop.d.ts.map +1 -0
- package/dist/utils/number.d.ts +314 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/numeric.d.ts +10 -0
- package/dist/utils/numeric.d.ts.map +1 -0
- package/dist/utils/object.d.ts +123 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/optimizeCallback.d.ts +22 -0
- package/dist/utils/optimizeCallback.d.ts.map +1 -0
- package/dist/utils/parseNumber.d.ts +2 -0
- package/dist/utils/parseNumber.d.ts.map +1 -0
- package/dist/utils/print.d.ts +2 -0
- package/dist/utils/print.d.ts.map +1 -0
- package/dist/utils/product.d.ts +6 -0
- package/dist/utils/product.d.ts.map +1 -0
- package/dist/utils/string.d.ts +66 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/switch.d.ts +8 -0
- package/dist/utils/switch.d.ts.map +1 -0
- package/dist/utils/typeOf.d.ts +7 -0
- package/dist/utils/typeOf.d.ts.map +1 -0
- package/dist/wasm/WasmLoader.d.ts +395 -0
- package/dist/wasm/WasmLoader.d.ts.map +1 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts +65 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/integrity.d.ts +48 -0
- package/dist/wasm/integrity.d.ts.map +1 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts +95 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/poly/wasm-bridge.d.ts +99 -0
- package/dist/wasm/poly/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/signal/wasm-bridge.d.ts +61 -0
- package/dist/wasm/signal/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/sort/wasm-bridge.d.ts +43 -0
- package/dist/wasm/sort/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/special/wasm-bridge.d.ts +133 -0
- package/dist/wasm/special/wasm-bridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bitwise and for Bignumbers
|
|
3
|
+
*
|
|
4
|
+
* Special Cases:
|
|
5
|
+
* N & n = N
|
|
6
|
+
* n & 0 = 0
|
|
7
|
+
* n & -1 = n
|
|
8
|
+
* n & n = n
|
|
9
|
+
* I & I = I
|
|
10
|
+
* -I & -I = -I
|
|
11
|
+
* I & -I = 0
|
|
12
|
+
* I & n = n
|
|
13
|
+
* I & -n = I
|
|
14
|
+
* -I & n = 0
|
|
15
|
+
* -I & -n = -I
|
|
16
|
+
*
|
|
17
|
+
* @param {BigNumber} x
|
|
18
|
+
* @param {BigNumber} y
|
|
19
|
+
* @return {BigNumber} Result of `x` & `y`, is fully precise
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
export declare function bitAndBigNumber(x: any, y: any): any;
|
|
23
|
+
/**
|
|
24
|
+
* Bitwise not
|
|
25
|
+
* @param {BigNumber} x
|
|
26
|
+
* @return {BigNumber} Result of ~`x`, fully precise
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare function bitNotBigNumber(x: any): any;
|
|
30
|
+
/**
|
|
31
|
+
* Bitwise OR for BigNumbers
|
|
32
|
+
*
|
|
33
|
+
* Special Cases:
|
|
34
|
+
* N | n = N
|
|
35
|
+
* n | 0 = n
|
|
36
|
+
* n | -1 = -1
|
|
37
|
+
* n | n = n
|
|
38
|
+
* I | I = I
|
|
39
|
+
* -I | -I = -I
|
|
40
|
+
* I | -n = -1
|
|
41
|
+
* I | -I = -1
|
|
42
|
+
* I | n = I
|
|
43
|
+
* -I | n = -I
|
|
44
|
+
* -I | -n = -n
|
|
45
|
+
*
|
|
46
|
+
* @param {BigNumber} x
|
|
47
|
+
* @param {BigNumber} y
|
|
48
|
+
* @return {BigNumber} Result of `x` | `y`, fully precise
|
|
49
|
+
*/
|
|
50
|
+
export declare function bitOrBigNumber(x: any, y: any): any;
|
|
51
|
+
/**
|
|
52
|
+
* Applies bitwise function to numbers
|
|
53
|
+
* @param {BigNumber} x
|
|
54
|
+
* @param {BigNumber} y
|
|
55
|
+
* @param {function (a, b)} func
|
|
56
|
+
* @return {BigNumber}
|
|
57
|
+
*/
|
|
58
|
+
export declare function bitwise(x: any, y: any, func: any): any;
|
|
59
|
+
/**
|
|
60
|
+
* Bitwise XOR for BigNumbers
|
|
61
|
+
*
|
|
62
|
+
* Special Cases:
|
|
63
|
+
* N ^ n = N
|
|
64
|
+
* n ^ 0 = n
|
|
65
|
+
* n ^ n = 0
|
|
66
|
+
* n ^ -1 = ~n
|
|
67
|
+
* I ^ n = I
|
|
68
|
+
* I ^ -n = -I
|
|
69
|
+
* I ^ -I = -1
|
|
70
|
+
* -I ^ n = -I
|
|
71
|
+
* -I ^ -n = I
|
|
72
|
+
*
|
|
73
|
+
* @param {BigNumber} x
|
|
74
|
+
* @param {BigNumber} y
|
|
75
|
+
* @return {BigNumber} Result of `x` ^ `y`, fully precise
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export declare function bitXor(x: any, y: any): any;
|
|
79
|
+
/**
|
|
80
|
+
* Bitwise left shift
|
|
81
|
+
*
|
|
82
|
+
* Special Cases:
|
|
83
|
+
* n << -n = N
|
|
84
|
+
* n << N = N
|
|
85
|
+
* N << n = N
|
|
86
|
+
* n << 0 = n
|
|
87
|
+
* 0 << n = 0
|
|
88
|
+
* I << I = N
|
|
89
|
+
* I << n = I
|
|
90
|
+
* n << I = I
|
|
91
|
+
*
|
|
92
|
+
* @param {BigNumber} x
|
|
93
|
+
* @param {BigNumber} y
|
|
94
|
+
* @return {BigNumber} Result of `x` << `y`
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
export declare function leftShiftBigNumber(x: any, y: any): any;
|
|
98
|
+
export declare function rightArithShiftBigNumber(x: any, y: any): any;
|
|
99
|
+
//# sourceMappingURL=bitwise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitwise.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/bitwise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OA8C7C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,OAcrC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OAkC5C;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OA+DhD;AA6DD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OAqCpC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OAqBhD;AAqBD,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,OA2BtD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate BigNumber e
|
|
3
|
+
* @param {function} BigNumber BigNumber constructor
|
|
4
|
+
* @returns {BigNumber} Returns e
|
|
5
|
+
*/
|
|
6
|
+
export declare const createBigNumberE: import("../function.js").MemoizedFunction;
|
|
7
|
+
/**
|
|
8
|
+
* Calculate BigNumber golden ratio, phi = (1+sqrt(5))/2
|
|
9
|
+
* @param {function} BigNumber BigNumber constructor
|
|
10
|
+
* @returns {BigNumber} Returns phi
|
|
11
|
+
*/
|
|
12
|
+
export declare const createBigNumberPhi: import("../function.js").MemoizedFunction;
|
|
13
|
+
/**
|
|
14
|
+
* Calculate BigNumber pi.
|
|
15
|
+
* @param {function} BigNumber BigNumber constructor
|
|
16
|
+
* @returns {BigNumber} Returns pi
|
|
17
|
+
*/
|
|
18
|
+
export declare const createBigNumberPi: import("../function.js").MemoizedFunction;
|
|
19
|
+
/**
|
|
20
|
+
* Calculate BigNumber tau, tau = 2 * pi
|
|
21
|
+
* @param {function} BigNumber BigNumber constructor
|
|
22
|
+
* @returns {BigNumber} Returns tau
|
|
23
|
+
*/
|
|
24
|
+
export declare const createBigNumberTau: import("../function.js").MemoizedFunction;
|
|
25
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAK5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAK9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2CAK7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAK9B,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert a BigNumber to a formatted string representation.
|
|
3
|
+
*
|
|
4
|
+
* Syntax:
|
|
5
|
+
*
|
|
6
|
+
* format(value)
|
|
7
|
+
* format(value, options)
|
|
8
|
+
* format(value, precision)
|
|
9
|
+
* format(value, fn)
|
|
10
|
+
*
|
|
11
|
+
* Where:
|
|
12
|
+
*
|
|
13
|
+
* {number} value The value to be formatted
|
|
14
|
+
* {Object} options An object with formatting options. Available options:
|
|
15
|
+
* {string} notation
|
|
16
|
+
* Number notation. Choose from:
|
|
17
|
+
* 'fixed' Always use regular number notation.
|
|
18
|
+
* For example '123.40' and '14000000'
|
|
19
|
+
* 'exponential' Always use exponential notation.
|
|
20
|
+
* For example '1.234e+2' and '1.4e+7'
|
|
21
|
+
* 'auto' (default) Regular number notation for numbers
|
|
22
|
+
* having an absolute value between
|
|
23
|
+
* `lower` and `upper` bounds, and uses
|
|
24
|
+
* exponential notation elsewhere.
|
|
25
|
+
* Lower bound is included, upper bound
|
|
26
|
+
* is excluded.
|
|
27
|
+
* For example '123.4' and '1.4e7'.
|
|
28
|
+
* 'bin', 'oct, or
|
|
29
|
+
* 'hex' Format the number using binary, octal,
|
|
30
|
+
* or hexadecimal notation.
|
|
31
|
+
* For example '0b1101' and '0x10fe'.
|
|
32
|
+
* {number} wordSize The word size in bits to use for formatting
|
|
33
|
+
* in binary, octal, or hexadecimal notation.
|
|
34
|
+
* To be used only with 'bin', 'oct', or 'hex'
|
|
35
|
+
* values for 'notation' option. When this option
|
|
36
|
+
* is defined the value is formatted as a signed
|
|
37
|
+
* twos complement integer of the given word size
|
|
38
|
+
* and the size suffix is appended to the output.
|
|
39
|
+
* For example
|
|
40
|
+
* format(-1, {notation: 'hex', wordSize: 8}) === '0xffi8'.
|
|
41
|
+
* Default value is undefined.
|
|
42
|
+
* {number} precision A number between 0 and 16 to round
|
|
43
|
+
* the digits of the number.
|
|
44
|
+
* In case of notations 'exponential',
|
|
45
|
+
* 'engineering', and 'auto',
|
|
46
|
+
* `precision` defines the total
|
|
47
|
+
* number of significant digits returned.
|
|
48
|
+
* In case of notation 'fixed',
|
|
49
|
+
* `precision` defines the number of
|
|
50
|
+
* significant digits after the decimal
|
|
51
|
+
* point.
|
|
52
|
+
* `precision` is undefined by default.
|
|
53
|
+
* {number} lowerExp Exponent determining the lower boundary
|
|
54
|
+
* for formatting a value with an exponent
|
|
55
|
+
* when `notation='auto`.
|
|
56
|
+
* Default value is `-3`.
|
|
57
|
+
* {number} upperExp Exponent determining the upper boundary
|
|
58
|
+
* for formatting a value with an exponent
|
|
59
|
+
* when `notation='auto`.
|
|
60
|
+
* Default value is `5`.
|
|
61
|
+
* {Function} fn A custom formatting function. Can be used to override the
|
|
62
|
+
* built-in notations. Function `fn` is called with `value` as
|
|
63
|
+
* parameter and must return a string. Is useful for example to
|
|
64
|
+
* format all values inside a matrix in a particular way.
|
|
65
|
+
*
|
|
66
|
+
* Examples:
|
|
67
|
+
*
|
|
68
|
+
* format(6.4) // '6.4'
|
|
69
|
+
* format(1240000) // '1.24e6'
|
|
70
|
+
* format(1/3) // '0.3333333333333333'
|
|
71
|
+
* format(1/3, 3) // '0.333'
|
|
72
|
+
* format(21385, 2) // '21000'
|
|
73
|
+
* format(12e8, {notation: 'fixed'}) // returns '1200000000'
|
|
74
|
+
* format(2.3, {notation: 'fixed', precision: 4}) // returns '2.3000'
|
|
75
|
+
* format(52.8, {notation: 'exponential'}) // returns '5.28e+1'
|
|
76
|
+
* format(12400, {notation: 'engineering'}) // returns '12.400e+3'
|
|
77
|
+
*
|
|
78
|
+
* @param {BigNumber} value
|
|
79
|
+
* @param {Object | Function | number | BigNumber} [options]
|
|
80
|
+
* @return {string} str The formatted value
|
|
81
|
+
*/
|
|
82
|
+
export declare function format(value: any, options: any): any;
|
|
83
|
+
/**
|
|
84
|
+
* Format a BigNumber in engineering notation. Like '1.23e+6', '2.3e+0', '3.500e-3'
|
|
85
|
+
* @param {BigNumber} value
|
|
86
|
+
* @param {number} [precision] Optional number of significant figures to return.
|
|
87
|
+
*/
|
|
88
|
+
export declare function toEngineering(value: any, precision: any): string;
|
|
89
|
+
/**
|
|
90
|
+
* Format a number in exponential notation. Like '1.23e+5', '2.3e+0', '3.500e-3'
|
|
91
|
+
* @param {BigNumber} value
|
|
92
|
+
* @param {number} [precision] Number of digits in formatted output.
|
|
93
|
+
* If not provided, the maximum available digits
|
|
94
|
+
* is used.
|
|
95
|
+
* @returns {string} str
|
|
96
|
+
*/
|
|
97
|
+
export declare function toExponential(value: any, precision: any): any;
|
|
98
|
+
/**
|
|
99
|
+
* Format a number with fixed notation.
|
|
100
|
+
* @param {BigNumber} value
|
|
101
|
+
* @param {number} [precision=undefined] Optional number of decimals after the
|
|
102
|
+
* decimal point. Undefined by default.
|
|
103
|
+
*/
|
|
104
|
+
export declare function toFixed(value: any, precision: any): any;
|
|
105
|
+
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/formatter.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,OAqE9C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,UAevD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,OAMvD;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,OAEjD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compares two BigNumbers.
|
|
3
|
+
* @param {BigNumber} a - First value to compare
|
|
4
|
+
* @param {BigNumber} b - Second value to compare
|
|
5
|
+
* @param {number} [relTol=1e-09] - The relative tolerance, indicating the maximum allowed difference relative to the larger absolute value. Must be greater than 0.
|
|
6
|
+
* @param {number} [absTol=0] - The minimum absolute tolerance, useful for comparisons near zero. Must be at least 0.
|
|
7
|
+
* @returns {boolean} whether the two numbers are nearly equal
|
|
8
|
+
* @throws {Error} If `relTol` is less than or equal to 0.
|
|
9
|
+
* @throws {Error} If `absTol` is less than 0.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* nearlyEqual(1.000000001, 1.0, 1e-9); // true
|
|
13
|
+
* nearlyEqual(1.000000002, 1.0, 0); // false
|
|
14
|
+
* nearlyEqual(1.0, 1.009, undefined, 0.02); // true
|
|
15
|
+
* nearlyEqual(0.000000001, 0.0, undefined, 1e-8); // true
|
|
16
|
+
*/
|
|
17
|
+
export declare function nearlyEqual(a: any, b: any, relTol?: number, absTol?: number): any;
|
|
18
|
+
//# sourceMappingURL=nearlyEqual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nearlyEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/nearlyEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,SAAO,EAAE,MAAM,SAAI,OAyBpE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TypedFunction } from '../core/function/typed.js';
|
|
2
|
+
interface CloneDependencies {
|
|
3
|
+
typed: TypedFunction;
|
|
4
|
+
}
|
|
5
|
+
export declare const createClone: import("../utils/factory.js").FactoryFunction<CloneDependencies, unknown>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=clone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../src/utils/clone.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,iBAAiB;IACzB,KAAK,EAAE,aAAa,CAAC;CACtB;AAKD,eAAO,MAAM,WAAW,2EA0BvB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
interface Matrix<T = unknown> {
|
|
2
|
+
forEach(callback: (value: T) => void, skipZeros: boolean, recurse: boolean): void;
|
|
3
|
+
map<U>(callback: (value: T) => U, skipZeros: boolean, recurse: boolean): Matrix<U>;
|
|
4
|
+
size(): number[];
|
|
5
|
+
valueOf(): T[];
|
|
6
|
+
create(data: T[], datatype?: string): Matrix<T>;
|
|
7
|
+
datatype(): string | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface SparseMatrix<T = unknown> {
|
|
10
|
+
_values: T[];
|
|
11
|
+
_index: number[];
|
|
12
|
+
_ptr: number[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Test whether an array contains collections
|
|
16
|
+
* @param array - Array to test
|
|
17
|
+
* @returns Returns true when the array contains one or multiple
|
|
18
|
+
* collections (Arrays or Matrices). Returns false otherwise.
|
|
19
|
+
*/
|
|
20
|
+
export declare function containsCollections(array: unknown[]): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Recursively loop over all elements in a given multi dimensional array
|
|
23
|
+
* and invoke the callback on each of the elements.
|
|
24
|
+
* @param array - Array or Matrix to iterate over
|
|
25
|
+
* @param callback - The callback method is invoked with one parameter: the current element in the array
|
|
26
|
+
*/
|
|
27
|
+
export declare function deepForEach<T>(array: T[] | Matrix<T>, callback: (value: T) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* Execute the callback function element wise for each element in array and any
|
|
30
|
+
* nested array
|
|
31
|
+
* Returns an array with the results
|
|
32
|
+
* @param array - Array or Matrix to map over
|
|
33
|
+
* @param callback - The callback is called with two parameters:
|
|
34
|
+
* value1 and value2, which contain the current
|
|
35
|
+
* element of both arrays.
|
|
36
|
+
* @param skipZeros - Invoke callback function for non-zero values only.
|
|
37
|
+
*
|
|
38
|
+
* @return Mapped result
|
|
39
|
+
*/
|
|
40
|
+
export declare function deepMap<T, U>(array: T[] | Matrix<T>, callback: (value: T) => U, skipZeros?: boolean): U[] | Matrix<U>;
|
|
41
|
+
/**
|
|
42
|
+
* Reduce a given matrix or array to a new matrix or
|
|
43
|
+
* array with one less dimension, applying the given
|
|
44
|
+
* callback in the selected dimension.
|
|
45
|
+
* @param mat - Array or Matrix to reduce
|
|
46
|
+
* @param dim - Dimension to reduce
|
|
47
|
+
* @param callback - Callback function
|
|
48
|
+
* @return Reduced result
|
|
49
|
+
*/
|
|
50
|
+
export declare function reduce<T, U>(mat: T[] | Matrix<T>, dim: number, callback: (acc: U | T, val: T) => U): U[] | Matrix<U>;
|
|
51
|
+
/**
|
|
52
|
+
* Scatter function for sparse matrix operations
|
|
53
|
+
* @param a - Sparse matrix
|
|
54
|
+
* @param j - Column index
|
|
55
|
+
* @param w - Work array for marking visited rows
|
|
56
|
+
* @param x - Work array for storing values
|
|
57
|
+
* @param u - Work array for marking updated rows
|
|
58
|
+
* @param mark - Current mark value
|
|
59
|
+
* @param cindex - Column index array to update
|
|
60
|
+
* @param f - Binary function to apply
|
|
61
|
+
* @param inverse - Whether to inverse the function arguments
|
|
62
|
+
* @param update - Whether to update existing values
|
|
63
|
+
* @param value - Value to use in binary function
|
|
64
|
+
*/
|
|
65
|
+
export declare function scatter<T>(a: SparseMatrix<T>, j: number, w: number[], x: T[] | null, u: number[], mark: number, cindex: number[], f?: (a: T, b: T) => T, inverse?: boolean, update?: boolean, value?: T): void;
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/utils/collection.ts"],"names":[],"mappings":"AAMA,UAAU,MAAM,CAAC,CAAC,GAAG,OAAO;IAC1B,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAClF,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACnF,IAAI,IAAI,MAAM,EAAE,CAAC;IACjB,OAAO,IAAI,CAAC,EAAE,CAAC;IACf,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAChD,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,UAAU,YAAY,CAAC,CAAC,GAAG,OAAO;IAChC,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,OAAO,CAO7D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI,CAMzF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAC1B,KAAK,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,EACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EACzB,SAAS,CAAC,EAAE,OAAO,GAClB,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAcjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EACzB,GAAG,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,EACpB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAClC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAgBjB;AAwCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACvB,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAClB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EAAE,EACX,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EACb,CAAC,EAAE,MAAM,EAAE,EACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EAAE,EAChB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EACrB,OAAO,CAAC,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,EAChB,KAAK,CAAC,EAAE,CAAC,GACR,IAAI,CAyDN"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test whether two complex values are equal provided a given relTol and absTol.
|
|
3
|
+
* Does not use or change the global Complex.EPSILON setting
|
|
4
|
+
* @param {Complex} x - The first complex number for comparison.
|
|
5
|
+
* @param {Complex} y - The second complex number for comparison.
|
|
6
|
+
* @param {number} relTol - The relative tolerance for comparison.
|
|
7
|
+
* @param {number} absTol - The absolute tolerance for comparison.
|
|
8
|
+
* @returns {boolean} - Returns true if the two complex numbers are equal within the given tolerances, otherwise returns false.
|
|
9
|
+
*/
|
|
10
|
+
export declare function complexEquals(x: any, y: any, relTol: any, absTol: any): boolean;
|
|
11
|
+
//# sourceMappingURL=complex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../src/utils/complex.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,WAErE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get a property of a plain object
|
|
3
|
+
* Throws an error in case the object is not a plain object or the
|
|
4
|
+
* property is not defined on the object itself
|
|
5
|
+
* @param {Object} object
|
|
6
|
+
* @param {string} prop
|
|
7
|
+
* @return {*} Returns the property value when safe
|
|
8
|
+
*/
|
|
9
|
+
declare function getSafeProperty(object: any, prop: any): any;
|
|
10
|
+
/**
|
|
11
|
+
* Set a property on a plain object.
|
|
12
|
+
* Throws an error in case the object is not a plain object or the
|
|
13
|
+
* property would override an inherited property like .constructor or .toString
|
|
14
|
+
* @param {Object} object
|
|
15
|
+
* @param {string} prop
|
|
16
|
+
* @param {*} value
|
|
17
|
+
* @return {*} Returns the value
|
|
18
|
+
*/
|
|
19
|
+
declare function setSafeProperty(object: any, prop: any, value: any): any;
|
|
20
|
+
/**
|
|
21
|
+
* Test whether a property is safe to use on an object or Array.
|
|
22
|
+
* For example .toString and .constructor are not safe
|
|
23
|
+
* @param {Object | Array} object
|
|
24
|
+
* @param {string} prop
|
|
25
|
+
* @return {boolean} Returns true when safe
|
|
26
|
+
*/
|
|
27
|
+
declare function isSafeProperty(object: any, prop: any): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Validate whether a method is safe.
|
|
30
|
+
* Throws an error when that's not the case.
|
|
31
|
+
* @param {Object} object
|
|
32
|
+
* @param {string} method
|
|
33
|
+
* @return {function} Returns the method when valid
|
|
34
|
+
*/
|
|
35
|
+
declare function getSafeMethod(object: any, method: any): any;
|
|
36
|
+
/**
|
|
37
|
+
* Check whether a method is safe.
|
|
38
|
+
* Throws an error when that's not the case (for example for `constructor`).
|
|
39
|
+
* @param {Object} object
|
|
40
|
+
* @param {string} method
|
|
41
|
+
* @return {boolean} Returns true when safe, false otherwise
|
|
42
|
+
*/
|
|
43
|
+
declare function isSafeMethod(object: any, method: any): boolean;
|
|
44
|
+
declare function isPlainObject(object: any): boolean;
|
|
45
|
+
export { getSafeProperty };
|
|
46
|
+
export { setSafeProperty };
|
|
47
|
+
export { isSafeProperty };
|
|
48
|
+
export { getSafeMethod };
|
|
49
|
+
export { isSafeMethod };
|
|
50
|
+
export { isPlainObject };
|
|
51
|
+
//# sourceMappingURL=customs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customs.d.ts","sourceRoot":"","sources":["../../src/utils/customs.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAW9C;AAED;;;;;;;;GAQG;AAEH,iBAAS,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,OAQ1D;AAED;;;;;;GAMG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,WA0B7C;AAED;;;;;;GAMG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAM9C;AAED;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,WAoC7C;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,GAAG,WAEjC;AAaD,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface EmitterMixin {
|
|
2
|
+
on: (event: string, callback: (...args: any[]) => void, context?: any) => void;
|
|
3
|
+
off: (event: string, callback?: (...args: any[]) => void) => void;
|
|
4
|
+
once: (event: string, callback: (...args: any[]) => void, context?: any) => void;
|
|
5
|
+
emit: (event: string, ...args: any[]) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Extend given object with emitter functions `on`, `off`, `once`, `emit`
|
|
9
|
+
* @param obj - Object to extend with emitter functions
|
|
10
|
+
* @return The object with emitter methods
|
|
11
|
+
*/
|
|
12
|
+
export declare function mixin<T extends object>(obj: T): T & EmitterMixin;
|
|
13
|
+
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/utils/emitter.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/E,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC;IAClE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACjF,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAYhE"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type for a factory function that creates instances
|
|
3
|
+
*/
|
|
4
|
+
export interface FactoryFunction<_TDeps = any, TResult = any> {
|
|
5
|
+
(scope: Record<string, any>): TResult;
|
|
6
|
+
isFactory: true;
|
|
7
|
+
fn: string;
|
|
8
|
+
dependencies: string[];
|
|
9
|
+
meta?: FactoryMeta;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Type for legacy factory objects (old-style factories)
|
|
13
|
+
*/
|
|
14
|
+
export interface LegacyFactory {
|
|
15
|
+
type?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
factory: (...args: any[]) => any;
|
|
18
|
+
math?: boolean;
|
|
19
|
+
dependencies?: string[];
|
|
20
|
+
meta?: FactoryMeta;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Meta information that can be attached to a factory
|
|
24
|
+
*/
|
|
25
|
+
export interface FactoryMeta {
|
|
26
|
+
/**
|
|
27
|
+
* If true, the factory will be recreated when config changes
|
|
28
|
+
*/
|
|
29
|
+
recreateOnConfigChange?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true, this is a lazy factory that should only be created when needed
|
|
32
|
+
*/
|
|
33
|
+
lazy?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Additional custom metadata
|
|
36
|
+
*/
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Type for dependency names, which can be optional (prefixed with '?')
|
|
41
|
+
*/
|
|
42
|
+
export type DependencyName = string;
|
|
43
|
+
/**
|
|
44
|
+
* Type for the create callback function
|
|
45
|
+
*/
|
|
46
|
+
export type CreateFunction<TDeps extends Record<string, any>, TResult> = (dependencies: TDeps) => TResult;
|
|
47
|
+
/**
|
|
48
|
+
* Create a factory function, which can be used to inject dependencies.
|
|
49
|
+
*
|
|
50
|
+
* The created functions are memoized, a consecutive call of the factory
|
|
51
|
+
* with the exact same inputs will return the same function instance.
|
|
52
|
+
* The memoized cache is exposed on `factory.cache` and can be cleared
|
|
53
|
+
* if needed.
|
|
54
|
+
*
|
|
55
|
+
* Example:
|
|
56
|
+
*
|
|
57
|
+
* const name = 'log'
|
|
58
|
+
* const dependencies = ['config', 'typed', 'divideScalar', 'Complex']
|
|
59
|
+
*
|
|
60
|
+
* export const createLog = factory(name, dependencies, ({ typed, config, divideScalar, Complex }) => {
|
|
61
|
+
* // ... create the function log here and return it
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* @param name Name of the function to be created
|
|
65
|
+
* @param dependencies The names of all required dependencies
|
|
66
|
+
* @param create Callback function called with an object with all dependencies
|
|
67
|
+
* @param meta Optional object with meta information that will be attached
|
|
68
|
+
* to the created factory function as property `meta`. For explanation
|
|
69
|
+
* of what meta properties can be specified and what they mean, see
|
|
70
|
+
* docs/core/extension.md.
|
|
71
|
+
* @returns The factory function
|
|
72
|
+
*/
|
|
73
|
+
export declare function factory<TDeps extends Record<string, any> = any, TResult = any>(name: string, dependencies: DependencyName[], create: CreateFunction<TDeps, TResult>, meta?: FactoryMeta): FactoryFunction<TDeps, TResult>;
|
|
74
|
+
/**
|
|
75
|
+
* Sort all factories such that when loading in order, the dependencies are resolved.
|
|
76
|
+
*
|
|
77
|
+
* @param factories Array of factory functions or legacy factories
|
|
78
|
+
* @returns Returns a new array with the sorted factories
|
|
79
|
+
*/
|
|
80
|
+
export declare function sortFactories(factories: Array<FactoryFunction | LegacyFactory>): Array<FactoryFunction | LegacyFactory>;
|
|
81
|
+
export declare function create(factories: Array<FactoryFunction | LegacyFactory>, scope?: Record<string, any>): Record<string, any>;
|
|
82
|
+
/**
|
|
83
|
+
* Test whether an object is a factory. This is the case when it has
|
|
84
|
+
* properties name, dependencies, and a function create.
|
|
85
|
+
* @param obj Any value to test
|
|
86
|
+
* @returns true if obj is a factory function
|
|
87
|
+
*/
|
|
88
|
+
export declare function isFactory(obj: any): obj is FactoryFunction;
|
|
89
|
+
/**
|
|
90
|
+
* Assert that all dependencies of a list with dependencies are available in the provided scope.
|
|
91
|
+
*
|
|
92
|
+
* Will throw an exception when there are dependencies missing.
|
|
93
|
+
*
|
|
94
|
+
* @param name Name for the function to be created. Used to generate a useful error message
|
|
95
|
+
* @param dependencies Array of dependency names
|
|
96
|
+
* @param scope Object containing the available dependencies
|
|
97
|
+
* @throws Error if required dependencies are missing
|
|
98
|
+
*/
|
|
99
|
+
export declare function assertDependencies(name: string, dependencies: DependencyName[], scope: Record<string, any>): void;
|
|
100
|
+
/**
|
|
101
|
+
* Check if a dependency is optional (starts with '?')
|
|
102
|
+
* @param dependency The dependency name to check
|
|
103
|
+
* @returns true if the dependency is optional
|
|
104
|
+
*/
|
|
105
|
+
export declare function isOptionalDependency(dependency: DependencyName): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Remove the optional notation '?' from a dependency name
|
|
108
|
+
* @param dependency The dependency name
|
|
109
|
+
* @returns The dependency name without optional notation
|
|
110
|
+
*/
|
|
111
|
+
export declare function stripOptionalNotation(dependency: DependencyName): string;
|
|
112
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/utils/factory.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,MAAM,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;IAC1D,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,IAAI,CACvE,YAAY,EAAE,KAAK,KAChB,OAAO,CAAC;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,OAAO,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,EAC5E,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,cAAc,EAAE,EAC9B,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,EACtC,IAAI,CAAC,EAAE,WAAW,GACjB,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAoBjC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,KAAK,CAAC,eAAe,GAAG,aAAa,CAAC,GAChD,KAAK,CAAC,eAAe,GAAG,aAAa,CAAC,CAkFxC;AAGD,wBAAgB,MAAM,CACpB,SAAS,EAAE,KAAK,CAAC,eAAe,GAAG,aAAa,CAAC,EACjD,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC9B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQrB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe,CAE1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,cAAc,EAAE,EAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzB,IAAI,CAeN;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAExE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { lruQueue } from './lruQueue.js';
|
|
2
|
+
/**
|
|
3
|
+
* Memoize a given function by caching the computed result.
|
|
4
|
+
* The cache of a memoized function can be cleared by deleting the `cache`
|
|
5
|
+
* property of the function.
|
|
6
|
+
*
|
|
7
|
+
* @param {function} fn The function to be memoized.
|
|
8
|
+
* Must be a pure function.
|
|
9
|
+
* @param {Object} [options]
|
|
10
|
+
* @param {function(args: Array): string} [options.hasher]
|
|
11
|
+
* A custom hash builder. Is JSON.stringify by default.
|
|
12
|
+
* @param {number | undefined} [options.limit]
|
|
13
|
+
* Maximum number of values that may be cached. Undefined indicates
|
|
14
|
+
* unlimited (default)
|
|
15
|
+
* @return {function} Returns the memoized function
|
|
16
|
+
*/
|
|
17
|
+
export interface MemoizeCache {
|
|
18
|
+
values: Map<string, any>;
|
|
19
|
+
lru: ReturnType<typeof lruQueue>;
|
|
20
|
+
}
|
|
21
|
+
export interface MemoizedFunction {
|
|
22
|
+
(...args: any[]): any;
|
|
23
|
+
cache?: MemoizeCache;
|
|
24
|
+
}
|
|
25
|
+
export declare function memoize(fn: any, { hasher, limit }?: {
|
|
26
|
+
hasher?: any;
|
|
27
|
+
limit?: any;
|
|
28
|
+
}): MemoizedFunction;
|
|
29
|
+
/**
|
|
30
|
+
* Memoize a given function by caching all results and the arguments,
|
|
31
|
+
* and comparing against the arguments of previous results before
|
|
32
|
+
* executing again.
|
|
33
|
+
* This is less performant than `memoize` which calculates a hash,
|
|
34
|
+
* which is very fast to compare. Use `memoizeCompare` only when it is
|
|
35
|
+
* not possible to create a unique serializable hash from the function
|
|
36
|
+
* arguments.
|
|
37
|
+
* The isEqual function must compare two sets of arguments
|
|
38
|
+
* and return true when equal (can be a deep equality check for example).
|
|
39
|
+
* @param {function} fn
|
|
40
|
+
* @param {function(a: *, b: *) : boolean} isEqual
|
|
41
|
+
* @returns {function}
|
|
42
|
+
*/
|
|
43
|
+
export declare function memoizeCompare(fn: any, isEqual: any): any;
|
|
44
|
+
//# sourceMappingURL=function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../src/utils/function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,OAAO,CACrB,EAAE,EAAE,GAAG,EACP,EAAE,MAAM,EAAE,KAAK,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAO,GACpD,gBAAgB,CA8BlB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,GAAG,CA0BzD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TypedFunction } from '../core/function/typed.js';
|
|
2
|
+
interface HasNumericValueDependencies {
|
|
3
|
+
typed: TypedFunction;
|
|
4
|
+
isNumeric: (x: unknown) => boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const createHasNumericValue: import("../utils/factory.js").FactoryFunction<HasNumericValueDependencies, unknown>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=hasNumericValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasNumericValue.d.ts","sourceRoot":"","sources":["../../src/utils/hasNumericValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,2BAA2B;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;CACpC;AAKD,eAAO,MAAM,qBAAqB,qFA8CjC,CAAC"}
|