@mojir/lits 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cli.js +26924 -7777
- package/dist/cli/reference/api.d.ts +28 -10
- package/dist/cli/reference/categories/grid/index.d.ts +3 -0
- package/dist/cli/reference/categories/linearAlgebra/index.d.ts +3 -0
- package/dist/cli/reference/categories/matrix/index.d.ts +3 -0
- package/dist/cli/reference/categories/numberTheory/abundant.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/arithmetic.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/bell.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/bernoulli.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/catalan.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/collatz.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/composite.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/deficient.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/factorial.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/fibonacci.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/geometric.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/golomb.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/happy.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/index.d.ts +12 -0
- package/dist/cli/reference/categories/numberTheory/juggler.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/lookAndSay.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/lucas.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/lucky.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/mersenne.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/padovan.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/partition.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/pell.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/perfect.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/perfectCube.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/perfectPower.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/perfectSquare.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/polygonal.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/prime.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/recaman.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/sylvester.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/thueMorse.d.ts +2 -0
- package/dist/cli/reference/categories/numberTheory/tribonacci.d.ts +2 -0
- package/dist/cli/reference/categories/random.d.ts +3 -0
- package/dist/cli/reference/categories/vector/entropy.d.ts +2 -0
- package/dist/cli/reference/categories/vector/giniCoefficient.d.ts +2 -0
- package/dist/cli/reference/categories/vector/index.d.ts +7 -0
- package/dist/cli/reference/categories/vector/iqr.d.ts +2 -0
- package/dist/cli/reference/categories/vector/kurtosis.d.ts +5 -0
- package/dist/cli/reference/categories/vector/mad.d.ts +2 -0
- package/dist/cli/reference/categories/vector/max.d.ts +2 -0
- package/dist/cli/reference/categories/vector/mean.d.ts +4 -0
- package/dist/cli/reference/categories/vector/medad.d.ts +2 -0
- package/dist/cli/reference/categories/vector/median.d.ts +2 -0
- package/dist/cli/reference/categories/vector/min.d.ts +2 -0
- package/dist/cli/reference/categories/vector/prod.d.ts +2 -0
- package/dist/cli/reference/categories/vector/rms.d.ts +2 -0
- package/dist/cli/reference/categories/vector/skewness.d.ts +3 -0
- package/dist/cli/reference/categories/vector/span.d.ts +2 -0
- package/dist/cli/reference/categories/vector/standardDeviation.d.ts +3 -0
- package/dist/cli/reference/categories/vector/sum.d.ts +2 -0
- package/dist/cli/reference/categories/vector/variance.d.ts +3 -0
- package/dist/cli/reference/index.d.ts +606 -209
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/grid/fromArray.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/grid/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/grid/transpose.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/calcFractionalRanks.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/collinear.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/corrleation.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/covariance.d.ts +4 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/gaussJordanElimination.d.ts +7 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/isZeroVector.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/kendallTau.d.ts +10 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/pearsonCorr.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/solve.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/adjugate.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/band.d.ts +9 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/cofactor.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/determinant.d.ts +6 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/inverse.d.ts +6 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isBanded.d.ts +11 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isDiagonal.d.ts +10 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isIdentity.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isOrthogonal.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isSquare.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isSymetric.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isTriangular.d.ts +13 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/matrixMultiply.d.ts +7 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/minor.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/norm1.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/trace.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/matrix/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/binomialCefficient.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/combinations.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/derangements.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/divisors.d.ts +4 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/factorial.d.ts +3 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/partitions.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/permutations.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/powerSet.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/primeFactors.d.ts +11 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/abundant.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/arithmetic.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/bell.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/bernoulli.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/catalan.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/collatz.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/composite.d.ts +3 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/deficient.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/factorial.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/fibonacci.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/geometric.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/golomb.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/happy.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/index.d.ts +26 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/juggler.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lookAndSay.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lucas.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lucky.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/mersenne.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/padovan.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/partition.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/pell.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfect.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectCube.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectPower.d.ts +10 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectSquare.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/poligonal.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/prime.d.ts +3 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/recaman.d.ts +9 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/sylvester.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/thueMorse.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/tribonacci.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/random/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/bincount.d.ts +9 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcMad.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcMean.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcMedad.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcMedian.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcStdDev.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/calcVariance.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/entropy.d.ts +8 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/histogram.d.ts +9 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/index.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/mode.d.ts +6 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/outliers.d.ts +7 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/percentile.d.ts +7 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/quartiles.d.ts +1 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/entropy.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/giniCoefficient.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/index.d.ts +13 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/iqr.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/kurtosis.d.ts +5 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/mad.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/max.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/mean.d.ts +4 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/medad.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/median.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/min.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/prod.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/rms.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/skewness.d.ts +3 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/span.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/standardDeviation.d.ts +3 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/sum.d.ts +2 -0
- package/dist/cli/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/variance.d.ts +3 -0
- package/dist/cli/src/errors.d.ts +1 -4
- package/dist/cli/src/evaluator/interface.d.ts +2 -2
- package/dist/cli/src/parser/types.d.ts +6 -4
- package/dist/cli/src/tokenizer/operators.d.ts +2 -2
- package/dist/cli/src/tokenizer/reservedNames.d.ts +2 -0
- package/dist/cli/src/typeGuards/annotatedArrays.d.ts +12 -0
- package/dist/cli/src/typeGuards/lits.d.ts +4 -1
- package/dist/cli/src/utils/index.d.ts +2 -0
- package/dist/index.esm.js +25685 -7953
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25687 -7952
- package/dist/index.js.map +1 -1
- package/dist/lits.iife.js +25687 -7952
- package/dist/lits.iife.js.map +1 -1
- package/dist/reference/api.d.ts +28 -10
- package/dist/reference/categories/grid/index.d.ts +3 -0
- package/dist/reference/categories/linearAlgebra/index.d.ts +3 -0
- package/dist/reference/categories/matrix/index.d.ts +3 -0
- package/dist/reference/categories/numberTheory/abundant.d.ts +2 -0
- package/dist/reference/categories/numberTheory/arithmetic.d.ts +2 -0
- package/dist/reference/categories/numberTheory/bell.d.ts +2 -0
- package/dist/reference/categories/numberTheory/bernoulli.d.ts +2 -0
- package/dist/reference/categories/numberTheory/catalan.d.ts +2 -0
- package/dist/reference/categories/numberTheory/collatz.d.ts +2 -0
- package/dist/reference/categories/numberTheory/composite.d.ts +2 -0
- package/dist/reference/categories/numberTheory/deficient.d.ts +2 -0
- package/dist/reference/categories/numberTheory/factorial.d.ts +2 -0
- package/dist/reference/categories/numberTheory/fibonacci.d.ts +2 -0
- package/dist/reference/categories/numberTheory/geometric.d.ts +2 -0
- package/dist/reference/categories/numberTheory/golomb.d.ts +2 -0
- package/dist/reference/categories/numberTheory/happy.d.ts +2 -0
- package/dist/reference/categories/numberTheory/index.d.ts +12 -0
- package/dist/reference/categories/numberTheory/juggler.d.ts +2 -0
- package/dist/reference/categories/numberTheory/lookAndSay.d.ts +2 -0
- package/dist/reference/categories/numberTheory/lucas.d.ts +2 -0
- package/dist/reference/categories/numberTheory/lucky.d.ts +2 -0
- package/dist/reference/categories/numberTheory/mersenne.d.ts +2 -0
- package/dist/reference/categories/numberTheory/padovan.d.ts +2 -0
- package/dist/reference/categories/numberTheory/partition.d.ts +2 -0
- package/dist/reference/categories/numberTheory/pell.d.ts +2 -0
- package/dist/reference/categories/numberTheory/perfect.d.ts +2 -0
- package/dist/reference/categories/numberTheory/perfectCube.d.ts +2 -0
- package/dist/reference/categories/numberTheory/perfectPower.d.ts +2 -0
- package/dist/reference/categories/numberTheory/perfectSquare.d.ts +2 -0
- package/dist/reference/categories/numberTheory/polygonal.d.ts +2 -0
- package/dist/reference/categories/numberTheory/prime.d.ts +2 -0
- package/dist/reference/categories/numberTheory/recaman.d.ts +2 -0
- package/dist/reference/categories/numberTheory/sylvester.d.ts +2 -0
- package/dist/reference/categories/numberTheory/thueMorse.d.ts +2 -0
- package/dist/reference/categories/numberTheory/tribonacci.d.ts +2 -0
- package/dist/reference/categories/random.d.ts +3 -0
- package/dist/reference/categories/vector/entropy.d.ts +2 -0
- package/dist/reference/categories/vector/giniCoefficient.d.ts +2 -0
- package/dist/reference/categories/vector/index.d.ts +7 -0
- package/dist/reference/categories/vector/iqr.d.ts +2 -0
- package/dist/reference/categories/vector/kurtosis.d.ts +5 -0
- package/dist/reference/categories/vector/mad.d.ts +2 -0
- package/dist/reference/categories/vector/max.d.ts +2 -0
- package/dist/reference/categories/vector/mean.d.ts +4 -0
- package/dist/reference/categories/vector/medad.d.ts +2 -0
- package/dist/reference/categories/vector/median.d.ts +2 -0
- package/dist/reference/categories/vector/min.d.ts +2 -0
- package/dist/reference/categories/vector/prod.d.ts +2 -0
- package/dist/reference/categories/vector/rms.d.ts +2 -0
- package/dist/reference/categories/vector/skewness.d.ts +3 -0
- package/dist/reference/categories/vector/span.d.ts +2 -0
- package/dist/reference/categories/vector/standardDeviation.d.ts +3 -0
- package/dist/reference/categories/vector/sum.d.ts +2 -0
- package/dist/reference/categories/vector/variance.d.ts +3 -0
- package/dist/reference/index.d.ts +606 -209
- package/dist/src/builtin/normalExpressions/categories/namespaces/grid/fromArray.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/grid/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/grid/transpose.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/calcFractionalRanks.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/collinear.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/corrleation.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/covariance.d.ts +4 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/gaussJordanElimination.d.ts +7 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/isZeroVector.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/kendallTau.d.ts +10 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/pearsonCorr.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/helpers/solve.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/linearAlgebra/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/adjugate.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/band.d.ts +9 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/cofactor.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/determinant.d.ts +6 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/diagonal.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/inverse.d.ts +6 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isBanded.d.ts +11 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isDiagonal.d.ts +10 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isIdentity.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isOrthogonal.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isSquare.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isSymetric.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/isTriangular.d.ts +13 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/matrixMultiply.d.ts +7 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/minor.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/norm1.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/helpers/trace.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/matrix/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/binomialCefficient.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/combinations.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/derangements.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/divisors.d.ts +4 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/factorial.d.ts +3 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/partitions.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/permutations.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/powerSet.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/primeFactors.d.ts +11 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/abundant.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/arithmetic.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/bell.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/bernoulli.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/catalan.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/collatz.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/composite.d.ts +3 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/deficient.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/factorial.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/fibonacci.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/geometric.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/golomb.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/happy.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/index.d.ts +26 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/juggler.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lookAndSay.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lucas.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/lucky.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/mersenne.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/padovan.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/partition.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/pell.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfect.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectCube.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectPower.d.ts +10 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/perfectSquare.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/poligonal.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/prime.d.ts +3 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/recaman.d.ts +9 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/sylvester.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/thueMorse.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/numberTheory/sequences/tribonacci.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/random/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/bincount.d.ts +9 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcMad.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcMean.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcMedad.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcMedian.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcStdDev.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/calcVariance.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/entropy.d.ts +8 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/histogram.d.ts +9 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/index.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/mode.d.ts +6 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/outliers.d.ts +7 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/percentile.d.ts +7 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/quartiles.d.ts +1 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/entropy.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/giniCoefficient.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/index.d.ts +13 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/iqr.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/kurtosis.d.ts +5 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/mad.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/max.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/mean.d.ts +4 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/medad.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/median.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/min.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/prod.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/rms.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/skewness.d.ts +3 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/span.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/standardDeviation.d.ts +3 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/sum.d.ts +2 -0
- package/dist/src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions/variance.d.ts +3 -0
- package/dist/src/errors.d.ts +1 -4
- package/dist/src/evaluator/interface.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/parser/types.d.ts +6 -4
- package/dist/src/tokenizer/operators.d.ts +2 -2
- package/dist/src/tokenizer/reservedNames.d.ts +2 -0
- package/dist/src/typeGuards/annotatedArrays.d.ts +12 -0
- package/dist/src/typeGuards/lits.d.ts +4 -1
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/testFramework.esm.js +8016 -819
- package/dist/testFramework.esm.js.map +1 -1
- package/dist/testFramework.js +8016 -819
- package/dist/testFramework.js.map +1 -1
- package/package.json +5 -1
package/dist/cli/src/errors.d.ts
CHANGED
|
@@ -7,12 +7,9 @@ export declare class RecurSignal extends Error {
|
|
|
7
7
|
export declare class LitsError extends Error {
|
|
8
8
|
readonly sourceCodeInfo?: SourceCodeInfo;
|
|
9
9
|
readonly shortMessage: string;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(err: unknown, sourceCodeInfo: SourceCodeInfo | undefined);
|
|
11
11
|
getCodeMarker(): string | undefined;
|
|
12
12
|
}
|
|
13
|
-
export declare class NotAFunctionError extends LitsError {
|
|
14
|
-
constructor(fn: unknown, sourceCodeInfo?: SourceCodeInfo);
|
|
15
|
-
}
|
|
16
13
|
export declare class UserDefinedError extends LitsError {
|
|
17
14
|
userMessage: string;
|
|
18
15
|
constructor(message: string, sourceCodeInfo?: SourceCodeInfo);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Any, Arr } from '../interface';
|
|
2
|
-
import type { Node } from '../parser/types';
|
|
2
|
+
import type { FunctionLike, Node } from '../parser/types';
|
|
3
3
|
import type { SourceCodeInfo } from '../tokenizer/token';
|
|
4
4
|
import type { ContextStack } from './ContextStack';
|
|
5
5
|
export interface ContextEntry {
|
|
@@ -7,6 +7,6 @@ export interface ContextEntry {
|
|
|
7
7
|
}
|
|
8
8
|
export type Context = Record<string, ContextEntry>;
|
|
9
9
|
export type EvaluateNode = (node: Node, contextStack: ContextStack) => Any;
|
|
10
|
-
export type ExecuteFunction = (fn:
|
|
10
|
+
export type ExecuteFunction = (fn: FunctionLike, params: Arr, contextStack: ContextStack, sourceCodeInfo?: SourceCodeInfo) => Any;
|
|
11
11
|
export type LookUpResult = ContextEntry | null;
|
|
12
12
|
export declare function isContextEntry(value: unknown): value is ContextEntry;
|
|
@@ -3,7 +3,7 @@ import type { SpecialExpressionType } from '../builtin';
|
|
|
3
3
|
import type { specialExpressionTypes } from '../builtin/specialExpressionTypes';
|
|
4
4
|
import type { FunctionType, NodeType, NodeTypes } from '../constants/constants';
|
|
5
5
|
import type { Context } from '../evaluator/interface';
|
|
6
|
-
import type { Any, Arr } from '../interface';
|
|
6
|
+
import type { Any, Arr, Coll } from '../interface';
|
|
7
7
|
import type { ReservedSymbol } from '../tokenizer/reservedNames';
|
|
8
8
|
import type { SourceCodeInfo, Token } from '../tokenizer/token';
|
|
9
9
|
import type { FUNCTION_SYMBOL, REGEXP_SYMBOL } from '../utils/symbols';
|
|
@@ -34,8 +34,9 @@ export interface UserDefinedFunction extends GenericLitsFunction {
|
|
|
34
34
|
}
|
|
35
35
|
export interface PartialFunction extends GenericLitsFunction {
|
|
36
36
|
functionType: 'Partial';
|
|
37
|
-
function:
|
|
37
|
+
function: FunctionLike;
|
|
38
38
|
params: Arr;
|
|
39
|
+
placeholders: number[];
|
|
39
40
|
}
|
|
40
41
|
export interface CompFunction extends GenericLitsFunction {
|
|
41
42
|
functionType: 'Comp';
|
|
@@ -51,7 +52,7 @@ export interface JuxtFunction extends GenericLitsFunction {
|
|
|
51
52
|
}
|
|
52
53
|
export interface ComplementFunction extends GenericLitsFunction {
|
|
53
54
|
functionType: 'Complement';
|
|
54
|
-
function:
|
|
55
|
+
function: FunctionLike;
|
|
55
56
|
}
|
|
56
57
|
export interface EveryPredFunction extends GenericLitsFunction {
|
|
57
58
|
functionType: 'EveryPred';
|
|
@@ -63,7 +64,7 @@ export interface SomePredFunction extends GenericLitsFunction {
|
|
|
63
64
|
}
|
|
64
65
|
export interface FNullFunction extends GenericLitsFunction {
|
|
65
66
|
functionType: 'Fnull';
|
|
66
|
-
function:
|
|
67
|
+
function: FunctionLike;
|
|
67
68
|
params: Arr;
|
|
68
69
|
}
|
|
69
70
|
export interface NormalBuiltinFunction extends GenericLitsFunction {
|
|
@@ -76,6 +77,7 @@ export interface SpecialBuiltinFunction extends GenericLitsFunction {
|
|
|
76
77
|
}
|
|
77
78
|
export type LitsFunction = NativeJsFunction | UserDefinedFunction | NormalBuiltinFunction | SpecialBuiltinFunction | PartialFunction | CompFunction | ConstantlyFunction | JuxtFunction | ComplementFunction | EveryPredFunction | SomePredFunction | FNullFunction;
|
|
78
79
|
export type LitsFunctionType = LitsFunction['functionType'];
|
|
80
|
+
export type FunctionLike = LitsFunction | Coll | number;
|
|
79
81
|
export type DebugData = {
|
|
80
82
|
token: Token;
|
|
81
83
|
nameToken?: Token;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const binaryOperators: readonly ["
|
|
2
|
-
declare const symbolicOperators: readonly ["
|
|
1
|
+
declare const binaryOperators: readonly ["^", "*", "/", "%", "+", "-", "<<", ">>", ">>>", "++", "<", "<=", "≤", ">", ">=", "≥", "=", "!=", "≠", "~", "≈", "&", "xor", "|", "&&", "||", "??", "|>"];
|
|
2
|
+
declare const symbolicOperators: readonly ["^", "*", "/", "%", "+", "-", "<<", ">>", ">>>", "++", "<", "<=", "≤", ">", ">=", "≥", "=", "!=", "≠", "~", "≈", "&", "xor", "|", "&&", "||", "??", "|>", "->", "...", ".", ",", ":=", ";"];
|
|
3
3
|
export declare function isFunctionOperator(operator: string): boolean;
|
|
4
4
|
export type SymbolicBinaryOperator = typeof binaryOperators[number];
|
|
5
5
|
export type SymbolicOperator = typeof symbolicOperators[number];
|
|
@@ -66,6 +66,7 @@ export declare const reservedSymbolRecord: {
|
|
|
66
66
|
readonly function: null;
|
|
67
67
|
readonly export: null;
|
|
68
68
|
readonly as: null;
|
|
69
|
+
readonly _: null;
|
|
69
70
|
};
|
|
70
71
|
export declare const validReservedSymbolRecord: {
|
|
71
72
|
readonly E: number;
|
|
@@ -108,6 +109,7 @@ export declare const validReservedSymbolRecord: {
|
|
|
108
109
|
readonly function: null;
|
|
109
110
|
readonly export: null;
|
|
110
111
|
readonly as: null;
|
|
112
|
+
readonly _: null;
|
|
111
113
|
};
|
|
112
114
|
export type ValidReservedSymbol = keyof typeof validReservedSymbolRecord;
|
|
113
115
|
export type ReservedSymbol = keyof typeof reservedSymbolRecord;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Any } from '../interface';
|
|
2
|
+
import type { SourceCodeInfo } from '../tokenizer/token';
|
|
3
|
+
export declare function annotate<T>(value: T): T;
|
|
4
|
+
export declare function isVector(vector: unknown): vector is number[];
|
|
5
|
+
export declare function assertVector(vector: unknown, sourceCodeInfo: SourceCodeInfo | undefined): asserts vector is number[];
|
|
6
|
+
export declare function assertNonEmptyVector(vector: unknown, sourceCodeInfo: SourceCodeInfo | undefined): asserts vector is number[];
|
|
7
|
+
export declare function isGrid(grid: unknown): grid is unknown[][];
|
|
8
|
+
export declare function assertGrid(grid: unknown, sourceCodeInfo: SourceCodeInfo | undefined): asserts grid is Any[][];
|
|
9
|
+
export declare function isMatrix(matrix: unknown): matrix is number[][];
|
|
10
|
+
export declare function assertMatrix(matrix: unknown, sourceCodeInfo: SourceCodeInfo | undefined): asserts matrix is number[][];
|
|
11
|
+
export declare function assertSquareMatrix(matrix: unknown, sourceCodeInfo: SourceCodeInfo | undefined): asserts matrix is number[][];
|
|
12
|
+
export declare function isSquareMatrix(matrix: unknown): matrix is number[][];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Any, Coll, Obj, Seq } from '../interface';
|
|
2
|
-
import type { RegularExpression } from '../parser/types';
|
|
2
|
+
import type { FunctionLike, RegularExpression } from '../parser/types';
|
|
3
3
|
import type { SourceCodeInfo } from '../tokenizer/token';
|
|
4
4
|
export declare function isAny(value: unknown): value is Any;
|
|
5
5
|
export declare function asAny(value: unknown, sourceCodeInfo?: SourceCodeInfo): Any;
|
|
@@ -19,3 +19,6 @@ export declare function assertRegularExpression(value: unknown, sourceCodeInfo?:
|
|
|
19
19
|
export declare function isStringOrRegularExpression(value: unknown): value is string | RegularExpression;
|
|
20
20
|
export declare function asStringOrRegularExpression(value: unknown, sourceCodeInfo?: SourceCodeInfo): string | RegularExpression;
|
|
21
21
|
export declare function assertStringOrRegularExpression(value: unknown, sourceCodeInfo?: SourceCodeInfo): asserts value is string | RegularExpression;
|
|
22
|
+
export declare function isFunctionLike(value: unknown): value is FunctionLike;
|
|
23
|
+
export declare function asFunctionLike(value: unknown, sourceCodeInfo?: SourceCodeInfo): FunctionLike;
|
|
24
|
+
export declare function assertFunctionLike(value: unknown, sourceCodeInfo?: SourceCodeInfo): asserts value is FunctionLike;
|
|
@@ -10,3 +10,5 @@ export declare function cloneColl<T extends Coll>(value: T): T;
|
|
|
10
10
|
export declare function createNativeJsFunction(fn: (...args: any[]) => unknown, name?: string): NativeJsFunction;
|
|
11
11
|
export declare function joinSets<T>(...results: Set<T>[]): Set<T>;
|
|
12
12
|
export declare function addToSet<T>(target: Set<T>, source: Set<T>): void;
|
|
13
|
+
export declare function approxEqual(a: number, b: number, epsilon?: number): boolean;
|
|
14
|
+
export declare function approxZero(value: number, epsilon?: number): boolean;
|