@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,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed Functions Index (Parallel-First)
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all typed functions that use polymorphic dispatch
|
|
5
|
+
* via @danielsimonjr/mathts-core's mathTyped system with parallel-first execution
|
|
6
|
+
* through @danielsimonjr/mathts-parallel's ComputePool.
|
|
7
|
+
*
|
|
8
|
+
* Following the parallel-first philosophy per CLAUDE.md:
|
|
9
|
+
* - Use workers for ALL array transformations (Float64Array)
|
|
10
|
+
* - Use workers for ALL numerical computations that can be batched
|
|
11
|
+
* - Only fall back to sequential for trivial scalar operations
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
export * from './arithmetic.js';
|
|
16
|
+
export { typedArithmetic } from './arithmetic.js';
|
|
17
|
+
export * from './trigonometry.js';
|
|
18
|
+
export { typedTrigonometry } from './trigonometry.js';
|
|
19
|
+
export * from './statistics.js';
|
|
20
|
+
export { typedStatistics } from './statistics.js';
|
|
21
|
+
export * from './signal.js';
|
|
22
|
+
export { typedSignal } from './signal.js';
|
|
23
|
+
export * from './bitwise.js';
|
|
24
|
+
export { typedBitwise } from './bitwise.js';
|
|
25
|
+
export * from './logical.js';
|
|
26
|
+
export { typedLogical } from './logical.js';
|
|
27
|
+
export * from './complex.js';
|
|
28
|
+
export { typedComplex } from './complex.js';
|
|
29
|
+
export * from './set.js';
|
|
30
|
+
export { typedSet } from './set.js';
|
|
31
|
+
export * from './special.js';
|
|
32
|
+
export { typedSpecial } from './special.js';
|
|
33
|
+
export * from './distributions.js';
|
|
34
|
+
export { typedDistributions } from './distributions.js';
|
|
35
|
+
export * from './geometry.js';
|
|
36
|
+
export * from './algebra.js';
|
|
37
|
+
export { typedAlgebra } from './algebra.js';
|
|
38
|
+
export * from './integration.js';
|
|
39
|
+
export * from './interpolation.js';
|
|
40
|
+
export * from './numeric.js';
|
|
41
|
+
export * from './combinatorics.js';
|
|
42
|
+
export * from './graph.js';
|
|
43
|
+
export * from './dist-objects.js';
|
|
44
|
+
export * from './hypothesis.js';
|
|
45
|
+
export * from './matrix-ops.js';
|
|
46
|
+
export { cond } from './matrix-ops.js';
|
|
47
|
+
export * from './gpu.js';
|
|
48
|
+
export * from './relational.js';
|
|
49
|
+
export { typedRelational } from './relational.js';
|
|
50
|
+
export * from './string.js';
|
|
51
|
+
export { typedString } from './string.js';
|
|
52
|
+
export * from './probability.js';
|
|
53
|
+
export { typedProbability } from './probability.js';
|
|
54
|
+
export * from './unit.js';
|
|
55
|
+
export { typedUnit } from './unit.js';
|
|
56
|
+
/**
|
|
57
|
+
* All typed functions combined (parallel-first)
|
|
58
|
+
*
|
|
59
|
+
* This includes all arithmetic, trigonometric, statistics, signal
|
|
60
|
+
* processing, special, probability distribution, combinatorics,
|
|
61
|
+
* graph theory, distribution objects, hypothesis test, and algebra functions.
|
|
62
|
+
*/
|
|
63
|
+
export declare const typedFunctions: {
|
|
64
|
+
to: import("typed-function").TypedFunction;
|
|
65
|
+
toBest: import("typed-function").TypedFunction;
|
|
66
|
+
polyval: typeof import("./algebra.js").polyval;
|
|
67
|
+
polyadd: typeof import("./algebra.js").polyadd;
|
|
68
|
+
polymul: typeof import("./algebra.js").polymul;
|
|
69
|
+
polyder: typeof import("./algebra.js").polyder;
|
|
70
|
+
polynomialGCD: typeof import("./algebra.js").polynomialGCD;
|
|
71
|
+
polynomialLCM: typeof import("./algebra.js").polynomialLCM;
|
|
72
|
+
polynomialQuotient: typeof import("./algebra.js").polynomialQuotient;
|
|
73
|
+
polynomialRemainder: typeof import("./algebra.js").polynomialRemainder;
|
|
74
|
+
degree: typeof import("./algebra.js").degree;
|
|
75
|
+
coefficientList: typeof import("./algebra.js").coefficientList;
|
|
76
|
+
discriminant: typeof import("./algebra.js").discriminant;
|
|
77
|
+
differences: typeof import("./algebra.js").differences;
|
|
78
|
+
expand: typeof import("./algebra.js").expand;
|
|
79
|
+
factor: typeof import("./algebra.js").factor;
|
|
80
|
+
collect: typeof import("./algebra.js").collect;
|
|
81
|
+
substitute: typeof import("./algebra.js").substitute;
|
|
82
|
+
variables: typeof import("./algebra.js").variables;
|
|
83
|
+
cancel: typeof import("./algebra.js").cancel;
|
|
84
|
+
together: typeof import("./algebra.js").together;
|
|
85
|
+
apart: typeof import("./algebra.js").apart;
|
|
86
|
+
trigExpand: typeof import("./algebra.js").trigExpand;
|
|
87
|
+
trigReduce: typeof import("./algebra.js").trigReduce;
|
|
88
|
+
trigToExp: typeof import("./algebra.js").trigToExp;
|
|
89
|
+
expToTrig: typeof import("./algebra.js").expToTrig;
|
|
90
|
+
tangentLine: typeof import("./algebra.js").tangentLine;
|
|
91
|
+
reduce: typeof import("./algebra.js").reduce;
|
|
92
|
+
combine: typeof import("./algebra.js").combine;
|
|
93
|
+
complexExpand: typeof import("./algebra.js").complexExpand;
|
|
94
|
+
normalForm: typeof import("./algebra.js").normalForm;
|
|
95
|
+
powerExpand: typeof import("./algebra.js").powerExpand;
|
|
96
|
+
fullSimplify: typeof import("./algebra.js").fullSimplify;
|
|
97
|
+
element: typeof import("./algebra.js").element;
|
|
98
|
+
eliminate: typeof import("./algebra.js").eliminate;
|
|
99
|
+
symbolicPartialDerivative: typeof import("./algebra.js").symbolicPartialDerivative;
|
|
100
|
+
functionExpand: typeof import("./algebra.js").functionExpand;
|
|
101
|
+
resultant: typeof import("./algebra.js").resultant;
|
|
102
|
+
normalPDF: import("typed-function").TypedFunction;
|
|
103
|
+
normalCDF: import("typed-function").TypedFunction;
|
|
104
|
+
exponentialPDF: import("typed-function").TypedFunction;
|
|
105
|
+
exponentialCDF: import("typed-function").TypedFunction;
|
|
106
|
+
poissonPMF: import("typed-function").TypedFunction;
|
|
107
|
+
binomialPMF: import("typed-function").TypedFunction;
|
|
108
|
+
geometricPMF: import("typed-function").TypedFunction;
|
|
109
|
+
bernoulliPMF: import("typed-function").TypedFunction;
|
|
110
|
+
entropy: import("typed-function").TypedFunction;
|
|
111
|
+
jsDivergence: import("typed-function").TypedFunction;
|
|
112
|
+
betaPDF: import("typed-function").TypedFunction;
|
|
113
|
+
gammaPDF: import("typed-function").TypedFunction;
|
|
114
|
+
studentTPDF: import("typed-function").TypedFunction;
|
|
115
|
+
noncentralChi2PDF: import("typed-function").TypedFunction;
|
|
116
|
+
erfc: import("typed-function").TypedFunction;
|
|
117
|
+
lgamma: import("typed-function").TypedFunction;
|
|
118
|
+
beta: import("typed-function").TypedFunction;
|
|
119
|
+
gammainc: import("typed-function").TypedFunction;
|
|
120
|
+
digamma: import("typed-function").TypedFunction;
|
|
121
|
+
besselJ0: import("typed-function").TypedFunction;
|
|
122
|
+
besselJ1: import("typed-function").TypedFunction;
|
|
123
|
+
besselY0: import("typed-function").TypedFunction;
|
|
124
|
+
besselY1: import("typed-function").TypedFunction;
|
|
125
|
+
besselJ: import("typed-function").TypedFunction;
|
|
126
|
+
besselY: import("typed-function").TypedFunction;
|
|
127
|
+
besselI: import("typed-function").TypedFunction;
|
|
128
|
+
besselK: import("typed-function").TypedFunction;
|
|
129
|
+
betainc: import("typed-function").TypedFunction;
|
|
130
|
+
gammaincp: import("typed-function").TypedFunction;
|
|
131
|
+
ellipticK: import("typed-function").TypedFunction;
|
|
132
|
+
ellipticE: import("typed-function").TypedFunction;
|
|
133
|
+
chebyshevT: import("typed-function").TypedFunction;
|
|
134
|
+
hermiteH: import("typed-function").TypedFunction;
|
|
135
|
+
laguerreL: import("typed-function").TypedFunction;
|
|
136
|
+
legendreP: import("typed-function").TypedFunction;
|
|
137
|
+
lambertW: import("typed-function").TypedFunction;
|
|
138
|
+
erfi: import("typed-function").TypedFunction;
|
|
139
|
+
cosIntegral: import("typed-function").TypedFunction;
|
|
140
|
+
sinIntegral: import("typed-function").TypedFunction;
|
|
141
|
+
logIntegral: import("typed-function").TypedFunction;
|
|
142
|
+
expIntegralEi: import("typed-function").TypedFunction;
|
|
143
|
+
fresnelC: import("typed-function").TypedFunction;
|
|
144
|
+
fresnelS: import("typed-function").TypedFunction;
|
|
145
|
+
airyAi: import("typed-function").TypedFunction;
|
|
146
|
+
airyBi: import("typed-function").TypedFunction;
|
|
147
|
+
carlsonRC: import("typed-function").TypedFunction;
|
|
148
|
+
carlsonRF: import("typed-function").TypedFunction;
|
|
149
|
+
carlsonRD: import("typed-function").TypedFunction;
|
|
150
|
+
carlsonRJ: import("typed-function").TypedFunction;
|
|
151
|
+
ellipticF: import("typed-function").TypedFunction;
|
|
152
|
+
ellipticEIncomplete: import("typed-function").TypedFunction;
|
|
153
|
+
ellipticPi: import("typed-function").TypedFunction;
|
|
154
|
+
fibonacci: import("typed-function").TypedFunction;
|
|
155
|
+
lucas: import("typed-function").TypedFunction;
|
|
156
|
+
doubleFactorial: import("typed-function").TypedFunction;
|
|
157
|
+
risingFactorial: import("typed-function").TypedFunction;
|
|
158
|
+
fallingFactorial: import("typed-function").TypedFunction;
|
|
159
|
+
subfactorial: import("typed-function").TypedFunction;
|
|
160
|
+
prime: import("typed-function").TypedFunction;
|
|
161
|
+
nextPrime: import("typed-function").TypedFunction;
|
|
162
|
+
primePi: import("typed-function").TypedFunction;
|
|
163
|
+
primeFactors: import("typed-function").TypedFunction;
|
|
164
|
+
divisors: import("typed-function").TypedFunction;
|
|
165
|
+
eulerPhi: import("typed-function").TypedFunction;
|
|
166
|
+
divisorSigma: import("typed-function").TypedFunction;
|
|
167
|
+
carmichaelLambda: import("typed-function").TypedFunction;
|
|
168
|
+
moebiusMu: import("typed-function").TypedFunction;
|
|
169
|
+
jacobiSymbol: import("typed-function").TypedFunction;
|
|
170
|
+
chineseRemainder: import("typed-function").TypedFunction;
|
|
171
|
+
lucasL: import("typed-function").TypedFunction;
|
|
172
|
+
partitions: import("typed-function").TypedFunction;
|
|
173
|
+
harmonicNumber: import("typed-function").TypedFunction;
|
|
174
|
+
integerDigits: import("typed-function").TypedFunction;
|
|
175
|
+
fft: import("typed-function").TypedFunction;
|
|
176
|
+
ifft: import("typed-function").TypedFunction;
|
|
177
|
+
fftMagnitude: import("typed-function").TypedFunction;
|
|
178
|
+
fftPower: import("typed-function").TypedFunction;
|
|
179
|
+
conv: import("typed-function").TypedFunction;
|
|
180
|
+
xcorr: import("typed-function").TypedFunction;
|
|
181
|
+
autocorr: import("typed-function").TypedFunction;
|
|
182
|
+
crossCorrelation: typeof import("./signal.js").crossCorrelation;
|
|
183
|
+
autoCorrelation: typeof import("./signal.js").autoCorrelation;
|
|
184
|
+
groupDelay: typeof import("./signal.js").groupDelay;
|
|
185
|
+
unwrapPhase: typeof import("./signal.js").unwrapPhase;
|
|
186
|
+
dct: typeof import("./signal.js").dct;
|
|
187
|
+
idct: typeof import("./signal.js").idct;
|
|
188
|
+
dst: typeof import("./signal.js").dst;
|
|
189
|
+
idst: typeof import("./signal.js").idst;
|
|
190
|
+
dwt: typeof import("./signal.js").dwt;
|
|
191
|
+
fft2d: typeof import("./signal.js").fft2d;
|
|
192
|
+
fourier: typeof import("./signal.js").fourier;
|
|
193
|
+
invFourier: typeof import("./signal.js").invFourier;
|
|
194
|
+
hilbertTransform: typeof import("./signal.js").hilbertTransform;
|
|
195
|
+
spectrogram: typeof import("./signal.js").spectrogram;
|
|
196
|
+
periodogram: typeof import("./signal.js").periodogram;
|
|
197
|
+
lowpassFilter: typeof import("./signal.js").lowpassFilter;
|
|
198
|
+
highpassFilter: typeof import("./signal.js").highpassFilter;
|
|
199
|
+
bandpassFilter: typeof import("./signal.js").bandpassFilter;
|
|
200
|
+
resample: typeof import("./signal.js").resample;
|
|
201
|
+
medfilt: typeof import("./signal.js").medfilt;
|
|
202
|
+
windowFunction: typeof import("./signal.js").windowFunction;
|
|
203
|
+
convolve: typeof import("./signal.js").convolve;
|
|
204
|
+
correlate: typeof import("./signal.js").correlate;
|
|
205
|
+
welchPSD: typeof import("./signal.js").welchPSD;
|
|
206
|
+
bartlettPSD: typeof import("./signal.js").bartlettPSD;
|
|
207
|
+
multiTaperPSD: typeof import("./signal.js").multiTaperPSD;
|
|
208
|
+
goertzel: typeof import("./signal.js").goertzel;
|
|
209
|
+
chirpZTransform: typeof import("./signal.js").chirpZTransform;
|
|
210
|
+
applyWindow: typeof import("../wasm/signal/wasm-bridge.js").applyWindowDispatch;
|
|
211
|
+
sum: import("typed-function").TypedFunction;
|
|
212
|
+
mean: import("typed-function").TypedFunction;
|
|
213
|
+
variance: import("typed-function").TypedFunction;
|
|
214
|
+
std: import("typed-function").TypedFunction;
|
|
215
|
+
min: import("typed-function").TypedFunction;
|
|
216
|
+
max: import("typed-function").TypedFunction;
|
|
217
|
+
minMax: import("typed-function").TypedFunction;
|
|
218
|
+
median: import("typed-function").TypedFunction;
|
|
219
|
+
mode: import("typed-function").TypedFunction;
|
|
220
|
+
prod: import("typed-function").TypedFunction;
|
|
221
|
+
norm: import("typed-function").TypedFunction;
|
|
222
|
+
distance: import("typed-function").TypedFunction;
|
|
223
|
+
corr: import("typed-function").TypedFunction;
|
|
224
|
+
mad: import("typed-function").TypedFunction;
|
|
225
|
+
cumsum: import("typed-function").TypedFunction;
|
|
226
|
+
quantile: import("typed-function").TypedFunction;
|
|
227
|
+
percentile: typeof import("./statistics.js").parallelStatPercentile;
|
|
228
|
+
histogram: import("typed-function").TypedFunction;
|
|
229
|
+
quickSelect: typeof import("./statistics.js").quickSelect;
|
|
230
|
+
medianSelect: typeof import("./statistics.js").medianSelect;
|
|
231
|
+
minSelect: typeof import("./statistics.js").minSelect;
|
|
232
|
+
maxSelect: typeof import("./statistics.js").maxSelect;
|
|
233
|
+
sin: import("typed-function").TypedFunction;
|
|
234
|
+
cos: import("typed-function").TypedFunction;
|
|
235
|
+
tan: import("typed-function").TypedFunction;
|
|
236
|
+
csc: import("typed-function").TypedFunction;
|
|
237
|
+
sec: import("typed-function").TypedFunction;
|
|
238
|
+
cot: import("typed-function").TypedFunction;
|
|
239
|
+
asin: import("typed-function").TypedFunction;
|
|
240
|
+
acos: import("typed-function").TypedFunction;
|
|
241
|
+
atan: import("typed-function").TypedFunction;
|
|
242
|
+
atan2: import("typed-function").TypedFunction;
|
|
243
|
+
acsc: import("typed-function").TypedFunction;
|
|
244
|
+
asec: import("typed-function").TypedFunction;
|
|
245
|
+
acot: import("typed-function").TypedFunction;
|
|
246
|
+
asinh: import("typed-function").TypedFunction;
|
|
247
|
+
acosh: import("typed-function").TypedFunction;
|
|
248
|
+
atanh: import("typed-function").TypedFunction;
|
|
249
|
+
toRadians: import("typed-function").TypedFunction;
|
|
250
|
+
toDegrees: import("typed-function").TypedFunction;
|
|
251
|
+
hypot: import("typed-function").TypedFunction;
|
|
252
|
+
add: import("typed-function").TypedFunction;
|
|
253
|
+
subtract: import("typed-function").TypedFunction;
|
|
254
|
+
multiply: import("typed-function").TypedFunction;
|
|
255
|
+
divide: import("typed-function").TypedFunction;
|
|
256
|
+
unaryMinus: import("typed-function").TypedFunction;
|
|
257
|
+
unaryPlus: import("typed-function").TypedFunction;
|
|
258
|
+
abs: import("typed-function").TypedFunction;
|
|
259
|
+
sign: import("typed-function").TypedFunction;
|
|
260
|
+
pow: import("typed-function").TypedFunction;
|
|
261
|
+
sqrt: import("typed-function").TypedFunction;
|
|
262
|
+
square: import("typed-function").TypedFunction;
|
|
263
|
+
cube: import("typed-function").TypedFunction;
|
|
264
|
+
cbrt: import("typed-function").TypedFunction;
|
|
265
|
+
nthRoot: import("typed-function").TypedFunction;
|
|
266
|
+
exp: import("typed-function").TypedFunction;
|
|
267
|
+
log: import("typed-function").TypedFunction;
|
|
268
|
+
log10: import("typed-function").TypedFunction;
|
|
269
|
+
log2: import("typed-function").TypedFunction;
|
|
270
|
+
log1p: import("typed-function").TypedFunction;
|
|
271
|
+
expm1: import("typed-function").TypedFunction;
|
|
272
|
+
round: import("typed-function").TypedFunction;
|
|
273
|
+
floor: import("typed-function").TypedFunction;
|
|
274
|
+
ceil: import("typed-function").TypedFunction;
|
|
275
|
+
fix: import("typed-function").TypedFunction;
|
|
276
|
+
mod: import("typed-function").TypedFunction;
|
|
277
|
+
gcd: import("typed-function").TypedFunction;
|
|
278
|
+
lcm: import("typed-function").TypedFunction;
|
|
279
|
+
xgcd: import("typed-function").TypedFunction;
|
|
280
|
+
sinh: import("typed-function").TypedFunction;
|
|
281
|
+
cosh: import("typed-function").TypedFunction;
|
|
282
|
+
tanh: import("typed-function").TypedFunction;
|
|
283
|
+
equal: import("typed-function").TypedFunction;
|
|
284
|
+
smaller: import("typed-function").TypedFunction;
|
|
285
|
+
larger: import("typed-function").TypedFunction;
|
|
286
|
+
smallerEq: import("typed-function").TypedFunction;
|
|
287
|
+
largerEq: import("typed-function").TypedFunction;
|
|
288
|
+
compare: import("typed-function").TypedFunction;
|
|
289
|
+
dot: import("typed-function").TypedFunction;
|
|
290
|
+
matmul: typeof import("./arithmetic.js").matmul;
|
|
291
|
+
transpose: typeof import("./arithmetic.js").transpose;
|
|
292
|
+
matvec: typeof import("./arithmetic.js").matvec;
|
|
293
|
+
outer: typeof import("./arithmetic.js").outer;
|
|
294
|
+
initializePool: typeof import("./arithmetic.js").initializePool;
|
|
295
|
+
terminatePool: typeof import("./arithmetic.js").terminatePool;
|
|
296
|
+
shouldParallelize: typeof import("./arithmetic.js").shouldParallelize;
|
|
297
|
+
getComputePool: typeof import("./arithmetic.js").getComputePool;
|
|
298
|
+
};
|
|
299
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAK5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxD,cAAc,eAAe,CAAC;AAG9B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,cAAc,CAAC;AAG7B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,YAAY,CAAC;AAG3B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,iBAAiB,CAAC;AAWhC,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC,cAAc,UAAU,CAAC;AAIzB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAsCtC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B1B,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Numerical Integration Functions
|
|
3
|
+
*
|
|
4
|
+
* Provides numerical integration (quadrature) methods:
|
|
5
|
+
* - trapz: Trapezoidal rule
|
|
6
|
+
* - simpson: Simpson's 1/3 rule
|
|
7
|
+
* - gaussQuad: Gauss-Legendre quadrature (composite form for n ≥ 64 sub-intervals)
|
|
8
|
+
* - romberg: Romberg integration (adaptive Richardson extrapolation)
|
|
9
|
+
*
|
|
10
|
+
* Worker-dispatch strategy (Slice 3.8):
|
|
11
|
+
* - gaussQuad / romberg: function evaluation stays on the main thread; the
|
|
12
|
+
* weighted dot-product reduction (values × weights) is offloaded via
|
|
13
|
+
* `computePool.dot` when sub-interval count ≥ GAUSS_WORKER_THRESHOLD.
|
|
14
|
+
* - trapz / simpson accepting a Float64Array of pre-computed values: the
|
|
15
|
+
* summation is offloaded via `computePool.sum` when length ≥
|
|
16
|
+
* ARRAY_WORKER_THRESHOLD.
|
|
17
|
+
*
|
|
18
|
+
* Worker-dispatch strategy (Slice 5.10) — sub-interval fan-out:
|
|
19
|
+
* - gaussQuad / romberg accept an optional `workerCount` option (default 1).
|
|
20
|
+
* When `workerCount > 1` and `totalPoints ≥ GAUSS_WORKER_THRESHOLD`, the
|
|
21
|
+
* integration domain is partitioned into `workerCount` equal sub-domains and
|
|
22
|
+
* one `integrateChunk` worker task is dispatched per sub-domain. Each task
|
|
23
|
+
* stringifies the integrand closure and evaluates it inside the worker.
|
|
24
|
+
*
|
|
25
|
+
* **Closure-stringification contract:**
|
|
26
|
+
* Only closures that are self-contained (no free variables referencing
|
|
27
|
+
* outer scope) survive worker dispatch. The heuristic in
|
|
28
|
+
* `validateClosureSource` tokenizes the function source and rejects any
|
|
29
|
+
* identifier that is not:
|
|
30
|
+
* - the declared parameter name(s),
|
|
31
|
+
* - a `Math` property access (`Math.*`),
|
|
32
|
+
* - a standard numeric literal keyword (`Infinity`, `NaN`), or
|
|
33
|
+
* - a keyword / punctuation.
|
|
34
|
+
* Arrow functions (`x => x*x`, `(x) => x*x`) and classic function expressions
|
|
35
|
+
* (`function(x){ return x*x; }`) both stringify cleanly.
|
|
36
|
+
* Async closures are rejected unconditionally.
|
|
37
|
+
*
|
|
38
|
+
* These use plain exports (not mathTyped) because they accept function
|
|
39
|
+
* arguments, which typed-function does not handle well.
|
|
40
|
+
*
|
|
41
|
+
* @packageDocumentation
|
|
42
|
+
*/
|
|
43
|
+
/** Minimum sub-interval count before gaussQuad / romberg offload the reduction. */
|
|
44
|
+
export declare const GAUSS_WORKER_THRESHOLD = 64;
|
|
45
|
+
/** Minimum array length before trapzF64 / simpsonF64 offload the summation. */
|
|
46
|
+
export declare const ARRAY_WORKER_THRESHOLD = 65536;
|
|
47
|
+
/**
|
|
48
|
+
* Validate that a stringified function closure is safe to dispatch to a worker.
|
|
49
|
+
*
|
|
50
|
+
* The heuristic:
|
|
51
|
+
* 1. Rejects async closures outright (they cannot be reconstructed portably).
|
|
52
|
+
* 2. Extracts the parameter name(s) from the function source.
|
|
53
|
+
* 3. Tokenizes the body by extracting all bare identifiers (word characters
|
|
54
|
+
* not preceded or followed by a dot — i.e. not `Math.sin` method parts).
|
|
55
|
+
* 4. Rejects any identifier that is not the parameter name, not in the
|
|
56
|
+
* ALLOWED_GLOBALS set, and not a numeric literal.
|
|
57
|
+
*
|
|
58
|
+
* @param fnSource - Result of `f.toString()`
|
|
59
|
+
* @throws {Error} When the closure references outer-scope identifiers or is async
|
|
60
|
+
*/
|
|
61
|
+
export declare function validateClosureSource(fnSource: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Numerical integration using the trapezoidal rule over a number array.
|
|
64
|
+
*
|
|
65
|
+
* @param y - Array of function values
|
|
66
|
+
* @param x - Optional array of x-coordinates (defaults to uniform spacing h=1)
|
|
67
|
+
* @returns Approximate integral
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* trapz([1, 2, 3], [0, 1, 2]) // => 4
|
|
71
|
+
* trapz([0, 1, 0]) // => 1 (uniform spacing)
|
|
72
|
+
*/
|
|
73
|
+
export declare function trapz(y: number[], x?: number[]): number;
|
|
74
|
+
/**
|
|
75
|
+
* Numerical integration using the trapezoidal rule over a Float64Array.
|
|
76
|
+
*
|
|
77
|
+
* For arrays with length ≥ ARRAY_WORKER_THRESHOLD the trapezoidal terms are
|
|
78
|
+
* computed element-wise on the main thread and the final summation is
|
|
79
|
+
* offloaded to the compute pool via `computePool.sum`.
|
|
80
|
+
*
|
|
81
|
+
* @param y - Float64Array of function values (uniform spacing h=1 unless dx provided)
|
|
82
|
+
* @param dx - Optional uniform step size (default 1)
|
|
83
|
+
* @returns Promise resolving to the approximate integral
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await trapzF64(new Float64Array([0, 1, 0])) // => 1
|
|
87
|
+
*/
|
|
88
|
+
export declare function trapzF64(y: Float64Array, dx?: number): Promise<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Numerical integration using Simpson's 1/3 rule (function form).
|
|
91
|
+
*
|
|
92
|
+
* @param f - Function to integrate
|
|
93
|
+
* @param a - Lower bound
|
|
94
|
+
* @param b - Upper bound
|
|
95
|
+
* @param n - Number of subintervals (must be even, default 100)
|
|
96
|
+
* @returns Approximate integral
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* simpson(x => x ** 2, 0, 1) // => ~0.3333
|
|
100
|
+
*/
|
|
101
|
+
export declare function simpson(f: (x: number) => number, a: number, b: number, n?: number): number;
|
|
102
|
+
/**
|
|
103
|
+
* Numerical integration using Simpson's 1/3 rule over a pre-computed
|
|
104
|
+
* Float64Array of uniformly-spaced function values.
|
|
105
|
+
*
|
|
106
|
+
* For arrays with length ≥ ARRAY_WORKER_THRESHOLD the weighted terms are
|
|
107
|
+
* computed on the main thread and the summation is offloaded to the pool.
|
|
108
|
+
*
|
|
109
|
+
* @param y - Float64Array of function values at uniform spacing
|
|
110
|
+
* @param dx - Uniform step size (default 1)
|
|
111
|
+
* @returns Promise resolving to the approximate integral
|
|
112
|
+
*/
|
|
113
|
+
export declare function simpsonF64(y: Float64Array, dx?: number): Promise<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Options for `gaussQuad` fan-out mode (Slice 5.10).
|
|
116
|
+
*/
|
|
117
|
+
export interface GaussQuadOptions {
|
|
118
|
+
/**
|
|
119
|
+
* Number of sub-domain worker tasks to spawn when `n ≥ GAUSS_WORKER_THRESHOLD`.
|
|
120
|
+
*
|
|
121
|
+
* - `1` (default): behaves exactly as Slice 3.8 — no sub-interval fan-out.
|
|
122
|
+
* - `> 1`: the domain `[a, b]` is partitioned into `workerCount` equal
|
|
123
|
+
* sub-domains. One `integrateChunk` worker task is dispatched per
|
|
124
|
+
* sub-domain. The closure `f` is stringified via `f.toString()` and
|
|
125
|
+
* reconstructed inside each worker with `new Function`.
|
|
126
|
+
*
|
|
127
|
+
* **Closure constraint:** The integrand must be a self-contained expression
|
|
128
|
+
* (no references to outer-scope variables). Use `Math.*` methods and
|
|
129
|
+
* arithmetic only. Async closures are rejected. See `validateClosureSource`.
|
|
130
|
+
*
|
|
131
|
+
* **Fall-back:** when `workerCount > 1` but `totalPoints < GAUSS_WORKER_THRESHOLD`
|
|
132
|
+
* or the pool is not ready, the function falls back to single-thread evaluation
|
|
133
|
+
* (worker overhead would dominate at small sizes).
|
|
134
|
+
*/
|
|
135
|
+
workerCount?: number;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Numerical integration using Gauss-Legendre quadrature.
|
|
139
|
+
*
|
|
140
|
+
* When `n` is in [2, 5] the legacy single-interval mode is used (backward
|
|
141
|
+
* compatible): `n` is the number of GL quadrature points applied to [a, b].
|
|
142
|
+
*
|
|
143
|
+
* When `n` ≥ 64 the domain is split into `n` equal sub-intervals, each
|
|
144
|
+
* integrated with a fixed-order GL rule (default order 5). Function
|
|
145
|
+
* evaluation stays on the main thread; the weighted dot-product reduction is
|
|
146
|
+
* offloaded to the compute pool when the pool is ready.
|
|
147
|
+
*
|
|
148
|
+
* **Sub-interval fan-out (Slice 5.10):** Pass `{ workerCount: k }` to
|
|
149
|
+
* partition the integration domain into `k` equal sub-domains and dispatch
|
|
150
|
+
* one worker task per sub-domain. Requires `totalPoints ≥ GAUSS_WORKER_THRESHOLD`
|
|
151
|
+
* and the compute pool to be ready; otherwise falls back to single-thread.
|
|
152
|
+
* The integrand `f` must satisfy the closure-stringification contract — see
|
|
153
|
+
* `validateClosureSource` and the module-level JSDoc.
|
|
154
|
+
*
|
|
155
|
+
* @param f - Function to integrate
|
|
156
|
+
* @param a - Lower bound
|
|
157
|
+
* @param b - Upper bound
|
|
158
|
+
* @param n - Number of quadrature points (2–5) OR number of sub-intervals (≥ 6)
|
|
159
|
+
* @param order - GL order to use per sub-interval when n ≥ 6 (default 5)
|
|
160
|
+
* @param options - Optional fan-out options `{ workerCount }`
|
|
161
|
+
* @returns Approximate integral (or Promise when n ≥ GAUSS_WORKER_THRESHOLD and pool is ready)
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* gaussQuad(x => x ** 2, 0, 1, 3) // => ~0.3333 (3-point GL, single interval)
|
|
165
|
+
* await gaussQuad(Math.sin, 0, Math.PI, 64) // => ~2.0 (composite, 64 sub-intervals)
|
|
166
|
+
* await gaussQuad(Math.sin, 0, Math.PI, 64, 5, { workerCount: 4 }) // => ~2.0 (fan-out, 4 workers)
|
|
167
|
+
*/
|
|
168
|
+
export declare function gaussQuad(f: (x: number) => number, a: number, b: number, n?: number, order?: number, options?: GaussQuadOptions): number | Promise<number>;
|
|
169
|
+
/**
|
|
170
|
+
* Options for `romberg` fan-out mode (Slice 5.10).
|
|
171
|
+
*/
|
|
172
|
+
export interface RombergOptions {
|
|
173
|
+
/**
|
|
174
|
+
* Number of sub-domain worker tasks to spawn for the initial trapezoidal
|
|
175
|
+
* estimate when the evaluation count crosses `GAUSS_WORKER_THRESHOLD`.
|
|
176
|
+
*
|
|
177
|
+
* - `1` (default): behaves exactly as Slice 3.8 — no sub-interval fan-out.
|
|
178
|
+
* - `> 1`: the domain `[a, b]` is partitioned into `workerCount` equal
|
|
179
|
+
* sub-domains for the initial estimate. Each sub-domain is integrated
|
|
180
|
+
* with a 5-point GL rule inside a worker.
|
|
181
|
+
*
|
|
182
|
+
* **Closure constraint:** Same as `GaussQuadOptions.workerCount` — see
|
|
183
|
+
* `validateClosureSource` for details.
|
|
184
|
+
*
|
|
185
|
+
* **Fall-back:** when `workerCount > 1` but the point count is below
|
|
186
|
+
* `GAUSS_WORKER_THRESHOLD` or the pool is not ready, the standard sequential
|
|
187
|
+
* path is used.
|
|
188
|
+
*/
|
|
189
|
+
workerCount?: number;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Romberg integration using Richardson extrapolation on the trapezoidal rule.
|
|
193
|
+
*
|
|
194
|
+
* Adaptively refines the estimate until the desired tolerance is reached
|
|
195
|
+
* or the maximum number of iterations (20) is exceeded.
|
|
196
|
+
*
|
|
197
|
+
* When the intermediate trapezoidal sum at level `n` involves ≥
|
|
198
|
+
* GAUSS_WORKER_THRESHOLD new function evaluations the partial sum is
|
|
199
|
+
* offloaded to the compute pool. Because each level n evaluates 2^(n-1)
|
|
200
|
+
* *new* points, the pool is engaged once n ≥ log2(GAUSS_WORKER_THRESHOLD),
|
|
201
|
+
* i.e. from level 7 onward (128 new points per level).
|
|
202
|
+
*
|
|
203
|
+
* **Sub-interval fan-out (Slice 5.10):** Pass `{ workerCount: k }` to fan out
|
|
204
|
+
* the initial trapezoidal sub-domain evaluations to `k` workers. The closure
|
|
205
|
+
* `f` must satisfy the stringification contract — see `validateClosureSource`.
|
|
206
|
+
*
|
|
207
|
+
* @param f - Function to integrate
|
|
208
|
+
* @param a - Lower bound
|
|
209
|
+
* @param b - Upper bound
|
|
210
|
+
* @param tol - Desired absolute tolerance (default 1e-12)
|
|
211
|
+
* @param options - Optional fan-out options `{ workerCount }`
|
|
212
|
+
* @returns Promise resolving to the approximate integral
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* await romberg(Math.sin, 0, Math.PI) // => ~2.0
|
|
216
|
+
* await romberg(Math.sin, 0, Math.PI, 1e-12, { workerCount: 4 }) // fan-out, 4 workers
|
|
217
|
+
*/
|
|
218
|
+
export declare function romberg(f: (x: number) => number, a: number, b: number, tol?: number, options?: RombergOptions): Promise<number>;
|
|
219
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/typed/integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAQH,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAwG7C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAuC5D;AA2BD;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAqBvD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,SAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBvE;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAE,MAAY,GAAG,MAAM,CAa/F;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,SAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBzE;AAuBD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,SAAS,CACvB,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,GAAE,MAAU,EACb,KAAK,GAAE,MAAU,EACjB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmE1B;AAMD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,OAAO,CAC3B,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,GAAG,GAAE,MAAc,EACnB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,CA0EjB"}
|