mathjs 9.3.2 → 9.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +22 -0
- package/README.md +1 -0
- package/bin/cli.js +11 -11
- package/docs/expressions/parsing.md +21 -4
- package/docs/reference/functions/complex.md +5 -49
- package/docs/reference/functions/eigs.md +12 -12
- package/docs/reference/functions/flatten.md +1 -0
- package/docs/reference/functions/matrixFromColumns.md +1 -1
- package/docs/reference/functions/matrixFromFunction.md +12 -0
- package/docs/reference/functions/matrixFromRows.md +1 -1
- package/docs/reference/functions.md +4 -1
- package/examples/advanced/custom_scope_objects.js +115 -0
- package/lib/browser/math.js +10 -10
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/core/create.js +8 -7
- package/lib/cjs/core/function/import.js +9 -7
- package/lib/cjs/core/function/typed.js +6 -1
- package/lib/cjs/defaultInstance.js +3 -3
- package/lib/cjs/entry/allFactoriesAny.js +3 -3
- package/lib/cjs/entry/allFactoriesNumber.js +3 -3
- package/lib/cjs/entry/configReadonly.js +5 -4
- package/lib/cjs/entry/dependenciesAny/dependenciesEigs.generated.js +51 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +29 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +29 -0
- package/lib/cjs/entry/dependenciesAny.generated.js +24 -0
- package/lib/cjs/entry/impureFunctionsAny.generated.js +22 -17
- package/lib/cjs/entry/impureFunctionsNumber.generated.js +11 -9
- package/lib/cjs/entry/pureFunctionsAny.generated.js +78 -41
- package/lib/cjs/expression/Parser.js +22 -15
- package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +9 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/column.js +1 -1
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromColumns.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromFunction.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromRows.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/row.js +1 -1
- package/lib/cjs/expression/function/evaluate.js +6 -4
- package/lib/cjs/expression/keywords.js +1 -3
- package/lib/cjs/expression/node/AccessorNode.js +1 -0
- package/lib/cjs/expression/node/AssignmentNode.js +6 -3
- package/lib/cjs/expression/node/FunctionAssignmentNode.js +2 -4
- package/lib/cjs/expression/node/FunctionNode.js +76 -46
- package/lib/cjs/expression/node/IndexNode.js +5 -13
- package/lib/cjs/expression/node/Node.js +15 -9
- package/lib/cjs/expression/node/ObjectNode.js +5 -3
- package/lib/cjs/expression/node/SymbolNode.js +2 -2
- package/lib/cjs/expression/node/utils/access.js +5 -3
- package/lib/cjs/expression/node/utils/assign.js +5 -3
- package/lib/cjs/expression/parse.js +10 -14
- package/lib/cjs/expression/transform/utils/compileInlineExpression.js +5 -3
- package/lib/cjs/factoriesAny.js +24 -0
- package/lib/cjs/function/algebra/decomposition/qr.js +5 -3
- package/lib/cjs/function/algebra/simplify/resolve.js +7 -1
- package/lib/cjs/function/algebra/simplify.js +20 -14
- package/lib/cjs/function/algebra/solver/lsolveAll.js +6 -16
- package/lib/cjs/function/algebra/solver/usolveAll.js +6 -16
- package/lib/cjs/function/arithmetic/ceil.js +6 -16
- package/lib/cjs/function/arithmetic/floor.js +6 -16
- package/lib/cjs/function/arithmetic/norm.js +2 -2
- package/lib/cjs/function/arithmetic/pow.js +9 -7
- package/lib/cjs/function/arithmetic/round.js +7 -5
- package/lib/cjs/function/complex/im.js +3 -0
- package/lib/cjs/function/complex/re.js +3 -0
- package/lib/cjs/function/matrix/eigs/complexEigs.js +631 -0
- package/lib/cjs/function/matrix/eigs/realSymetric.js +341 -0
- package/lib/cjs/function/matrix/eigs.js +188 -334
- package/lib/cjs/function/matrix/flatten.js +1 -0
- package/lib/cjs/function/matrix/matrixFromColumns.js +118 -0
- package/lib/cjs/function/matrix/matrixFromFunction.js +85 -0
- package/lib/cjs/function/matrix/matrixFromRows.js +108 -0
- package/lib/cjs/function/probability/pickRandom.js +1 -1
- package/lib/cjs/function/probability/util/seededRNG.js +2 -2
- package/lib/cjs/function/relational/compareNatural.js +2 -2
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/plain/bignumber/index.js +2 -2
- package/lib/cjs/type/bignumber/BigNumber.js +2 -2
- package/lib/cjs/type/complex/Complex.js +5 -5
- package/lib/cjs/type/fraction/Fraction.js +2 -2
- package/lib/cjs/type/matrix/DenseMatrix.js +138 -0
- package/lib/cjs/type/matrix/Matrix.js +10 -0
- package/lib/cjs/type/matrix/SparseMatrix.js +77 -3
- package/lib/cjs/type/matrix/function/matrix.js +2 -1
- package/lib/cjs/type/unit/Unit.js +15 -13
- package/lib/cjs/utils/array.js +1 -1
- package/lib/cjs/utils/customs.js +18 -4
- package/lib/cjs/utils/emitter.js +2 -2
- package/lib/cjs/utils/function.js +6 -2
- package/lib/cjs/utils/is.js +7 -5
- package/lib/cjs/utils/latex.js +2 -2
- package/lib/cjs/utils/map.js +197 -0
- package/lib/cjs/utils/object.js +6 -5
- package/lib/cjs/utils/scope.js +33 -0
- package/lib/cjs/utils/snapshot.js +17 -16
- package/lib/cjs/utils/string.js +6 -4
- package/lib/cjs/version.js +1 -1
- package/lib/esm/constants.js +15 -15
- package/lib/esm/core/create.js +1 -2
- package/lib/esm/core/function/typed.js +5 -1
- package/lib/esm/entry/configReadonly.js +1 -2
- package/lib/esm/entry/dependenciesAny/dependenciesEigs.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny.generated.js +3 -0
- package/lib/esm/entry/impureFunctionsAny.generated.js +13 -10
- package/lib/esm/entry/impureFunctionsNumber.generated.js +1 -1
- package/lib/esm/entry/pureFunctionsAny.generated.js +66 -32
- package/lib/esm/expression/Help.js +1 -1
- package/lib/esm/expression/Parser.js +23 -15
- package/lib/esm/expression/embeddedDocs/embeddedDocs.js +6 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/column.js +1 -1
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromColumns.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromFunction.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromRows.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/row.js +1 -1
- package/lib/esm/expression/function/compile.js +1 -1
- package/lib/esm/expression/function/evaluate.js +6 -5
- package/lib/esm/expression/function/help.js +1 -1
- package/lib/esm/expression/function/parser.js +1 -1
- package/lib/esm/expression/keywords.js +1 -3
- package/lib/esm/expression/node/AccessorNode.js +2 -1
- package/lib/esm/expression/node/ArrayNode.js +1 -1
- package/lib/esm/expression/node/AssignmentNode.js +7 -4
- package/lib/esm/expression/node/BlockNode.js +1 -1
- package/lib/esm/expression/node/ConditionalNode.js +1 -1
- package/lib/esm/expression/node/ConstantNode.js +1 -1
- package/lib/esm/expression/node/FunctionAssignmentNode.js +3 -4
- package/lib/esm/expression/node/FunctionNode.js +57 -39
- package/lib/esm/expression/node/IndexNode.js +1 -1
- package/lib/esm/expression/node/Node.js +7 -8
- package/lib/esm/expression/node/ObjectNode.js +1 -1
- package/lib/esm/expression/node/OperatorNode.js +1 -1
- package/lib/esm/expression/node/ParenthesisNode.js +1 -1
- package/lib/esm/expression/node/RangeNode.js +1 -1
- package/lib/esm/expression/node/RelationalNode.js +1 -1
- package/lib/esm/expression/node/SymbolNode.js +3 -3
- package/lib/esm/expression/parse.js +2 -3
- package/lib/esm/expression/transform/apply.transform.js +1 -1
- package/lib/esm/expression/transform/column.transform.js +1 -1
- package/lib/esm/expression/transform/concat.transform.js +1 -1
- package/lib/esm/expression/transform/diff.transform.js +1 -1
- package/lib/esm/expression/transform/filter.transform.js +1 -1
- package/lib/esm/expression/transform/forEach.transform.js +1 -1
- package/lib/esm/expression/transform/index.transform.js +1 -1
- package/lib/esm/expression/transform/map.transform.js +1 -1
- package/lib/esm/expression/transform/max.transform.js +1 -1
- package/lib/esm/expression/transform/mean.transform.js +1 -1
- package/lib/esm/expression/transform/min.transform.js +1 -1
- package/lib/esm/expression/transform/range.transform.js +1 -1
- package/lib/esm/expression/transform/row.transform.js +1 -1
- package/lib/esm/expression/transform/std.transform.js +1 -1
- package/lib/esm/expression/transform/subset.transform.js +1 -1
- package/lib/esm/expression/transform/sum.transform.js +1 -1
- package/lib/esm/expression/transform/utils/compileInlineExpression.js +4 -3
- package/lib/esm/expression/transform/variance.transform.js +1 -1
- package/lib/esm/factoriesAny.js +3 -0
- package/lib/esm/factoriesNumber.js +1 -1
- package/lib/esm/function/algebra/decomposition/lup.js +1 -1
- package/lib/esm/function/algebra/decomposition/qr.js +2 -3
- package/lib/esm/function/algebra/decomposition/slu.js +1 -1
- package/lib/esm/function/algebra/derivative.js +1 -1
- package/lib/esm/function/algebra/rationalize.js +1 -1
- package/lib/esm/function/algebra/simplify/resolve.js +7 -2
- package/lib/esm/function/algebra/simplify/simplifyConstant.js +1 -1
- package/lib/esm/function/algebra/simplify/simplifyCore.js +1 -1
- package/lib/esm/function/algebra/simplify/util.js +1 -1
- package/lib/esm/function/algebra/simplify.js +16 -12
- package/lib/esm/function/algebra/solver/lsolve.js +1 -1
- package/lib/esm/function/algebra/solver/lsolveAll.js +1 -1
- package/lib/esm/function/algebra/solver/lusolve.js +1 -1
- package/lib/esm/function/algebra/solver/usolve.js +1 -1
- package/lib/esm/function/algebra/solver/usolveAll.js +1 -1
- package/lib/esm/function/algebra/sparse/csAmd.js +1 -1
- package/lib/esm/function/algebra/sparse/csChol.js +1 -1
- package/lib/esm/function/algebra/sparse/csCounts.js +1 -1
- package/lib/esm/function/algebra/sparse/csLu.js +1 -1
- package/lib/esm/function/algebra/sparse/csSpsolve.js +1 -1
- package/lib/esm/function/algebra/sparse/csSqr.js +1 -1
- package/lib/esm/function/algebra/sparse/csSymperm.js +1 -1
- package/lib/esm/function/arithmetic/abs.js +1 -1
- package/lib/esm/function/arithmetic/add.js +1 -1
- package/lib/esm/function/arithmetic/addScalar.js +1 -1
- package/lib/esm/function/arithmetic/cbrt.js +1 -1
- package/lib/esm/function/arithmetic/ceil.js +1 -1
- package/lib/esm/function/arithmetic/cube.js +1 -1
- package/lib/esm/function/arithmetic/divide.js +1 -1
- package/lib/esm/function/arithmetic/divideScalar.js +1 -1
- package/lib/esm/function/arithmetic/dotDivide.js +1 -1
- package/lib/esm/function/arithmetic/dotMultiply.js +1 -1
- package/lib/esm/function/arithmetic/dotPow.js +1 -1
- package/lib/esm/function/arithmetic/exp.js +1 -1
- package/lib/esm/function/arithmetic/expm1.js +1 -1
- package/lib/esm/function/arithmetic/fix.js +1 -1
- package/lib/esm/function/arithmetic/floor.js +1 -1
- package/lib/esm/function/arithmetic/gcd.js +1 -1
- package/lib/esm/function/arithmetic/hypot.js +1 -1
- package/lib/esm/function/arithmetic/lcm.js +1 -1
- package/lib/esm/function/arithmetic/log.js +1 -1
- package/lib/esm/function/arithmetic/log10.js +1 -1
- package/lib/esm/function/arithmetic/log1p.js +1 -1
- package/lib/esm/function/arithmetic/log2.js +1 -1
- package/lib/esm/function/arithmetic/mod.js +1 -1
- package/lib/esm/function/arithmetic/multiply.js +1 -1
- package/lib/esm/function/arithmetic/multiplyScalar.js +1 -1
- package/lib/esm/function/arithmetic/norm.js +3 -3
- package/lib/esm/function/arithmetic/nthRoot.js +2 -2
- package/lib/esm/function/arithmetic/nthRoots.js +1 -1
- package/lib/esm/function/arithmetic/pow.js +10 -8
- package/lib/esm/function/arithmetic/round.js +6 -6
- package/lib/esm/function/arithmetic/sign.js +1 -1
- package/lib/esm/function/arithmetic/sqrt.js +1 -1
- package/lib/esm/function/arithmetic/square.js +1 -1
- package/lib/esm/function/arithmetic/subtract.js +1 -1
- package/lib/esm/function/arithmetic/unaryMinus.js +1 -1
- package/lib/esm/function/arithmetic/unaryPlus.js +1 -1
- package/lib/esm/function/arithmetic/xgcd.js +1 -1
- package/lib/esm/function/bitwise/bitAnd.js +1 -1
- package/lib/esm/function/bitwise/bitNot.js +1 -1
- package/lib/esm/function/bitwise/bitOr.js +1 -1
- package/lib/esm/function/bitwise/bitXor.js +1 -1
- package/lib/esm/function/bitwise/leftShift.js +1 -1
- package/lib/esm/function/bitwise/rightArithShift.js +1 -1
- package/lib/esm/function/bitwise/rightLogShift.js +1 -1
- package/lib/esm/function/combinatorics/bellNumbers.js +1 -1
- package/lib/esm/function/combinatorics/catalan.js +1 -1
- package/lib/esm/function/combinatorics/composition.js +1 -1
- package/lib/esm/function/combinatorics/stirlingS2.js +1 -1
- package/lib/esm/function/complex/arg.js +1 -1
- package/lib/esm/function/complex/conj.js +1 -1
- package/lib/esm/function/complex/im.js +4 -1
- package/lib/esm/function/complex/re.js +4 -1
- package/lib/esm/function/geometry/distance.js +1 -1
- package/lib/esm/function/geometry/intersect.js +1 -1
- package/lib/esm/function/logical/and.js +1 -1
- package/lib/esm/function/logical/not.js +1 -1
- package/lib/esm/function/logical/or.js +1 -1
- package/lib/esm/function/logical/xor.js +1 -1
- package/lib/esm/function/matrix/apply.js +1 -1
- package/lib/esm/function/matrix/column.js +1 -1
- package/lib/esm/function/matrix/concat.js +1 -1
- package/lib/esm/function/matrix/count.js +1 -1
- package/lib/esm/function/matrix/cross.js +1 -1
- package/lib/esm/function/matrix/ctranspose.js +1 -1
- package/lib/esm/function/matrix/det.js +1 -1
- package/lib/esm/function/matrix/diag.js +1 -1
- package/lib/esm/function/matrix/diff.js +1 -1
- package/lib/esm/function/matrix/dot.js +1 -1
- package/lib/esm/function/matrix/eigs/complexEigs.js +586 -0
- package/lib/esm/function/matrix/eigs/realSymetric.js +335 -0
- package/lib/esm/function/matrix/eigs.js +187 -335
- package/lib/esm/function/matrix/expm.js +1 -1
- package/lib/esm/function/matrix/filter.js +1 -1
- package/lib/esm/function/matrix/flatten.js +2 -1
- package/lib/esm/function/matrix/forEach.js +1 -1
- package/lib/esm/function/matrix/getMatrixDataType.js +1 -1
- package/lib/esm/function/matrix/identity.js +1 -1
- package/lib/esm/function/matrix/inv.js +1 -1
- package/lib/esm/function/matrix/kron.js +1 -1
- package/lib/esm/function/matrix/map.js +1 -1
- package/lib/esm/function/matrix/matrixFromColumns.js +93 -0
- package/lib/esm/function/matrix/matrixFromFunction.js +78 -0
- package/lib/esm/function/matrix/matrixFromRows.js +83 -0
- package/lib/esm/function/matrix/ones.js +1 -1
- package/lib/esm/function/matrix/partitionSelect.js +1 -1
- package/lib/esm/function/matrix/range.js +1 -1
- package/lib/esm/function/matrix/reshape.js +1 -1
- package/lib/esm/function/matrix/resize.js +1 -1
- package/lib/esm/function/matrix/rotate.js +1 -1
- package/lib/esm/function/matrix/rotationMatrix.js +1 -1
- package/lib/esm/function/matrix/row.js +1 -1
- package/lib/esm/function/matrix/size.js +1 -1
- package/lib/esm/function/matrix/sort.js +1 -1
- package/lib/esm/function/matrix/sqrtm.js +1 -1
- package/lib/esm/function/matrix/squeeze.js +1 -1
- package/lib/esm/function/matrix/subset.js +1 -1
- package/lib/esm/function/matrix/trace.js +1 -1
- package/lib/esm/function/matrix/transpose.js +1 -1
- package/lib/esm/function/matrix/zeros.js +1 -1
- package/lib/esm/function/probability/combinations.js +1 -1
- package/lib/esm/function/probability/combinationsWithRep.js +1 -1
- package/lib/esm/function/probability/factorial.js +1 -1
- package/lib/esm/function/probability/gamma.js +1 -1
- package/lib/esm/function/probability/kldivergence.js +1 -1
- package/lib/esm/function/probability/multinomial.js +1 -1
- package/lib/esm/function/probability/permutations.js +1 -1
- package/lib/esm/function/probability/pickRandom.js +2 -2
- package/lib/esm/function/probability/random.js +2 -2
- package/lib/esm/function/probability/randomInt.js +1 -1
- package/lib/esm/function/relational/compare.js +2 -2
- package/lib/esm/function/relational/compareNatural.js +1 -1
- package/lib/esm/function/relational/compareText.js +2 -2
- package/lib/esm/function/relational/deepEqual.js +1 -1
- package/lib/esm/function/relational/equal.js +2 -2
- package/lib/esm/function/relational/equalScalar.js +2 -2
- package/lib/esm/function/relational/equalText.js +1 -1
- package/lib/esm/function/relational/larger.js +2 -2
- package/lib/esm/function/relational/largerEq.js +2 -2
- package/lib/esm/function/relational/smaller.js +2 -2
- package/lib/esm/function/relational/smallerEq.js +2 -2
- package/lib/esm/function/relational/unequal.js +2 -2
- package/lib/esm/function/set/setCartesian.js +1 -1
- package/lib/esm/function/set/setDifference.js +1 -1
- package/lib/esm/function/set/setDistinct.js +1 -1
- package/lib/esm/function/set/setIntersect.js +1 -1
- package/lib/esm/function/set/setIsSubset.js +1 -1
- package/lib/esm/function/set/setMultiplicity.js +1 -1
- package/lib/esm/function/set/setPowerset.js +1 -1
- package/lib/esm/function/set/setSize.js +1 -1
- package/lib/esm/function/set/setSymDifference.js +1 -1
- package/lib/esm/function/set/setUnion.js +1 -1
- package/lib/esm/function/special/erf.js +1 -1
- package/lib/esm/function/statistics/mad.js +1 -1
- package/lib/esm/function/statistics/max.js +1 -1
- package/lib/esm/function/statistics/mean.js +1 -1
- package/lib/esm/function/statistics/median.js +1 -1
- package/lib/esm/function/statistics/min.js +1 -1
- package/lib/esm/function/statistics/mode.js +1 -1
- package/lib/esm/function/statistics/prod.js +1 -1
- package/lib/esm/function/statistics/quantileSeq.js +1 -1
- package/lib/esm/function/statistics/std.js +1 -1
- package/lib/esm/function/statistics/sum.js +1 -1
- package/lib/esm/function/statistics/variance.js +1 -1
- package/lib/esm/function/string/bin.js +1 -1
- package/lib/esm/function/string/format.js +1 -1
- package/lib/esm/function/string/hex.js +1 -1
- package/lib/esm/function/string/oct.js +1 -1
- package/lib/esm/function/string/print.js +1 -1
- package/lib/esm/function/trigonometry/acos.js +1 -1
- package/lib/esm/function/trigonometry/acosh.js +1 -1
- package/lib/esm/function/trigonometry/acot.js +1 -1
- package/lib/esm/function/trigonometry/acoth.js +1 -1
- package/lib/esm/function/trigonometry/acsc.js +1 -1
- package/lib/esm/function/trigonometry/acsch.js +1 -1
- package/lib/esm/function/trigonometry/asec.js +1 -1
- package/lib/esm/function/trigonometry/asech.js +1 -1
- package/lib/esm/function/trigonometry/asin.js +1 -1
- package/lib/esm/function/trigonometry/asinh.js +1 -1
- package/lib/esm/function/trigonometry/atan.js +1 -1
- package/lib/esm/function/trigonometry/atan2.js +1 -1
- package/lib/esm/function/trigonometry/atanh.js +1 -1
- package/lib/esm/function/trigonometry/cos.js +1 -1
- package/lib/esm/function/trigonometry/cosh.js +1 -1
- package/lib/esm/function/trigonometry/cot.js +1 -1
- package/lib/esm/function/trigonometry/coth.js +1 -1
- package/lib/esm/function/trigonometry/csc.js +1 -1
- package/lib/esm/function/trigonometry/csch.js +1 -1
- package/lib/esm/function/trigonometry/sec.js +1 -1
- package/lib/esm/function/trigonometry/sech.js +1 -1
- package/lib/esm/function/trigonometry/sin.js +1 -1
- package/lib/esm/function/trigonometry/sinh.js +1 -1
- package/lib/esm/function/trigonometry/tan.js +1 -1
- package/lib/esm/function/trigonometry/tanh.js +1 -1
- package/lib/esm/function/unit/to.js +1 -1
- package/lib/esm/function/utils/clone.js +1 -1
- package/lib/esm/function/utils/hasNumericValue.js +1 -1
- package/lib/esm/function/utils/isInteger.js +1 -1
- package/lib/esm/function/utils/isNaN.js +1 -1
- package/lib/esm/function/utils/isNegative.js +1 -1
- package/lib/esm/function/utils/isNumeric.js +1 -1
- package/lib/esm/function/utils/isPositive.js +1 -1
- package/lib/esm/function/utils/isPrime.js +1 -1
- package/lib/esm/function/utils/isZero.js +1 -1
- package/lib/esm/function/utils/numeric.js +1 -1
- package/lib/esm/function/utils/typeOf.js +1 -1
- package/lib/esm/json/reviver.js +1 -1
- package/lib/esm/type/bignumber/BigNumber.js +1 -1
- package/lib/esm/type/bignumber/function/bignumber.js +1 -1
- package/lib/esm/type/boolean.js +1 -1
- package/lib/esm/type/chain/Chain.js +1 -1
- package/lib/esm/type/chain/function/chain.js +1 -1
- package/lib/esm/type/complex/function/complex.js +1 -1
- package/lib/esm/type/fraction/function/fraction.js +1 -1
- package/lib/esm/type/matrix/DenseMatrix.js +75 -1
- package/lib/esm/type/matrix/FibonacciHeap.js +1 -1
- package/lib/esm/type/matrix/ImmutableDenseMatrix.js +1 -1
- package/lib/esm/type/matrix/Matrix.js +10 -0
- package/lib/esm/type/matrix/MatrixIndex.js +1 -1
- package/lib/esm/type/matrix/Spa.js +1 -1
- package/lib/esm/type/matrix/SparseMatrix.js +37 -3
- package/lib/esm/type/matrix/function/index.js +1 -1
- package/lib/esm/type/matrix/function/matrix.js +3 -2
- package/lib/esm/type/matrix/function/sparse.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm01.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm02.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm03.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm04.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm05.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm06.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm07.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm08.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm09.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm10.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm11.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm12.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm13.js +1 -1
- package/lib/esm/type/matrix/utils/algorithm14.js +1 -1
- package/lib/esm/type/number.js +1 -1
- package/lib/esm/type/string.js +1 -1
- package/lib/esm/type/unit/Unit.js +4 -5
- package/lib/esm/type/unit/function/createUnit.js +1 -1
- package/lib/esm/type/unit/function/splitUnit.js +1 -1
- package/lib/esm/type/unit/function/unit.js +1 -1
- package/lib/esm/type/unit/physicalConstants.js +2 -2
- package/lib/esm/utils/array.js +1 -1
- package/lib/esm/utils/customs.js +10 -0
- package/lib/esm/utils/map.js +135 -0
- package/lib/esm/utils/scope.js +26 -0
- package/lib/esm/utils/snapshot.js +3 -4
- package/lib/esm/version.js +1 -1
- package/package.json +18 -9
@@ -1,5 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
6
|
+
|
3
7
|
Object.defineProperty(exports, "__esModule", {
|
4
8
|
value: true
|
5
9
|
});
|
@@ -7,6 +11,12 @@ exports.validateBundle = validateBundle;
|
|
7
11
|
exports.createSnapshotFromFactories = createSnapshotFromFactories;
|
8
12
|
exports.validateTypeOf = validateTypeOf;
|
9
13
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
15
|
+
|
16
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
17
|
+
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
19
|
+
|
10
20
|
var _assert = _interopRequireDefault(require("assert"));
|
11
21
|
|
12
22
|
var allIsFunctions = _interopRequireWildcard(require("./is.js"));
|
@@ -15,21 +25,13 @@ var _create = require("../core/create.js");
|
|
15
25
|
|
16
26
|
var _string = require("./string.js");
|
17
27
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
19
29
|
|
20
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null ||
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
21
31
|
|
22
|
-
function
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
23
33
|
|
24
|
-
function
|
25
|
-
|
26
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
27
|
-
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
29
|
-
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
31
|
-
|
32
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
33
35
|
|
34
36
|
function validateBundle(expectedBundleStructure, bundle) {
|
35
37
|
var originalWarn = console.warn;
|
@@ -227,11 +229,11 @@ function validateTypeOf(x) {
|
|
227
229
|
return 'Function';
|
228
230
|
}
|
229
231
|
|
230
|
-
if (
|
232
|
+
if ((0, _typeof2["default"])(x) === 'object') {
|
231
233
|
return 'Object';
|
232
234
|
}
|
233
235
|
|
234
|
-
return
|
236
|
+
return (0, _typeof2["default"])(x);
|
235
237
|
}
|
236
238
|
|
237
239
|
function traverse(obj) {
|
@@ -281,8 +283,7 @@ function get(object, path) {
|
|
281
283
|
|
282
284
|
|
283
285
|
function exclude(object, excludedProperties) {
|
284
|
-
var strippedObject =
|
285
|
-
|
286
|
+
var strippedObject = (0, _extends2["default"])({}, object);
|
286
287
|
excludedProperties.forEach(function (excludedProperty) {
|
287
288
|
delete strippedObject[excludedProperty];
|
288
289
|
});
|
package/lib/cjs/utils/string.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
4
6
|
value: true
|
5
7
|
});
|
@@ -9,14 +11,14 @@ exports.stringify = stringify;
|
|
9
11
|
exports.escape = escape;
|
10
12
|
exports.compareText = compareText;
|
11
13
|
|
14
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
15
|
+
|
12
16
|
var _is = require("./is.js");
|
13
17
|
|
14
18
|
var _number = require("./number.js");
|
15
19
|
|
16
20
|
var _formatter = require("./bignumber/formatter.js");
|
17
21
|
|
18
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
19
|
-
|
20
22
|
/**
|
21
23
|
* Check if a text ends with a certain string.
|
22
24
|
* @param {string} text
|
@@ -97,7 +99,7 @@ function format(value, options) {
|
|
97
99
|
return value.syntax ? String(value.syntax) : 'function';
|
98
100
|
}
|
99
101
|
|
100
|
-
if (value &&
|
102
|
+
if (value && (0, _typeof2["default"])(value) === 'object') {
|
101
103
|
if (typeof value.format === 'function') {
|
102
104
|
return value.format(options);
|
103
105
|
} else if (value && value.toString(options) !== {}.toString()) {
|
@@ -201,7 +203,7 @@ function formatArray(array, options) {
|
|
201
203
|
|
202
204
|
|
203
205
|
function looksLikeFraction(value) {
|
204
|
-
return value &&
|
206
|
+
return value && (0, _typeof2["default"])(value) === 'object' && typeof value.s === 'number' && typeof value.n === 'number' && typeof value.d === 'number' || false;
|
205
207
|
}
|
206
208
|
/**
|
207
209
|
* Compare two strings
|
package/lib/cjs/version.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.version = void 0;
|
7
|
-
var version = '9.
|
7
|
+
var version = '9.4.0'; // Note: This file is automatically generated when building math.js.
|
8
8
|
// Changes made in this file will be overwritten.
|
9
9
|
|
10
10
|
exports.version = version;
|
package/lib/esm/constants.js
CHANGED
@@ -5,35 +5,35 @@ import { pi, tau, e, phi } from './plain/number/index.js';
|
|
5
5
|
export var createTrue = /* #__PURE__ */factory('true', [], () => true);
|
6
6
|
export var createFalse = /* #__PURE__ */factory('false', [], () => false);
|
7
7
|
export var createNull = /* #__PURE__ */factory('null', [], () => null);
|
8
|
-
export var createInfinity = /* #__PURE__ */recreateFactory('Infinity', ['config', '?BigNumber'],
|
8
|
+
export var createInfinity = /* #__PURE__ */recreateFactory('Infinity', ['config', '?BigNumber'], _ref => {
|
9
9
|
var {
|
10
10
|
config,
|
11
11
|
BigNumber
|
12
12
|
} = _ref;
|
13
13
|
return config.number === 'BigNumber' ? new BigNumber(Infinity) : Infinity;
|
14
14
|
});
|
15
|
-
export var createNaN = /* #__PURE__ */recreateFactory('NaN', ['config', '?BigNumber'],
|
15
|
+
export var createNaN = /* #__PURE__ */recreateFactory('NaN', ['config', '?BigNumber'], _ref2 => {
|
16
16
|
var {
|
17
17
|
config,
|
18
18
|
BigNumber
|
19
19
|
} = _ref2;
|
20
20
|
return config.number === 'BigNumber' ? new BigNumber(NaN) : NaN;
|
21
21
|
});
|
22
|
-
export var createPi = /* #__PURE__ */recreateFactory('pi', ['config', '?BigNumber'],
|
22
|
+
export var createPi = /* #__PURE__ */recreateFactory('pi', ['config', '?BigNumber'], _ref3 => {
|
23
23
|
var {
|
24
24
|
config,
|
25
25
|
BigNumber
|
26
26
|
} = _ref3;
|
27
27
|
return config.number === 'BigNumber' ? createBigNumberPi(BigNumber) : pi;
|
28
28
|
});
|
29
|
-
export var createTau = /* #__PURE__ */recreateFactory('tau', ['config', '?BigNumber'],
|
29
|
+
export var createTau = /* #__PURE__ */recreateFactory('tau', ['config', '?BigNumber'], _ref4 => {
|
30
30
|
var {
|
31
31
|
config,
|
32
32
|
BigNumber
|
33
33
|
} = _ref4;
|
34
34
|
return config.number === 'BigNumber' ? createBigNumberTau(BigNumber) : tau;
|
35
35
|
});
|
36
|
-
export var createE = /* #__PURE__ */recreateFactory('e', ['config', '?BigNumber'],
|
36
|
+
export var createE = /* #__PURE__ */recreateFactory('e', ['config', '?BigNumber'], _ref5 => {
|
37
37
|
var {
|
38
38
|
config,
|
39
39
|
BigNumber
|
@@ -41,35 +41,35 @@ export var createE = /* #__PURE__ */recreateFactory('e', ['config', '?BigNumber'
|
|
41
41
|
return config.number === 'BigNumber' ? createBigNumberE(BigNumber) : e;
|
42
42
|
}); // golden ratio, (1+sqrt(5))/2
|
43
43
|
|
44
|
-
export var createPhi = /* #__PURE__ */recreateFactory('phi', ['config', '?BigNumber'],
|
44
|
+
export var createPhi = /* #__PURE__ */recreateFactory('phi', ['config', '?BigNumber'], _ref6 => {
|
45
45
|
var {
|
46
46
|
config,
|
47
47
|
BigNumber
|
48
48
|
} = _ref6;
|
49
49
|
return config.number === 'BigNumber' ? createBigNumberPhi(BigNumber) : phi;
|
50
50
|
});
|
51
|
-
export var createLN2 = /* #__PURE__ */recreateFactory('LN2', ['config', '?BigNumber'],
|
51
|
+
export var createLN2 = /* #__PURE__ */recreateFactory('LN2', ['config', '?BigNumber'], _ref7 => {
|
52
52
|
var {
|
53
53
|
config,
|
54
54
|
BigNumber
|
55
55
|
} = _ref7;
|
56
56
|
return config.number === 'BigNumber' ? new BigNumber(2).ln() : Math.LN2;
|
57
57
|
});
|
58
|
-
export var createLN10 = /* #__PURE__ */recreateFactory('LN10', ['config', '?BigNumber'],
|
58
|
+
export var createLN10 = /* #__PURE__ */recreateFactory('LN10', ['config', '?BigNumber'], _ref8 => {
|
59
59
|
var {
|
60
60
|
config,
|
61
61
|
BigNumber
|
62
62
|
} = _ref8;
|
63
63
|
return config.number === 'BigNumber' ? new BigNumber(10).ln() : Math.LN10;
|
64
64
|
});
|
65
|
-
export var createLOG2E = /* #__PURE__ */recreateFactory('LOG2E', ['config', '?BigNumber'],
|
65
|
+
export var createLOG2E = /* #__PURE__ */recreateFactory('LOG2E', ['config', '?BigNumber'], _ref9 => {
|
66
66
|
var {
|
67
67
|
config,
|
68
68
|
BigNumber
|
69
69
|
} = _ref9;
|
70
70
|
return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(2).ln()) : Math.LOG2E;
|
71
71
|
});
|
72
|
-
export var createLOG10E = /* #__PURE__ */recreateFactory('LOG10E', ['config', '?BigNumber'],
|
72
|
+
export var createLOG10E = /* #__PURE__ */recreateFactory('LOG10E', ['config', '?BigNumber'], _ref10 => {
|
73
73
|
var {
|
74
74
|
config,
|
75
75
|
BigNumber
|
@@ -77,34 +77,34 @@ export var createLOG10E = /* #__PURE__ */recreateFactory('LOG10E', ['config', '?
|
|
77
77
|
return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(10).ln()) : Math.LOG10E;
|
78
78
|
});
|
79
79
|
export var createSQRT1_2 = /* #__PURE__ */recreateFactory( // eslint-disable-line camelcase
|
80
|
-
'SQRT1_2', ['config', '?BigNumber'],
|
80
|
+
'SQRT1_2', ['config', '?BigNumber'], _ref11 => {
|
81
81
|
var {
|
82
82
|
config,
|
83
83
|
BigNumber
|
84
84
|
} = _ref11;
|
85
85
|
return config.number === 'BigNumber' ? new BigNumber('0.5').sqrt() : Math.SQRT1_2;
|
86
86
|
});
|
87
|
-
export var createSQRT2 = /* #__PURE__ */recreateFactory('SQRT2', ['config', '?BigNumber'],
|
87
|
+
export var createSQRT2 = /* #__PURE__ */recreateFactory('SQRT2', ['config', '?BigNumber'], _ref12 => {
|
88
88
|
var {
|
89
89
|
config,
|
90
90
|
BigNumber
|
91
91
|
} = _ref12;
|
92
92
|
return config.number === 'BigNumber' ? new BigNumber(2).sqrt() : Math.SQRT2;
|
93
93
|
});
|
94
|
-
export var createI = /* #__PURE__ */recreateFactory('i', ['Complex'],
|
94
|
+
export var createI = /* #__PURE__ */recreateFactory('i', ['Complex'], _ref13 => {
|
95
95
|
var {
|
96
96
|
Complex
|
97
97
|
} = _ref13;
|
98
98
|
return Complex.I;
|
99
99
|
}); // for backward compatibility with v5
|
100
100
|
|
101
|
-
export var createUppercasePi = /* #__PURE__ */factory('PI', ['pi'],
|
101
|
+
export var createUppercasePi = /* #__PURE__ */factory('PI', ['pi'], _ref14 => {
|
102
102
|
var {
|
103
103
|
pi
|
104
104
|
} = _ref14;
|
105
105
|
return pi;
|
106
106
|
});
|
107
|
-
export var createUppercaseE = /* #__PURE__ */factory('E', ['e'],
|
107
|
+
export var createUppercaseE = /* #__PURE__ */factory('E', ['e'], _ref15 => {
|
108
108
|
var {
|
109
109
|
e
|
110
110
|
} = _ref15;
|
package/lib/esm/core/create.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
3
2
|
import './../utils/polyfills.js';
|
4
3
|
import { deepFlatten, isLegacyFactory, values } from '../utils/object.js';
|
5
4
|
import * as emitter from './../utils/emitter.js';
|
@@ -38,7 +38,8 @@
|
|
38
38
|
import { isAccessorNode, isArray, isArrayNode, isAssignmentNode, isBigNumber, isBlockNode, isBoolean, isChain, isComplex, isConditionalNode, isConstantNode, isDate, isDenseMatrix, isFraction, isFunction, isFunctionAssignmentNode, isFunctionNode, isHelp, isIndex, isIndexNode, isMatrix, isNode, isNull, isNumber, isObject, isObjectNode, isOperatorNode, isParenthesisNode, isRange, isRangeNode, isRegExp, isResultSet, isSparseMatrix, isString, isSymbolNode, isUndefined, isUnit } from '../../utils/is.js';
|
39
39
|
import typedFunction from 'typed-function';
|
40
40
|
import { digits } from '../../utils/number.js';
|
41
|
-
import { factory } from '../../utils/factory.js';
|
41
|
+
import { factory } from '../../utils/factory.js';
|
42
|
+
import { isMap } from '../../utils/map.js'; // returns a new instance of typed-function
|
42
43
|
|
43
44
|
var _createTyped2 = function _createTyped() {
|
44
45
|
// initially, return the original instance of typed-function
|
@@ -177,6 +178,9 @@ export var createTyped = /* #__PURE__ */factory('typed', dependencies, function
|
|
177
178
|
}, {
|
178
179
|
name: 'SymbolNode',
|
179
180
|
test: isSymbolNode
|
181
|
+
}, {
|
182
|
+
name: 'Map',
|
183
|
+
test: isMap
|
180
184
|
}, {
|
181
185
|
name: 'Object',
|
182
186
|
test: isObject
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
3
2
|
import { DEFAULT_CONFIG } from '../core/config.js';
|
4
3
|
import { MATRIX_OPTIONS, NUMBER_OPTIONS } from '../core/function/config.js'; // create a read-only version of config
|
5
4
|
|
@@ -7,15 +7,32 @@ import { addDependencies } from './dependenciesAdd.generated.js';
|
|
7
7
|
import { addScalarDependencies } from './dependenciesAddScalar.generated.js';
|
8
8
|
import { atanDependencies } from './dependenciesAtan.generated.js';
|
9
9
|
import { bignumberDependencies } from './dependenciesBignumber.generated.js';
|
10
|
+
import { columnDependencies } from './dependenciesColumn.generated.js';
|
11
|
+
import { complexDependencies } from './dependenciesComplex.generated.js';
|
10
12
|
import { cosDependencies } from './dependenciesCos.generated.js';
|
13
|
+
import { diagDependencies } from './dependenciesDiag.generated.js';
|
14
|
+
import { divideScalarDependencies } from './dependenciesDivideScalar.generated.js';
|
11
15
|
import { equalDependencies } from './dependenciesEqual.generated.js';
|
16
|
+
import { flattenDependencies } from './dependenciesFlatten.generated.js';
|
17
|
+
import { imDependencies } from './dependenciesIm.generated.js';
|
12
18
|
import { invDependencies } from './dependenciesInv.generated.js';
|
19
|
+
import { largerDependencies } from './dependenciesLarger.generated.js';
|
20
|
+
import { log10Dependencies } from './dependenciesLog10.generated.js';
|
13
21
|
import { matrixDependencies } from './dependenciesMatrix.generated.js';
|
22
|
+
import { matrixFromColumnsDependencies } from './dependenciesMatrixFromColumns.generated.js';
|
14
23
|
import { multiplyDependencies } from './dependenciesMultiply.generated.js';
|
15
24
|
import { multiplyScalarDependencies } from './dependenciesMultiplyScalar.generated.js';
|
25
|
+
import { numberDependencies } from './dependenciesNumber.generated.js';
|
26
|
+
import { qrDependencies } from './dependenciesQr.generated.js';
|
27
|
+
import { reDependencies } from './dependenciesRe.generated.js';
|
28
|
+
import { roundDependencies } from './dependenciesRound.generated.js';
|
16
29
|
import { sinDependencies } from './dependenciesSin.generated.js';
|
30
|
+
import { smallerDependencies } from './dependenciesSmaller.generated.js';
|
31
|
+
import { sqrtDependencies } from './dependenciesSqrt.generated.js';
|
17
32
|
import { subtractDependencies } from './dependenciesSubtract.generated.js';
|
33
|
+
import { transposeDependencies } from './dependenciesTranspose.generated.js';
|
18
34
|
import { typedDependencies } from './dependenciesTyped.generated.js';
|
35
|
+
import { usolveAllDependencies } from './dependenciesUsolveAll.generated.js';
|
19
36
|
import { createEigs } from '../../factoriesAny.js';
|
20
37
|
export var eigsDependencies = {
|
21
38
|
absDependencies,
|
@@ -23,14 +40,31 @@ export var eigsDependencies = {
|
|
23
40
|
addScalarDependencies,
|
24
41
|
atanDependencies,
|
25
42
|
bignumberDependencies,
|
43
|
+
columnDependencies,
|
44
|
+
complexDependencies,
|
26
45
|
cosDependencies,
|
46
|
+
diagDependencies,
|
47
|
+
divideScalarDependencies,
|
27
48
|
equalDependencies,
|
49
|
+
flattenDependencies,
|
50
|
+
imDependencies,
|
28
51
|
invDependencies,
|
52
|
+
largerDependencies,
|
53
|
+
log10Dependencies,
|
29
54
|
matrixDependencies,
|
55
|
+
matrixFromColumnsDependencies,
|
30
56
|
multiplyDependencies,
|
31
57
|
multiplyScalarDependencies,
|
58
|
+
numberDependencies,
|
59
|
+
qrDependencies,
|
60
|
+
reDependencies,
|
61
|
+
roundDependencies,
|
32
62
|
sinDependencies,
|
63
|
+
smallerDependencies,
|
64
|
+
sqrtDependencies,
|
33
65
|
subtractDependencies,
|
66
|
+
transposeDependencies,
|
34
67
|
typedDependencies,
|
68
|
+
usolveAllDependencies,
|
35
69
|
createEigs
|
36
70
|
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* THIS FILE IS AUTO-GENERATED
|
3
|
+
* DON'T MAKE CHANGES HERE
|
4
|
+
*/
|
5
|
+
import { flattenDependencies } from './dependenciesFlatten.generated.js';
|
6
|
+
import { matrixDependencies } from './dependenciesMatrix.generated.js';
|
7
|
+
import { sizeDependencies } from './dependenciesSize.generated.js';
|
8
|
+
import { typedDependencies } from './dependenciesTyped.generated.js';
|
9
|
+
import { createMatrixFromColumns } from '../../factoriesAny.js';
|
10
|
+
export var matrixFromColumnsDependencies = {
|
11
|
+
flattenDependencies,
|
12
|
+
matrixDependencies,
|
13
|
+
sizeDependencies,
|
14
|
+
typedDependencies,
|
15
|
+
createMatrixFromColumns
|
16
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* THIS FILE IS AUTO-GENERATED
|
3
|
+
* DON'T MAKE CHANGES HERE
|
4
|
+
*/
|
5
|
+
import { isZeroDependencies } from './dependenciesIsZero.generated.js';
|
6
|
+
import { matrixDependencies } from './dependenciesMatrix.generated.js';
|
7
|
+
import { typedDependencies } from './dependenciesTyped.generated.js';
|
8
|
+
import { createMatrixFromFunction } from '../../factoriesAny.js';
|
9
|
+
export var matrixFromFunctionDependencies = {
|
10
|
+
isZeroDependencies,
|
11
|
+
matrixDependencies,
|
12
|
+
typedDependencies,
|
13
|
+
createMatrixFromFunction
|
14
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* THIS FILE IS AUTO-GENERATED
|
3
|
+
* DON'T MAKE CHANGES HERE
|
4
|
+
*/
|
5
|
+
import { flattenDependencies } from './dependenciesFlatten.generated.js';
|
6
|
+
import { matrixDependencies } from './dependenciesMatrix.generated.js';
|
7
|
+
import { sizeDependencies } from './dependenciesSize.generated.js';
|
8
|
+
import { typedDependencies } from './dependenciesTyped.generated.js';
|
9
|
+
import { createMatrixFromRows } from '../../factoriesAny.js';
|
10
|
+
export var matrixFromRowsDependencies = {
|
11
|
+
flattenDependencies,
|
12
|
+
matrixDependencies,
|
13
|
+
sizeDependencies,
|
14
|
+
typedDependencies,
|
15
|
+
createMatrixFromRows
|
16
|
+
};
|
@@ -28,6 +28,9 @@ export { bignumberDependencies } from './dependenciesAny/dependenciesBignumber.g
|
|
28
28
|
export { complexDependencies } from './dependenciesAny/dependenciesComplex.generated.js';
|
29
29
|
export { fractionDependencies } from './dependenciesAny/dependenciesFraction.generated.js';
|
30
30
|
export { matrixDependencies } from './dependenciesAny/dependenciesMatrix.generated.js';
|
31
|
+
export { matrixFromFunctionDependencies } from './dependenciesAny/dependenciesMatrixFromFunction.generated.js';
|
32
|
+
export { matrixFromRowsDependencies } from './dependenciesAny/dependenciesMatrixFromRows.generated.js';
|
33
|
+
export { matrixFromColumnsDependencies } from './dependenciesAny/dependenciesMatrixFromColumns.generated.js';
|
31
34
|
export { splitUnitDependencies } from './dependenciesAny/dependenciesSplitUnit.generated.js';
|
32
35
|
export { unaryMinusDependencies } from './dependenciesAny/dependenciesUnaryMinus.generated.js';
|
33
36
|
export { unaryPlusDependencies } from './dependenciesAny/dependenciesUnaryPlus.generated.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
|
3
3
|
/**
|
4
4
|
* THIS FILE IS AUTO-GENERATED
|
@@ -7,7 +7,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
7
7
|
import { config } from './configReadonly.js';
|
8
8
|
import { createNode, createArrayNode, createBlockNode, createConstantNode, createObjectNode, createParenthesisNode, createRelationalNode, createChainClass, createReviver, createConditionalNode, createOperatorNode, createRangeNode, createFunctionAssignmentNode, createChain, createAccessorNode, createIndexNode, createAssignmentNode, createSymbolNode, createFunctionNode, createParse, createEvaluate, createHelpClass, createParserClass, createHelp, createCompile, createSimplify, createRationalize, createParser, createDerivative, createApplyTransform, createFilterTransform, createMapTransform, createForEachTransform, createSubsetTransform, createIndexTransform, createConcatTransform, createMaxTransform, createMinTransform, createSumTransform, createColumnTransform, createRangeTransform, createDiffTransform, createRowTransform, createMeanTransform, createVarianceTransform, createStdTransform } from '../factoriesAny.js';
|
9
9
|
import { ResultSet, Complex, Range, _false, _null, _true, BigNumber, Matrix, replacer, i, LN10, LOG10E, _NaN, pi, SQRT1_2 // eslint-disable-line camelcase
|
10
|
-
, tau, efimovFactor, fineStructure, sackurTetrode, weakMixingAngle, Fraction, e, _Infinity, LOG2E, version, DenseMatrix, phi, typed, isInteger, isNumeric, isPositive, isNaN, equalScalar, number, boolean, complex, splitUnit, unaryPlus, apply, cube, expm1, log10, multiplyScalar, sign, square, bitNot, arg, im, not, filter, forEach, map, erf, format, oct, print, isPrime, acos, acot, acsc, asec, asin, atan, atanh, cosh, coth, csch, sech, sinh, tanh, combinations, pickRandom, randomInt, LN2, clone, hasNumericValue, typeOf, string, fraction, unaryMinus, addScalar, exp, log2, sqrt, conj, getMatrixDataType, mode, bin, acosh, acsch, asinh, cos, csc, sin, combinationsWithRep, random, SQRT2, isNegative, SparseMatrix, matrix,
|
10
|
+
, tau, efimovFactor, fineStructure, sackurTetrode, weakMixingAngle, Fraction, e, _Infinity, LOG2E, version, DenseMatrix, phi, typed, isInteger, isNumeric, isPositive, isNaN, equalScalar, number, boolean, complex, splitUnit, unaryPlus, apply, cube, expm1, log10, multiplyScalar, sign, square, bitNot, arg, im, not, filter, forEach, map, erf, format, oct, print, isPrime, acos, acot, acsc, asec, asin, atan, atanh, cosh, coth, csch, sech, sinh, tanh, combinations, pickRandom, randomInt, LN2, clone, hasNumericValue, typeOf, string, fraction, unaryMinus, addScalar, exp, log2, sqrt, conj, getMatrixDataType, mode, bin, acosh, acsch, asinh, cos, csc, sin, combinationsWithRep, random, SQRT2, isNegative, SparseMatrix, matrix, abs, gcd, mod, nthRoot, xgcd, bitAnd, bitXor, or, concat, diag, identity, ones, reshape, size, subset, zeros, hex, round, leftShift, rightLogShift, compare, compareText, smaller, larger, unequal, ImmutableDenseMatrix, FibonacciHeap, sparse, acoth, atan2, sec, add, dot, composition, isZero, matrixFromFunction, cbrt, floor, multiply, dotMultiply, re, flatten, resize, squeeze, to, pow, dotPow, rightArithShift, compareNatural, equalText, largerEq, partitionSelect, Index, asech, tan, setDifference, setIntersect, setMultiplicity, setSize, trace, quantileSeq, gamma, bignumber, matrixFromColumns, lcm, bitOr, kron, transpose, numeric, and, smallerEq, sort, min, cot, setDistinct, setPowerset, index, sum, factorial, permutations, matrixFromRows, subtract, cross, range, row, prod, equal, max, setCartesian, setSymDifference, ceil, xor, count, ctranspose, deepEqual, setIsSubset, fix, diff, divideScalar, nthRoots, lsolve, lsolveAll, Spa, setUnion, lup, slu, det, distance, stirlingS2, catalan, column, log, dotDivide, usolveAll, hypot, qr, inv, expm, divide, mean, variance, kldivergence, bellNumbers, log1p, Unit, createUnit, eigs, intersect, std, atomicMass, bohrMagneton, boltzmann, conductanceQuantum, deuteronMass, electronMass, faraday, firstRadiation, gravitationConstant, hartreeEnergy, klitzing, magneticConstant, molarMass, molarPlanckConstant, neutronMass, planckCharge, planckLength, planckTemperature, protonMass, reducedPlanckConstant, secondRadiation, stefanBoltzmann, vacuumImpedance, usolve, norm, lusolve, sqrtm, multinomial, avogadro, classicalElectronRadius, electricConstant, fermiCoupling, gravity, loschmidt, molarMassC12, nuclearMagneton, planckMass, quantumOfCirculation, speedOfLight, wienDisplacement, rotationMatrix, median, bohrRadius, elementaryCharge, inverseConductanceQuantum, molarVolume, planckTime, thomsonCrossSection, rotate, mad, coulomb, magneticFluxQuantum, rydberg, unit, gasConstant, planckConstant } from './pureFunctionsAny.generated.js';
|
11
11
|
var math = {}; // NOT pure!
|
12
12
|
|
13
13
|
var mathWithTransform = {}; // NOT pure!
|
@@ -279,7 +279,7 @@ _extends(math, {
|
|
279
279
|
SQRT2,
|
280
280
|
isNegative,
|
281
281
|
matrix,
|
282
|
-
|
282
|
+
abs,
|
283
283
|
gcd,
|
284
284
|
mod,
|
285
285
|
nthRoot,
|
@@ -312,7 +312,8 @@ _extends(math, {
|
|
312
312
|
dot,
|
313
313
|
composition,
|
314
314
|
isZero,
|
315
|
-
|
315
|
+
matrixFromFunction,
|
316
|
+
cbrt,
|
316
317
|
floor,
|
317
318
|
multiply,
|
318
319
|
dotMultiply,
|
@@ -338,6 +339,7 @@ _extends(math, {
|
|
338
339
|
quantileSeq,
|
339
340
|
gamma,
|
340
341
|
bignumber,
|
342
|
+
matrixFromColumns,
|
341
343
|
lcm,
|
342
344
|
bitOr,
|
343
345
|
kron,
|
@@ -354,7 +356,7 @@ _extends(math, {
|
|
354
356
|
sum,
|
355
357
|
factorial,
|
356
358
|
permutations,
|
357
|
-
|
359
|
+
matrixFromRows,
|
358
360
|
subtract,
|
359
361
|
cross,
|
360
362
|
range,
|
@@ -364,13 +366,14 @@ _extends(math, {
|
|
364
366
|
max,
|
365
367
|
setCartesian,
|
366
368
|
setSymDifference,
|
367
|
-
|
368
|
-
|
369
|
-
|
369
|
+
ceil,
|
370
|
+
xor,
|
371
|
+
count,
|
370
372
|
ctranspose,
|
371
373
|
deepEqual,
|
372
374
|
setIsSubset,
|
373
|
-
|
375
|
+
fix,
|
376
|
+
diff,
|
374
377
|
divideScalar,
|
375
378
|
nthRoots,
|
376
379
|
lsolve,
|
@@ -382,7 +385,7 @@ _extends(math, {
|
|
382
385
|
distance,
|
383
386
|
stirlingS2,
|
384
387
|
catalan,
|
385
|
-
|
388
|
+
column,
|
386
389
|
log,
|
387
390
|
dotDivide,
|
388
391
|
usolveAll,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
|
3
3
|
/**
|
4
4
|
* THIS FILE IS AUTO-GENERATED
|