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
package/lib/cjs/core/create.js
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
6
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
6
8
|
value: true
|
7
9
|
});
|
8
10
|
exports.create = create;
|
9
11
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
13
|
+
|
10
14
|
require("./../utils/polyfills.js");
|
11
15
|
|
12
16
|
var _object = require("../utils/object.js");
|
@@ -29,11 +33,9 @@ var _IndexError = require("../error/IndexError.js");
|
|
29
33
|
|
30
34
|
var _config2 = require("./config.js");
|
31
35
|
|
32
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
36
|
+
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); }
|
33
37
|
|
34
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
35
|
-
|
36
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(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; }
|
37
39
|
|
38
40
|
/**
|
39
41
|
* Create a mathjs instance from given factory functions and optionally config
|
@@ -75,8 +77,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
75
77
|
* - `on`, `off`, `once`, `emit` for events
|
76
78
|
*/
|
77
79
|
function create(factories, config) {
|
78
|
-
var configInternal =
|
79
|
-
|
80
|
+
var configInternal = (0, _extends2["default"])({}, _config2.DEFAULT_CONFIG, config); // simple test for ES5 support
|
80
81
|
|
81
82
|
if (typeof Object.create !== 'function') {
|
82
83
|
throw new Error('ES5 not supported by this JavaScript engine. ' + 'Please load the es5-shim and es5-sham library for compatibility.');
|
@@ -1,10 +1,16 @@
|
|
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
|
});
|
6
8
|
exports.importFactory = importFactory;
|
7
9
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
+
|
12
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
13
|
+
|
8
14
|
var _is = require("../../utils/is.js");
|
9
15
|
|
10
16
|
var _factory = require("../../utils/factory.js");
|
@@ -15,10 +21,6 @@ var _array = require("../../utils/array.js");
|
|
15
21
|
|
16
22
|
var _ArgumentsError = require("../../error/ArgumentsError.js");
|
17
23
|
|
18
|
-
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; }
|
19
|
-
|
20
|
-
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); }
|
21
|
-
|
22
24
|
function importFactory(typed, load, math, importedFactories) {
|
23
25
|
/**
|
24
26
|
* Import functions from an object or a module.
|
@@ -91,7 +93,7 @@ function importFactory(typed, load, math, importedFactories) {
|
|
91
93
|
value.forEach(function (item) {
|
92
94
|
return flattenImports(flatValues, item);
|
93
95
|
});
|
94
|
-
} else if (
|
96
|
+
} else if ((0, _typeof2["default"])(value) === 'object') {
|
95
97
|
for (var _name in value) {
|
96
98
|
if ((0, _object.hasOwnProperty)(value, _name)) {
|
97
99
|
flattenImports(flatValues, value[_name], _name);
|
@@ -154,7 +156,7 @@ function importFactory(typed, load, math, importedFactories) {
|
|
154
156
|
|
155
157
|
|
156
158
|
if (hasTypedFunctionSignature(value)) {
|
157
|
-
value = typed(name,
|
159
|
+
value = typed(name, (0, _defineProperty2["default"])({}, value.signature, value));
|
158
160
|
}
|
159
161
|
|
160
162
|
if (isTypedFunction(math[name]) && isTypedFunction(value)) {
|
@@ -359,7 +361,7 @@ function importFactory(typed, load, math, importedFactories) {
|
|
359
361
|
|
360
362
|
|
361
363
|
function isTypedFunction(fn) {
|
362
|
-
return typeof fn === 'function' &&
|
364
|
+
return typeof fn === 'function' && (0, _typeof2["default"])(fn.signatures) === 'object';
|
363
365
|
}
|
364
366
|
|
365
367
|
function hasTypedFunctionSignature(fn) {
|
@@ -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
|
});
|
@@ -13,7 +15,7 @@ var _number = require("../../utils/number.js");
|
|
13
15
|
|
14
16
|
var _factory = require("../../utils/factory.js");
|
15
17
|
|
16
|
-
|
18
|
+
var _map = require("../../utils/map.js");
|
17
19
|
|
18
20
|
/**
|
19
21
|
* Create a typed-function which checks the types of the arguments and
|
@@ -188,6 +190,9 @@ var createTyped = /* #__PURE__ */(0, _factory.factory)('typed', dependencies, fu
|
|
188
190
|
}, {
|
189
191
|
name: 'SymbolNode',
|
190
192
|
test: _is.isSymbolNode
|
193
|
+
}, {
|
194
|
+
name: 'Map',
|
195
|
+
test: _map.isMap
|
191
196
|
}, {
|
192
197
|
name: 'Object',
|
193
198
|
test: _is.isObject
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
4
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
@@ -11,9 +11,9 @@ var all = _interopRequireWildcard(require("./factoriesAny.js"));
|
|
11
11
|
|
12
12
|
var _create = require("./core/create.js");
|
13
13
|
|
14
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
14
|
+
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); }
|
15
15
|
|
16
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(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; }
|
17
17
|
|
18
18
|
var _default = (0, _create.create)(all);
|
19
19
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
4
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
@@ -9,9 +9,9 @@ exports.all = void 0;
|
|
9
9
|
|
10
10
|
var allFactories = _interopRequireWildcard(require("../factoriesAny.js"));
|
11
11
|
|
12
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
12
|
+
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); }
|
13
13
|
|
14
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(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; }
|
15
15
|
|
16
16
|
// creating all factories here in a separate file is needed to get tree-shaking working
|
17
17
|
var all = allFactories;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
4
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
@@ -9,9 +9,9 @@ exports.all = void 0;
|
|
9
9
|
|
10
10
|
var allFactories = _interopRequireWildcard(require("../factoriesNumber.js"));
|
11
11
|
|
12
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
12
|
+
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); }
|
13
13
|
|
14
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(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; }
|
15
15
|
|
16
16
|
// creating all factories here in a separate file is needed to get tree-shaking working
|
17
17
|
var all = allFactories;
|
@@ -1,16 +1,18 @@
|
|
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
|
});
|
6
8
|
exports.config = void 0;
|
7
9
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
+
|
8
12
|
var _config = require("../core/config.js");
|
9
13
|
|
10
14
|
var _config2 = require("../core/function/config.js");
|
11
15
|
|
12
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
13
|
-
|
14
16
|
// create a read-only version of config
|
15
17
|
var config = /* #__PURE__ */function config(options) {
|
16
18
|
if (options) {
|
@@ -21,8 +23,7 @@ var config = /* #__PURE__ */function config(options) {
|
|
21
23
|
};
|
22
24
|
|
23
25
|
exports.config = config;
|
24
|
-
|
25
|
-
_extends(config, _config.DEFAULT_CONFIG, {
|
26
|
+
(0, _extends2["default"])(config, _config.DEFAULT_CONFIG, {
|
26
27
|
MATRIX_OPTIONS: _config2.MATRIX_OPTIONS,
|
27
28
|
NUMBER_OPTIONS: _config2.NUMBER_OPTIONS
|
28
29
|
});
|
@@ -15,24 +15,58 @@ var _dependenciesAtanGenerated = require("./dependenciesAtan.generated.js");
|
|
15
15
|
|
16
16
|
var _dependenciesBignumberGenerated = require("./dependenciesBignumber.generated.js");
|
17
17
|
|
18
|
+
var _dependenciesColumnGenerated = require("./dependenciesColumn.generated.js");
|
19
|
+
|
20
|
+
var _dependenciesComplexGenerated = require("./dependenciesComplex.generated.js");
|
21
|
+
|
18
22
|
var _dependenciesCosGenerated = require("./dependenciesCos.generated.js");
|
19
23
|
|
24
|
+
var _dependenciesDiagGenerated = require("./dependenciesDiag.generated.js");
|
25
|
+
|
26
|
+
var _dependenciesDivideScalarGenerated = require("./dependenciesDivideScalar.generated.js");
|
27
|
+
|
20
28
|
var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
|
21
29
|
|
30
|
+
var _dependenciesFlattenGenerated = require("./dependenciesFlatten.generated.js");
|
31
|
+
|
32
|
+
var _dependenciesImGenerated = require("./dependenciesIm.generated.js");
|
33
|
+
|
22
34
|
var _dependenciesInvGenerated = require("./dependenciesInv.generated.js");
|
23
35
|
|
36
|
+
var _dependenciesLargerGenerated = require("./dependenciesLarger.generated.js");
|
37
|
+
|
38
|
+
var _dependenciesLog10Generated = require("./dependenciesLog10.generated.js");
|
39
|
+
|
24
40
|
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
25
41
|
|
42
|
+
var _dependenciesMatrixFromColumnsGenerated = require("./dependenciesMatrixFromColumns.generated.js");
|
43
|
+
|
26
44
|
var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
|
27
45
|
|
28
46
|
var _dependenciesMultiplyScalarGenerated = require("./dependenciesMultiplyScalar.generated.js");
|
29
47
|
|
48
|
+
var _dependenciesNumberGenerated = require("./dependenciesNumber.generated.js");
|
49
|
+
|
50
|
+
var _dependenciesQrGenerated = require("./dependenciesQr.generated.js");
|
51
|
+
|
52
|
+
var _dependenciesReGenerated = require("./dependenciesRe.generated.js");
|
53
|
+
|
54
|
+
var _dependenciesRoundGenerated = require("./dependenciesRound.generated.js");
|
55
|
+
|
30
56
|
var _dependenciesSinGenerated = require("./dependenciesSin.generated.js");
|
31
57
|
|
58
|
+
var _dependenciesSmallerGenerated = require("./dependenciesSmaller.generated.js");
|
59
|
+
|
60
|
+
var _dependenciesSqrtGenerated = require("./dependenciesSqrt.generated.js");
|
61
|
+
|
32
62
|
var _dependenciesSubtractGenerated = require("./dependenciesSubtract.generated.js");
|
33
63
|
|
64
|
+
var _dependenciesTransposeGenerated = require("./dependenciesTranspose.generated.js");
|
65
|
+
|
34
66
|
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
35
67
|
|
68
|
+
var _dependenciesUsolveAllGenerated = require("./dependenciesUsolveAll.generated.js");
|
69
|
+
|
36
70
|
var _factoriesAny = require("../../factoriesAny.js");
|
37
71
|
|
38
72
|
/**
|
@@ -45,15 +79,32 @@ var eigsDependencies = {
|
|
45
79
|
addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,
|
46
80
|
atanDependencies: _dependenciesAtanGenerated.atanDependencies,
|
47
81
|
bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,
|
82
|
+
columnDependencies: _dependenciesColumnGenerated.columnDependencies,
|
83
|
+
complexDependencies: _dependenciesComplexGenerated.complexDependencies,
|
48
84
|
cosDependencies: _dependenciesCosGenerated.cosDependencies,
|
85
|
+
diagDependencies: _dependenciesDiagGenerated.diagDependencies,
|
86
|
+
divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,
|
49
87
|
equalDependencies: _dependenciesEqualGenerated.equalDependencies,
|
88
|
+
flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,
|
89
|
+
imDependencies: _dependenciesImGenerated.imDependencies,
|
50
90
|
invDependencies: _dependenciesInvGenerated.invDependencies,
|
91
|
+
largerDependencies: _dependenciesLargerGenerated.largerDependencies,
|
92
|
+
log10Dependencies: _dependenciesLog10Generated.log10Dependencies,
|
51
93
|
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
94
|
+
matrixFromColumnsDependencies: _dependenciesMatrixFromColumnsGenerated.matrixFromColumnsDependencies,
|
52
95
|
multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
|
53
96
|
multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,
|
97
|
+
numberDependencies: _dependenciesNumberGenerated.numberDependencies,
|
98
|
+
qrDependencies: _dependenciesQrGenerated.qrDependencies,
|
99
|
+
reDependencies: _dependenciesReGenerated.reDependencies,
|
100
|
+
roundDependencies: _dependenciesRoundGenerated.roundDependencies,
|
54
101
|
sinDependencies: _dependenciesSinGenerated.sinDependencies,
|
102
|
+
smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,
|
103
|
+
sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,
|
55
104
|
subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,
|
105
|
+
transposeDependencies: _dependenciesTransposeGenerated.transposeDependencies,
|
56
106
|
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
107
|
+
usolveAllDependencies: _dependenciesUsolveAllGenerated.usolveAllDependencies,
|
57
108
|
createEigs: _factoriesAny.createEigs
|
58
109
|
};
|
59
110
|
exports.eigsDependencies = eigsDependencies;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.matrixFromColumnsDependencies = void 0;
|
7
|
+
|
8
|
+
var _dependenciesFlattenGenerated = require("./dependenciesFlatten.generated.js");
|
9
|
+
|
10
|
+
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
11
|
+
|
12
|
+
var _dependenciesSizeGenerated = require("./dependenciesSize.generated.js");
|
13
|
+
|
14
|
+
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
15
|
+
|
16
|
+
var _factoriesAny = require("../../factoriesAny.js");
|
17
|
+
|
18
|
+
/**
|
19
|
+
* THIS FILE IS AUTO-GENERATED
|
20
|
+
* DON'T MAKE CHANGES HERE
|
21
|
+
*/
|
22
|
+
var matrixFromColumnsDependencies = {
|
23
|
+
flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,
|
24
|
+
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
25
|
+
sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,
|
26
|
+
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
27
|
+
createMatrixFromColumns: _factoriesAny.createMatrixFromColumns
|
28
|
+
};
|
29
|
+
exports.matrixFromColumnsDependencies = matrixFromColumnsDependencies;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.matrixFromFunctionDependencies = void 0;
|
7
|
+
|
8
|
+
var _dependenciesIsZeroGenerated = require("./dependenciesIsZero.generated.js");
|
9
|
+
|
10
|
+
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
11
|
+
|
12
|
+
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
13
|
+
|
14
|
+
var _factoriesAny = require("../../factoriesAny.js");
|
15
|
+
|
16
|
+
/**
|
17
|
+
* THIS FILE IS AUTO-GENERATED
|
18
|
+
* DON'T MAKE CHANGES HERE
|
19
|
+
*/
|
20
|
+
var matrixFromFunctionDependencies = {
|
21
|
+
isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,
|
22
|
+
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
23
|
+
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
24
|
+
createMatrixFromFunction: _factoriesAny.createMatrixFromFunction
|
25
|
+
};
|
26
|
+
exports.matrixFromFunctionDependencies = matrixFromFunctionDependencies;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.matrixFromRowsDependencies = void 0;
|
7
|
+
|
8
|
+
var _dependenciesFlattenGenerated = require("./dependenciesFlatten.generated.js");
|
9
|
+
|
10
|
+
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
11
|
+
|
12
|
+
var _dependenciesSizeGenerated = require("./dependenciesSize.generated.js");
|
13
|
+
|
14
|
+
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
15
|
+
|
16
|
+
var _factoriesAny = require("../../factoriesAny.js");
|
17
|
+
|
18
|
+
/**
|
19
|
+
* THIS FILE IS AUTO-GENERATED
|
20
|
+
* DON'T MAKE CHANGES HERE
|
21
|
+
*/
|
22
|
+
var matrixFromRowsDependencies = {
|
23
|
+
flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,
|
24
|
+
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
25
|
+
sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,
|
26
|
+
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
27
|
+
createMatrixFromRows: _factoriesAny.createMatrixFromRows
|
28
|
+
};
|
29
|
+
exports.matrixFromRowsDependencies = matrixFromRowsDependencies;
|
@@ -159,6 +159,24 @@ Object.defineProperty(exports, "matrixDependencies", {
|
|
159
159
|
return _dependenciesMatrixGenerated.matrixDependencies;
|
160
160
|
}
|
161
161
|
});
|
162
|
+
Object.defineProperty(exports, "matrixFromFunctionDependencies", {
|
163
|
+
enumerable: true,
|
164
|
+
get: function get() {
|
165
|
+
return _dependenciesMatrixFromFunctionGenerated.matrixFromFunctionDependencies;
|
166
|
+
}
|
167
|
+
});
|
168
|
+
Object.defineProperty(exports, "matrixFromRowsDependencies", {
|
169
|
+
enumerable: true,
|
170
|
+
get: function get() {
|
171
|
+
return _dependenciesMatrixFromRowsGenerated.matrixFromRowsDependencies;
|
172
|
+
}
|
173
|
+
});
|
174
|
+
Object.defineProperty(exports, "matrixFromColumnsDependencies", {
|
175
|
+
enumerable: true,
|
176
|
+
get: function get() {
|
177
|
+
return _dependenciesMatrixFromColumnsGenerated.matrixFromColumnsDependencies;
|
178
|
+
}
|
179
|
+
});
|
162
180
|
Object.defineProperty(exports, "splitUnitDependencies", {
|
163
181
|
enumerable: true,
|
164
182
|
get: function get() {
|
@@ -2042,6 +2060,12 @@ var _dependenciesFractionGenerated = require("./dependenciesAny/dependenciesFrac
|
|
2042
2060
|
|
2043
2061
|
var _dependenciesMatrixGenerated = require("./dependenciesAny/dependenciesMatrix.generated.js");
|
2044
2062
|
|
2063
|
+
var _dependenciesMatrixFromFunctionGenerated = require("./dependenciesAny/dependenciesMatrixFromFunction.generated.js");
|
2064
|
+
|
2065
|
+
var _dependenciesMatrixFromRowsGenerated = require("./dependenciesAny/dependenciesMatrixFromRows.generated.js");
|
2066
|
+
|
2067
|
+
var _dependenciesMatrixFromColumnsGenerated = require("./dependenciesAny/dependenciesMatrixFromColumns.generated.js");
|
2068
|
+
|
2045
2069
|
var _dependenciesSplitUnitGenerated = require("./dependenciesAny/dependenciesSplitUnit.generated.js");
|
2046
2070
|
|
2047
2071
|
var _dependenciesUnaryMinusGenerated = require("./dependenciesAny/dependenciesUnaryMinus.generated.js");
|
@@ -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
|
});
|
@@ -11,6 +13,8 @@ Object.defineProperty(exports, "docs", {
|
|
11
13
|
});
|
12
14
|
exports.derivative = exports.parser = exports.rationalize = exports.simplify = exports.compile = exports.help = exports.Parser = exports.Help = exports.evaluate = exports.parse = exports.FunctionNode = exports.SymbolNode = exports.AssignmentNode = exports.IndexNode = exports.AccessorNode = exports.chain = exports.FunctionAssignmentNode = exports.RangeNode = exports.OperatorNode = exports.ConditionalNode = exports.reviver = exports.Chain = exports.RelationalNode = exports.ParenthesisNode = exports.ObjectNode = exports.ConstantNode = exports.BlockNode = exports.ArrayNode = exports.Node = void 0;
|
13
15
|
|
16
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
17
|
+
|
14
18
|
var _configReadonly = require("./configReadonly.js");
|
15
19
|
|
16
20
|
var _factoriesAny = require("../factoriesAny.js");
|
@@ -19,8 +23,10 @@ var _pureFunctionsAnyGenerated = require("./pureFunctionsAny.generated.js");
|
|
19
23
|
|
20
24
|
var _embeddedDocs = require("../expression/embeddedDocs/embeddedDocs.js");
|
21
25
|
|
22
|
-
|
23
|
-
|
26
|
+
/**
|
27
|
+
* THIS FILE IS AUTO-GENERATED
|
28
|
+
* DON'T MAKE CHANGES HERE
|
29
|
+
*/
|
24
30
|
var math = {}; // NOT pure!
|
25
31
|
|
26
32
|
var mathWithTransform = {}; // NOT pure!
|
@@ -223,8 +229,7 @@ var derivative = (0, _factoriesAny.createDerivative)({
|
|
223
229
|
typed: _pureFunctionsAnyGenerated.typed
|
224
230
|
});
|
225
231
|
exports.derivative = derivative;
|
226
|
-
|
227
|
-
_extends(math, {
|
232
|
+
(0, _extends2["default"])(math, {
|
228
233
|
reviver: reviver,
|
229
234
|
"false": _pureFunctionsAnyGenerated._false,
|
230
235
|
"null": _pureFunctionsAnyGenerated._null,
|
@@ -321,7 +326,7 @@ _extends(math, {
|
|
321
326
|
SQRT2: _pureFunctionsAnyGenerated.SQRT2,
|
322
327
|
isNegative: _pureFunctionsAnyGenerated.isNegative,
|
323
328
|
matrix: _pureFunctionsAnyGenerated.matrix,
|
324
|
-
|
329
|
+
abs: _pureFunctionsAnyGenerated.abs,
|
325
330
|
gcd: _pureFunctionsAnyGenerated.gcd,
|
326
331
|
mod: _pureFunctionsAnyGenerated.mod,
|
327
332
|
nthRoot: _pureFunctionsAnyGenerated.nthRoot,
|
@@ -354,7 +359,8 @@ _extends(math, {
|
|
354
359
|
dot: _pureFunctionsAnyGenerated.dot,
|
355
360
|
composition: _pureFunctionsAnyGenerated.composition,
|
356
361
|
isZero: _pureFunctionsAnyGenerated.isZero,
|
357
|
-
|
362
|
+
matrixFromFunction: _pureFunctionsAnyGenerated.matrixFromFunction,
|
363
|
+
cbrt: _pureFunctionsAnyGenerated.cbrt,
|
358
364
|
floor: _pureFunctionsAnyGenerated.floor,
|
359
365
|
multiply: _pureFunctionsAnyGenerated.multiply,
|
360
366
|
dotMultiply: _pureFunctionsAnyGenerated.dotMultiply,
|
@@ -380,6 +386,7 @@ _extends(math, {
|
|
380
386
|
quantileSeq: _pureFunctionsAnyGenerated.quantileSeq,
|
381
387
|
gamma: _pureFunctionsAnyGenerated.gamma,
|
382
388
|
bignumber: _pureFunctionsAnyGenerated.bignumber,
|
389
|
+
matrixFromColumns: _pureFunctionsAnyGenerated.matrixFromColumns,
|
383
390
|
lcm: _pureFunctionsAnyGenerated.lcm,
|
384
391
|
bitOr: _pureFunctionsAnyGenerated.bitOr,
|
385
392
|
kron: _pureFunctionsAnyGenerated.kron,
|
@@ -396,7 +403,7 @@ _extends(math, {
|
|
396
403
|
sum: _pureFunctionsAnyGenerated.sum,
|
397
404
|
factorial: _pureFunctionsAnyGenerated.factorial,
|
398
405
|
permutations: _pureFunctionsAnyGenerated.permutations,
|
399
|
-
|
406
|
+
matrixFromRows: _pureFunctionsAnyGenerated.matrixFromRows,
|
400
407
|
subtract: _pureFunctionsAnyGenerated.subtract,
|
401
408
|
cross: _pureFunctionsAnyGenerated.cross,
|
402
409
|
range: _pureFunctionsAnyGenerated.range,
|
@@ -406,13 +413,14 @@ _extends(math, {
|
|
406
413
|
max: _pureFunctionsAnyGenerated.max,
|
407
414
|
setCartesian: _pureFunctionsAnyGenerated.setCartesian,
|
408
415
|
setSymDifference: _pureFunctionsAnyGenerated.setSymDifference,
|
409
|
-
|
410
|
-
|
411
|
-
|
416
|
+
ceil: _pureFunctionsAnyGenerated.ceil,
|
417
|
+
xor: _pureFunctionsAnyGenerated.xor,
|
418
|
+
count: _pureFunctionsAnyGenerated.count,
|
412
419
|
ctranspose: _pureFunctionsAnyGenerated.ctranspose,
|
413
420
|
deepEqual: _pureFunctionsAnyGenerated.deepEqual,
|
414
421
|
setIsSubset: _pureFunctionsAnyGenerated.setIsSubset,
|
415
|
-
|
422
|
+
fix: _pureFunctionsAnyGenerated.fix,
|
423
|
+
diff: _pureFunctionsAnyGenerated.diff,
|
416
424
|
divideScalar: _pureFunctionsAnyGenerated.divideScalar,
|
417
425
|
nthRoots: _pureFunctionsAnyGenerated.nthRoots,
|
418
426
|
lsolve: _pureFunctionsAnyGenerated.lsolve,
|
@@ -424,7 +432,7 @@ _extends(math, {
|
|
424
432
|
distance: _pureFunctionsAnyGenerated.distance,
|
425
433
|
stirlingS2: _pureFunctionsAnyGenerated.stirlingS2,
|
426
434
|
catalan: _pureFunctionsAnyGenerated.catalan,
|
427
|
-
|
435
|
+
column: _pureFunctionsAnyGenerated.column,
|
428
436
|
log: _pureFunctionsAnyGenerated.log,
|
429
437
|
dotDivide: _pureFunctionsAnyGenerated.dotDivide,
|
430
438
|
usolveAll: _pureFunctionsAnyGenerated.usolveAll,
|
@@ -508,8 +516,7 @@ _extends(math, {
|
|
508
516
|
derivative: derivative,
|
509
517
|
config: _configReadonly.config
|
510
518
|
});
|
511
|
-
|
512
|
-
_extends(mathWithTransform, math, {
|
519
|
+
(0, _extends2["default"])(mathWithTransform, math, {
|
513
520
|
apply: (0, _factoriesAny.createApplyTransform)({
|
514
521
|
isInteger: _pureFunctionsAnyGenerated.isInteger,
|
515
522
|
typed: _pureFunctionsAnyGenerated.typed
|
@@ -602,8 +609,7 @@ _extends(mathWithTransform, math, {
|
|
602
609
|
variance: _pureFunctionsAnyGenerated.variance
|
603
610
|
})
|
604
611
|
});
|
605
|
-
|
606
|
-
_extends(classes, {
|
612
|
+
(0, _extends2["default"])(classes, {
|
607
613
|
ResultSet: _pureFunctionsAnyGenerated.ResultSet,
|
608
614
|
Complex: _pureFunctionsAnyGenerated.Complex,
|
609
615
|
Range: _pureFunctionsAnyGenerated.Range,
|
@@ -637,5 +643,4 @@ _extends(classes, {
|
|
637
643
|
Help: Help,
|
638
644
|
Parser: Parser
|
639
645
|
});
|
640
|
-
|
641
646
|
Chain.createProxy(math);
|
@@ -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
|
});
|
@@ -11,6 +13,8 @@ Object.defineProperty(exports, "docs", {
|
|
11
13
|
});
|
12
14
|
exports.parser = exports.derivative = exports.Parser = exports.help = exports.compile = exports.rationalize = exports.simplify = exports.Help = exports.evaluate = exports.parse = exports.IndexNode = exports.FunctionNode = exports.AssignmentNode = exports.RangeNode = exports.ConstantNode = exports.AccessorNode = exports.SymbolNode = exports.OperatorNode = exports.BlockNode = exports.reviver = exports.RelationalNode = exports.ParenthesisNode = exports.ObjectNode = exports.FunctionAssignmentNode = exports.ConditionalNode = exports.ArrayNode = exports.Node = exports.chain = exports.Chain = void 0;
|
13
15
|
|
16
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
17
|
+
|
14
18
|
var _configReadonly = require("./configReadonly.js");
|
15
19
|
|
16
20
|
var _factoriesNumber = require("../factoriesNumber.js");
|
@@ -19,8 +23,10 @@ var _pureFunctionsNumberGenerated = require("./pureFunctionsNumber.generated.js"
|
|
19
23
|
|
20
24
|
var _embeddedDocs = require("../expression/embeddedDocs/embeddedDocs.js");
|
21
25
|
|
22
|
-
|
23
|
-
|
26
|
+
/**
|
27
|
+
* THIS FILE IS AUTO-GENERATED
|
28
|
+
* DON'T MAKE CHANGES HERE
|
29
|
+
*/
|
24
30
|
var math = {}; // NOT pure!
|
25
31
|
|
26
32
|
var mathWithTransform = {}; // NOT pure!
|
@@ -218,8 +224,7 @@ var parser = (0, _factoriesNumber.createParser)({
|
|
218
224
|
typed: _pureFunctionsNumberGenerated.typed
|
219
225
|
});
|
220
226
|
exports.parser = parser;
|
221
|
-
|
222
|
-
_extends(math, {
|
227
|
+
(0, _extends2["default"])(math, {
|
223
228
|
typed: _pureFunctionsNumberGenerated.typed,
|
224
229
|
chain: chain,
|
225
230
|
nthRoot: _pureFunctionsNumberGenerated.nthRoot,
|
@@ -384,8 +389,7 @@ _extends(math, {
|
|
384
389
|
range: _pureFunctionsNumberGenerated.range,
|
385
390
|
config: _configReadonly.config
|
386
391
|
});
|
387
|
-
|
388
|
-
_extends(mathWithTransform, math, {
|
392
|
+
(0, _extends2["default"])(mathWithTransform, math, {
|
389
393
|
filter: (0, _factoriesNumber.createFilterTransform)({
|
390
394
|
typed: _pureFunctionsNumberGenerated.typed
|
391
395
|
}),
|
@@ -447,8 +451,7 @@ _extends(mathWithTransform, math, {
|
|
447
451
|
variance: _pureFunctionsNumberGenerated.variance
|
448
452
|
})
|
449
453
|
});
|
450
|
-
|
451
|
-
_extends(classes, {
|
454
|
+
(0, _extends2["default"])(classes, {
|
452
455
|
Range: _pureFunctionsNumberGenerated.Range,
|
453
456
|
Chain: Chain,
|
454
457
|
Node: Node,
|
@@ -471,5 +474,4 @@ _extends(classes, {
|
|
471
474
|
Help: Help,
|
472
475
|
Parser: Parser
|
473
476
|
});
|
474
|
-
|
475
477
|
Chain.createProxy(math);
|