@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
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import type { Argument } from '.';
|
|
2
2
|
export declare const api: {
|
|
3
|
-
readonly collection: readonly ["count", "get", "get-in", "contains?", "assoc", "assoc-in", "++", "not-empty", "every?", "not-every?", "any?", "not-any?", "update", "update-in"];
|
|
3
|
+
readonly collection: readonly ["filter", "map", "reduce", "reduce-right", "reductions", "count", "get", "get-in", "contains?", "assoc", "assoc-in", "++", "not-empty", "every?", "not-every?", "any?", "not-any?", "update", "update-in"];
|
|
4
4
|
readonly array: readonly ["range", "repeat", "flatten", "mapcat"];
|
|
5
|
-
readonly sequence: readonly ["nth", "push", "pop", "unshift", "shift", "slice", "splice", "
|
|
6
|
-
readonly math: readonly ["+", "-", "*", "/", "mod", "
|
|
7
|
-
readonly functional: readonly ["
|
|
5
|
+
readonly sequence: readonly ["nth", "push", "pop", "unshift", "shift", "slice", "splice", "position", "index-of", "last-index-of", "some", "reverse", "first", "second", "last", "rest", "next", "take", "take-last", "take-while", "drop", "drop-last", "drop-while", "sort", "sort-by", "distinct", "remove", "remove-at", "split-at", "split-with", "frequencies", "group-by", "partition", "partition-all", "partition-by", "starts-with?", "ends-with?", "interleave", "interpose"];
|
|
6
|
+
readonly math: readonly ["+", "-", "*", "/", "~", "mod", "rem", "quot", "inc", "dec", "sqrt", "cbrt", "^", "round", "trunc", "floor", "ceil", "min", "max", "abs", "sign", "ln", "log2", "log10", "sin", "cos", "tan", "asin", "acos", "atan", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh"];
|
|
7
|
+
readonly functional: readonly ["|>", "apply", "identity", "comp", "constantly", "juxt", "complement", "every-pred", "some-pred", "fnull"];
|
|
8
8
|
readonly misc: readonly ["≠", "=", "<", ">", "≤", "≥", "!", "write!", "iso-date->epoch", "epoch->iso-date", "boolean", "compare", "identical?", "json-parse", "json-stringify"];
|
|
9
9
|
readonly object: readonly ["dissoc", "keys", "vals", "entries", "find", "merge", "merge-with", "zipmap", "select-keys"];
|
|
10
|
-
readonly predicate: readonly ["boolean?", "null?", "number?", "string?", "function?", "integer?", "array?", "object?", "coll?", "seq?", "regexp?", "zero?", "pos?", "neg?", "even?", "odd?", "finite?", "nan?", "negative-infinity?", "positive-infinity?", "false?", "true?", "empty?", "not-empty?"];
|
|
10
|
+
readonly predicate: readonly ["boolean?", "null?", "number?", "string?", "function?", "integer?", "array?", "object?", "coll?", "seq?", "regexp?", "zero?", "pos?", "neg?", "even?", "odd?", "finite?", "nan?", "negative-infinity?", "positive-infinity?", "false?", "true?", "empty?", "not-empty?", "vector?", "grid?", "matrix?"];
|
|
11
11
|
readonly regularExpression: readonly ["regexp", "match", "replace", "replace-all"];
|
|
12
12
|
readonly string: readonly ["string-repeat", "str", "number", "lower-case", "upper-case", "trim", "trim-left", "trim-right", "pad-left", "pad-right", "split", "split-lines", "template", "to-char-code", "from-char-code", "encode-base64", "decode-base64", "encode-uri-component", "decode-uri-component", "join", "capitalize", "blank?"];
|
|
13
|
-
readonly bitwise: readonly ["<<", ">>", ">>>", "
|
|
13
|
+
readonly bitwise: readonly ["<<", ">>", ">>>", "bit-not", "&", "bit-and-not", "|", "xor", "bit-flip", "bit-clear", "bit-set", "bit-test"];
|
|
14
14
|
readonly assert: readonly ["assert", "assert=", "assert!=", "assert-gt", "assert-lt", "assert-gte", "assert-lte", "assert-true", "assert-false", "assert-truthy", "assert-falsy", "assert-null", "assert-throws", "assert-throws-error", "assert-not-throws"];
|
|
15
|
+
readonly grid: readonly ["grid:every?", "grid:some?", "grid:every-row?", "grid:some-row?", "grid:every-col?", "grid:some-col?", "grid:row", "grid:col", "grid:shape", "grid:generate", "grid:reshape", "grid:transpose", "grid:flip-h", "grid:flip-v", "grid:rotate", "grid:reverse-rows", "grid:reverse-cols", "grid:slice", "grid:slice-rows", "grid:slice-cols", "grid:splice-rows", "grid:splice-cols", "grid:concat-rows", "grid:concat-cols", "grid:map", "grid:mapi", "grid:reduce", "grid:reducei", "grid:push-rows", "grid:unshift-rows", "grid:pop-row", "grid:shift-row", "grid:push-cols", "grid:unshift-cols", "grid:pop-col", "grid:shift-col", "grid:from-array"];
|
|
16
|
+
readonly matrix: readonly ["mat:mul", "mat:det", "mat:inv", "mat:adj", "mat:cofactor", "mat:minor", "mat:trace", "mat:symmetric?", "mat:triangular?", "mat:upper-triangular?", "mat:lower-triangular?", "mat:diagonal?", "mat:square?", "mat:orthogonal?", "mat:identity?", "mat:invertible?", "mat:hilbert", "mat:vandermonde", "mat:band", "mat:banded?", "mat:rank", "mat:frobenius-norm", "mat:1-norm", "mat:inf-norm", "mat:max-norm"];
|
|
17
|
+
readonly vector: readonly ["vec:monotonic?", "vec:strictly-monotonic?", "vec:increasing?", "vec:decreasing?", "vec:strictly-increasing?", "vec:strictly-decreasing?", "vec:median", "vec:mode", "vec:min-index", "vec:max-index", "vec:sort-indices", "vec:count-values", "vec:linspace", "vec:ones", "vec:zeros", "vec:fill", "vec:generate", "vec:cumsum", "vec:cumprod", "vec:quartiles", "vec:percentile", "vec:quantile", "vec:histogram", "vec:ecdf", "vec:outliers?", "vec:outliers", "vec:bincount", "vec:winsorize", "vec:mse", "vec:mae", "vec:rmse", "vec:smape", "vec:mean", "vec:moving-mean", "vec:centered-moving-mean", "vec:running-mean", "vec:median", "vec:moving-median", "vec:centered-moving-median", "vec:running-median", "vec:variance", "vec:moving-variance", "vec:centered-moving-variance", "vec:running-variance", "vec:sample-variance", "vec:moving-sample-variance", "vec:centered-moving-sample-variance", "vec:running-sample-variance", "vec:sum", "vec:moving-sum", "vec:centered-moving-sum", "vec:running-sum", "vec:prod", "vec:moving-prod", "vec:centered-moving-prod", "vec:running-prod", "vec:min", "vec:moving-min", "vec:centered-moving-min", "vec:running-min", "vec:max", "vec:moving-max", "vec:centered-moving-max", "vec:running-max", "vec:stdev", "vec:moving-stdev", "vec:centered-moving-stdev", "vec:running-stdev", "vec:sample-stdev", "vec:moving-sample-stdev", "vec:centered-moving-sample-stdev", "vec:running-sample-stdev", "vec:iqr", "vec:moving-iqr", "vec:centered-moving-iqr", "vec:running-iqr", "vec:span", "vec:moving-span", "vec:centered-moving-span", "vec:running-span", "vec:geometric-mean", "vec:moving-geometric-mean", "vec:centered-moving-geometric-mean", "vec:running-geometric-mean", "vec:harmonic-mean", "vec:moving-harmonic-mean", "vec:centered-moving-harmonic-mean", "vec:running-harmonic-mean", "vec:skewness", "vec:moving-skewness", "vec:centered-moving-skewness", "vec:running-skewness", "vec:sample-skewness", "vec:moving-sample-skewness", "vec:centered-moving-sample-skewness", "vec:running-sample-skewness", "vec:kurtosis", "vec:moving-kurtosis", "vec:centered-moving-kurtosis", "vec:running-kurtosis", "vec:sample-kurtosis", "vec:moving-sample-kurtosis", "vec:centered-moving-sample-kurtosis", "vec:running-sample-kurtosis", "vec:excess-kurtosis", "vec:moving-excess-kurtosis", "vec:centered-moving-excess-kurtosis", "vec:running-excess-kurtosis", "vec:sample-excess-kurtosis", "vec:moving-sample-excess-kurtosis", "vec:centered-moving-sample-excess-kurtosis", "vec:running-sample-excess-kurtosis", "vec:rms", "vec:moving-rms", "vec:centered-moving-rms", "vec:running-rms", "vec:mad", "vec:moving-mad", "vec:centered-moving-mad", "vec:running-mad", "vec:medad", "vec:moving-medad", "vec:centered-moving-medad", "vec:running-medad", "vec:gini-coefficient", "vec:moving-gini-coefficient", "vec:centered-moving-gini-coefficient", "vec:running-gini-coefficient", "vec:entropy", "vec:moving-entropy", "vec:centered-moving-entropy", "vec:running-entropy", "vec:skewness", "vec:moving-skewness", "vec:centered-moving-skewness", "vec:running-skewness"];
|
|
18
|
+
readonly linAlg: readonly ["lin:dot", "lin:cross", "lin:normalize-minmax", "lin:normalize-zscore", "lin:normalize-robust", "lin:normalize-l1", "lin:normalize-l2", "lin:normalize-log", "lin:angle", "lin:projection", "lin:orthogonal?", "lin:parallel?", "lin:collinear?", "lin:cosine-similarity", "lin:euclidean-distance", "lin:euclidean-norm", "lin:manhattan-distance", "lin:manhattan-norm", "lin:hamming-distance", "lin:hamming-norm", "lin:chebyshev-distance", "lin:chebyshev-norm", "lin:minkowski-distance", "lin:minkowski-norm", "lin:cov", "lin:corr", "lin:spearman-corr", "lin:pearson-corr", "lin:kendall-tau", "lin:autocorrelation", "lin:cross-correlation", "lin:rref", "lin:solve"];
|
|
19
|
+
readonly numberTheory: readonly ["nth:abundant-seq", "nth:abundant-nth", "nth:abundant-take-while", "nth:abundant?", "nth:bell-seq", "nth:bell-nth", "nth:bell-take-while", "nth:bell?", "nth:catalan-seq", "nth:catalan-nth", "nth:catalan-take-while", "nth:catalan?", "nth:composite-seq", "nth:composite-nth", "nth:composite-take-while", "nth:composite?", "nth:factorial-seq", "nth:factorial-nth", "nth:factorial-take-while", "nth:factorial?", "nth:fibonacci-seq", "nth:fibonacci-nth", "nth:fibonacci-take-while", "nth:fibonacci?", "nth:geometric-seq", "nth:geometric-nth", "nth:geometric-take-while", "nth:geometric?", "nth:golomb-seq", "nth:golomb-nth", "nth:golomb-take-while", "nth:golomb?", "nth:happy-seq", "nth:happy-nth", "nth:happy-take-while", "nth:happy?", "nth:look-and-say-seq", "nth:look-and-say-nth", "nth:look-and-say-take-while", "nth:look-and-say?", "nth:lucas-seq", "nth:lucas-nth", "nth:lucas-take-while", "nth:lucas?", "nth:lucky-seq", "nth:lucky-nth", "nth:lucky-take-while", "nth:lucky?", "nth:mersenne-seq", "nth:mersenne-nth", "nth:mersenne-take-while", "nth:mersenne?", "nth:padovan-seq", "nth:padovan-nth", "nth:padovan-take-while", "nth:padovan?", "nth:partition-seq", "nth:partition-nth", "nth:partition-take-while", "nth:partition?", "nth:pell-seq", "nth:pell-nth", "nth:pell-take-while", "nth:pell?", "nth:perfect-seq", "nth:perfect-nth", "nth:perfect-take-while", "nth:perfect?", "nth:perfect-cube-seq", "nth:perfect-cube-nth", "nth:perfect-cube-take-while", "nth:perfect-cube?", "nth:perfect-power-seq", "nth:perfect-power-nth", "nth:perfect-power-take-while", "nth:perfect-power?", "nth:perfect-square-seq", "nth:perfect-square-nth", "nth:perfect-square-take-while", "nth:perfect-square?", "nth:polygonal-seq", "nth:polygonal-nth", "nth:polygonal-take-while", "nth:polygonal?", "nth:prime-seq", "nth:prime-nth", "nth:prime-take-while", "nth:prime?", "nth:recaman-seq", "nth:recaman-nth", "nth:recaman-take-while", "nth:recaman?", "nth:sylvester-seq", "nth:sylvester-nth", "nth:sylvester-take-while", "nth:sylvester?", "nth:thue-morse-seq", "nth:thue-morse-nth", "nth:thue-morse-take-while", "nth:thue-morse?", "nth:tribonacci-seq", "nth:tribonacci-nth", "nth:tribonacci-take-while", "nth:tribonacci?", "nth:collatz-seq", "nth:juggler-seq", "nth:bernoulli-seq", "nth:bernoulli-take-while", "nth:bernoulli-nth", "nth:combinations", "nth:count-combinations", "nth:derangements", "nth:count-derangements", "nth:divisors", "nth:count-divisors", "nth:proper-divisors", "nth:count-proper-divisors", "nth:prime-factors", "nth:count-prime-factors", "nth:distinct-prime-factors", "nth:count-distinct-prime-factors", "nth:factorial", "nth:partitions", "nth:count-partitions", "nth:permutations", "nth:count-permutations", "nth:power-set", "nth:count-power-set", "nth:coprime?", "nth:divisible-by?", "nth:gcd", "nth:lcm", "nth:multinomial", "nth:amicable?", "nth:euler-totient", "nth:mobius", "nth:mertens", "nth:sigma", "nth:carmichael-lambda", "nth:cartesian-product", "nth:perfect-power", "nth:mod-exp", "nth:mod-inv", "nth:extended-gcd", "nth:chinese-remainder", "nth:stirling-first", "nth:stirling-second"];
|
|
20
|
+
readonly random: readonly ["!:random", "!:random-int", "!:random-int-inclusive", "!:random-float", "!:random-boolean", "!:random-item", "!:random-sample", "!:random-sample-unique", "!:shuffle", "!:random-normal", "!:random-exponential", "!:random-binomial", "!:random-poisson", "!:random-gamma", "!:random-pareto", "!:uuid", "!:random-char", "!:random-string", "!:random-id", "!:random-color"];
|
|
15
21
|
readonly shorthand: ["-short-regexp", "-short-fn"];
|
|
16
|
-
readonly datatype: ["-type-number", "-type-string", "-type-object", "-type-array", "-type-boolean", "-type-function", "-type-integer", "-type-any", "-type-null", "-type-collection", "-type-sequence", "-type-regexp", "-type-never"];
|
|
22
|
+
readonly datatype: ["-type-number", "-type-string", "-type-object", "-type-array", "-type-vector", "-type-matrix", "-type-grid", "-type-boolean", "-type-function", "-type-integer", "-type-any", "-type-null", "-type-collection", "-type-sequence", "-type-regexp", "-type-never"];
|
|
17
23
|
};
|
|
18
24
|
export type CollectionApiName = typeof api.collection[number];
|
|
19
25
|
export type ArrayApiName = typeof api.array[number];
|
|
@@ -28,11 +34,17 @@ export type SpecialExpressionsApiName = string;
|
|
|
28
34
|
export type StringApiName = typeof api.string[number];
|
|
29
35
|
export type BitwiseApiName = typeof api.bitwise[number];
|
|
30
36
|
export type AssertApiName = typeof api.assert[number];
|
|
31
|
-
export type
|
|
37
|
+
export type GridApiName = typeof api.grid[number];
|
|
38
|
+
export type MatrixApiName = typeof api.matrix[number];
|
|
39
|
+
export type NumberTheoryApiName = typeof api.numberTheory[number];
|
|
40
|
+
export type VectorApiName = typeof api.vector[number];
|
|
41
|
+
export type LinAlgApiName = typeof api.linAlg[number];
|
|
42
|
+
export type RandomApiName = typeof api.random[number];
|
|
43
|
+
export type NormalExpressionName = CollectionApiName | ArrayApiName | SequenceApiName | MathApiName | FunctionalApiName | MiscApiName | ObjectApiName | PredicateApiName | RegularExpressionApiName | StringApiName | BitwiseApiName | AssertApiName | MatrixApiName | VectorApiName | LinAlgApiName | GridApiName | NumberTheoryApiName | RandomApiName;
|
|
32
44
|
export type FunctionName = NormalExpressionName | SpecialExpressionsApiName;
|
|
33
45
|
export type ShorthandName = typeof api.shorthand[number];
|
|
34
46
|
export type DatatypeName = typeof api.datatype[number];
|
|
35
|
-
declare const apiNames: readonly ["count", "get", "get-in", "contains?", "assoc", "assoc-in", "++", "not-empty", "every?", "not-every?", "any?", "not-any?", "update", "update-in", "range", "repeat", "flatten", "mapcat", "nth", "push", "pop", "unshift", "shift", "slice", "splice", "reductions", "reduce", "reduce-right", "map", "filter", "position", "index-of", "last-index-of", "some", "reverse", "first", "second", "last", "rest", "next", "take", "take-last", "take-while", "drop", "drop-last", "drop-while", "sort", "sort-by", "distinct", "remove", "remove-at", "split-at", "split-with", "frequencies", "group-by", "partition", "partition-all", "partition-by", "starts-with?", "ends-with?", "interleave", "interpose", "+", "-", "*", "/", "mod", "%", "quot", "inc", "dec", "√", "∛", "**", "round", "trunc", "floor", "ceil", "min", "max", "abs", "sign", "log", "log2", "log10", "sin", "cos", "tan", "asin", "acos", "atan", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh", "apply", "identity", "partial", "comp", "constantly", "juxt", "complement", "every-pred", "some-pred", "fnull", "≠", "=", "<", ">", "≤", "≥", "!", "write!", "iso-date->epoch", "epoch->iso-date", "boolean", "compare", "identical?", "json-parse", "json-stringify", "dissoc", "keys", "vals", "entries", "find", "merge", "merge-with", "zipmap", "select-keys", "boolean?", "null?", "number?", "string?", "function?", "integer?", "array?", "object?", "coll?", "seq?", "regexp?", "zero?", "pos?", "neg?", "even?", "odd?", "finite?", "nan?", "negative-infinity?", "positive-infinity?", "false?", "true?", "empty?", "not-empty?", "regexp", "match", "replace", "replace-all", "string-repeat", "str", "number", "lower-case", "upper-case", "trim", "trim-left", "trim-right", "pad-left", "pad-right", "split", "split-lines", "template", "to-char-code", "from-char-code", "encode-base64", "decode-base64", "encode-uri-component", "decode-uri-component", "join", "capitalize", "blank?", "<<", ">>", ">>>", "~", "&", "bit-and-not", "|", "^", "bit-flip", "bit-clear", "bit-set", "bit-test", "assert", "assert=", "assert!=", "assert-gt", "assert-lt", "assert-gte", "assert-lte", "assert-true", "assert-false", "assert-truthy", "assert-falsy", "assert-null", "assert-throws", "assert-throws-error", "assert-not-throws", "-short-regexp", "-short-fn", "-type-number", "-type-string", "-type-object", "-type-array", "-type-boolean", "-type-function", "-type-integer", "-type-any", "-type-null", "-type-collection", "-type-sequence", "-type-regexp", "-type-never"];
|
|
47
|
+
declare const apiNames: readonly ["filter", "map", "reduce", "reduce-right", "reductions", "count", "get", "get-in", "contains?", "assoc", "assoc-in", "++", "not-empty", "every?", "not-every?", "any?", "not-any?", "update", "update-in", "range", "repeat", "flatten", "mapcat", "nth", "push", "pop", "unshift", "shift", "slice", "splice", "position", "index-of", "last-index-of", "some", "reverse", "first", "second", "last", "rest", "next", "take", "take-last", "take-while", "drop", "drop-last", "drop-while", "sort", "sort-by", "distinct", "remove", "remove-at", "split-at", "split-with", "frequencies", "group-by", "partition", "partition-all", "partition-by", "starts-with?", "ends-with?", "interleave", "interpose", "+", "-", "*", "/", "~", "mod", "rem", "quot", "inc", "dec", "sqrt", "cbrt", "^", "round", "trunc", "floor", "ceil", "min", "max", "abs", "sign", "ln", "log2", "log10", "sin", "cos", "tan", "asin", "acos", "atan", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh", "|>", "apply", "identity", "comp", "constantly", "juxt", "complement", "every-pred", "some-pred", "fnull", "≠", "=", "<", ">", "≤", "≥", "!", "write!", "iso-date->epoch", "epoch->iso-date", "boolean", "compare", "identical?", "json-parse", "json-stringify", "dissoc", "keys", "vals", "entries", "find", "merge", "merge-with", "zipmap", "select-keys", "boolean?", "null?", "number?", "string?", "function?", "integer?", "array?", "object?", "coll?", "seq?", "regexp?", "zero?", "pos?", "neg?", "even?", "odd?", "finite?", "nan?", "negative-infinity?", "positive-infinity?", "false?", "true?", "empty?", "not-empty?", "vector?", "grid?", "matrix?", "regexp", "match", "replace", "replace-all", "string-repeat", "str", "number", "lower-case", "upper-case", "trim", "trim-left", "trim-right", "pad-left", "pad-right", "split", "split-lines", "template", "to-char-code", "from-char-code", "encode-base64", "decode-base64", "encode-uri-component", "decode-uri-component", "join", "capitalize", "blank?", "<<", ">>", ">>>", "bit-not", "&", "bit-and-not", "|", "xor", "bit-flip", "bit-clear", "bit-set", "bit-test", "assert", "assert=", "assert!=", "assert-gt", "assert-lt", "assert-gte", "assert-lte", "assert-true", "assert-false", "assert-truthy", "assert-falsy", "assert-null", "assert-throws", "assert-throws-error", "assert-not-throws", "mat:mul", "mat:det", "mat:inv", "mat:adj", "mat:cofactor", "mat:minor", "mat:trace", "mat:symmetric?", "mat:triangular?", "mat:upper-triangular?", "mat:lower-triangular?", "mat:diagonal?", "mat:square?", "mat:orthogonal?", "mat:identity?", "mat:invertible?", "mat:hilbert", "mat:vandermonde", "mat:band", "mat:banded?", "mat:rank", "mat:frobenius-norm", "mat:1-norm", "mat:inf-norm", "mat:max-norm", "vec:monotonic?", "vec:strictly-monotonic?", "vec:increasing?", "vec:decreasing?", "vec:strictly-increasing?", "vec:strictly-decreasing?", "vec:median", "vec:mode", "vec:min-index", "vec:max-index", "vec:sort-indices", "vec:count-values", "vec:linspace", "vec:ones", "vec:zeros", "vec:fill", "vec:generate", "vec:cumsum", "vec:cumprod", "vec:quartiles", "vec:percentile", "vec:quantile", "vec:histogram", "vec:ecdf", "vec:outliers?", "vec:outliers", "vec:bincount", "vec:winsorize", "vec:mse", "vec:mae", "vec:rmse", "vec:smape", "vec:mean", "vec:moving-mean", "vec:centered-moving-mean", "vec:running-mean", "vec:median", "vec:moving-median", "vec:centered-moving-median", "vec:running-median", "vec:variance", "vec:moving-variance", "vec:centered-moving-variance", "vec:running-variance", "vec:sample-variance", "vec:moving-sample-variance", "vec:centered-moving-sample-variance", "vec:running-sample-variance", "vec:sum", "vec:moving-sum", "vec:centered-moving-sum", "vec:running-sum", "vec:prod", "vec:moving-prod", "vec:centered-moving-prod", "vec:running-prod", "vec:min", "vec:moving-min", "vec:centered-moving-min", "vec:running-min", "vec:max", "vec:moving-max", "vec:centered-moving-max", "vec:running-max", "vec:stdev", "vec:moving-stdev", "vec:centered-moving-stdev", "vec:running-stdev", "vec:sample-stdev", "vec:moving-sample-stdev", "vec:centered-moving-sample-stdev", "vec:running-sample-stdev", "vec:iqr", "vec:moving-iqr", "vec:centered-moving-iqr", "vec:running-iqr", "vec:span", "vec:moving-span", "vec:centered-moving-span", "vec:running-span", "vec:geometric-mean", "vec:moving-geometric-mean", "vec:centered-moving-geometric-mean", "vec:running-geometric-mean", "vec:harmonic-mean", "vec:moving-harmonic-mean", "vec:centered-moving-harmonic-mean", "vec:running-harmonic-mean", "vec:skewness", "vec:moving-skewness", "vec:centered-moving-skewness", "vec:running-skewness", "vec:sample-skewness", "vec:moving-sample-skewness", "vec:centered-moving-sample-skewness", "vec:running-sample-skewness", "vec:kurtosis", "vec:moving-kurtosis", "vec:centered-moving-kurtosis", "vec:running-kurtosis", "vec:sample-kurtosis", "vec:moving-sample-kurtosis", "vec:centered-moving-sample-kurtosis", "vec:running-sample-kurtosis", "vec:excess-kurtosis", "vec:moving-excess-kurtosis", "vec:centered-moving-excess-kurtosis", "vec:running-excess-kurtosis", "vec:sample-excess-kurtosis", "vec:moving-sample-excess-kurtosis", "vec:centered-moving-sample-excess-kurtosis", "vec:running-sample-excess-kurtosis", "vec:rms", "vec:moving-rms", "vec:centered-moving-rms", "vec:running-rms", "vec:mad", "vec:moving-mad", "vec:centered-moving-mad", "vec:running-mad", "vec:medad", "vec:moving-medad", "vec:centered-moving-medad", "vec:running-medad", "vec:gini-coefficient", "vec:moving-gini-coefficient", "vec:centered-moving-gini-coefficient", "vec:running-gini-coefficient", "vec:entropy", "vec:moving-entropy", "vec:centered-moving-entropy", "vec:running-entropy", "vec:skewness", "vec:moving-skewness", "vec:centered-moving-skewness", "vec:running-skewness", "lin:dot", "lin:cross", "lin:normalize-minmax", "lin:normalize-zscore", "lin:normalize-robust", "lin:normalize-l1", "lin:normalize-l2", "lin:normalize-log", "lin:angle", "lin:projection", "lin:orthogonal?", "lin:parallel?", "lin:collinear?", "lin:cosine-similarity", "lin:euclidean-distance", "lin:euclidean-norm", "lin:manhattan-distance", "lin:manhattan-norm", "lin:hamming-distance", "lin:hamming-norm", "lin:chebyshev-distance", "lin:chebyshev-norm", "lin:minkowski-distance", "lin:minkowski-norm", "lin:cov", "lin:corr", "lin:spearman-corr", "lin:pearson-corr", "lin:kendall-tau", "lin:autocorrelation", "lin:cross-correlation", "lin:rref", "lin:solve", "grid:every?", "grid:some?", "grid:every-row?", "grid:some-row?", "grid:every-col?", "grid:some-col?", "grid:row", "grid:col", "grid:shape", "grid:generate", "grid:reshape", "grid:transpose", "grid:flip-h", "grid:flip-v", "grid:rotate", "grid:reverse-rows", "grid:reverse-cols", "grid:slice", "grid:slice-rows", "grid:slice-cols", "grid:splice-rows", "grid:splice-cols", "grid:concat-rows", "grid:concat-cols", "grid:map", "grid:mapi", "grid:reduce", "grid:reducei", "grid:push-rows", "grid:unshift-rows", "grid:pop-row", "grid:shift-row", "grid:push-cols", "grid:unshift-cols", "grid:pop-col", "grid:shift-col", "grid:from-array", "nth:abundant-seq", "nth:abundant-nth", "nth:abundant-take-while", "nth:abundant?", "nth:bell-seq", "nth:bell-nth", "nth:bell-take-while", "nth:bell?", "nth:catalan-seq", "nth:catalan-nth", "nth:catalan-take-while", "nth:catalan?", "nth:composite-seq", "nth:composite-nth", "nth:composite-take-while", "nth:composite?", "nth:factorial-seq", "nth:factorial-nth", "nth:factorial-take-while", "nth:factorial?", "nth:fibonacci-seq", "nth:fibonacci-nth", "nth:fibonacci-take-while", "nth:fibonacci?", "nth:geometric-seq", "nth:geometric-nth", "nth:geometric-take-while", "nth:geometric?", "nth:golomb-seq", "nth:golomb-nth", "nth:golomb-take-while", "nth:golomb?", "nth:happy-seq", "nth:happy-nth", "nth:happy-take-while", "nth:happy?", "nth:look-and-say-seq", "nth:look-and-say-nth", "nth:look-and-say-take-while", "nth:look-and-say?", "nth:lucas-seq", "nth:lucas-nth", "nth:lucas-take-while", "nth:lucas?", "nth:lucky-seq", "nth:lucky-nth", "nth:lucky-take-while", "nth:lucky?", "nth:mersenne-seq", "nth:mersenne-nth", "nth:mersenne-take-while", "nth:mersenne?", "nth:padovan-seq", "nth:padovan-nth", "nth:padovan-take-while", "nth:padovan?", "nth:partition-seq", "nth:partition-nth", "nth:partition-take-while", "nth:partition?", "nth:pell-seq", "nth:pell-nth", "nth:pell-take-while", "nth:pell?", "nth:perfect-seq", "nth:perfect-nth", "nth:perfect-take-while", "nth:perfect?", "nth:perfect-cube-seq", "nth:perfect-cube-nth", "nth:perfect-cube-take-while", "nth:perfect-cube?", "nth:perfect-power-seq", "nth:perfect-power-nth", "nth:perfect-power-take-while", "nth:perfect-power?", "nth:perfect-square-seq", "nth:perfect-square-nth", "nth:perfect-square-take-while", "nth:perfect-square?", "nth:polygonal-seq", "nth:polygonal-nth", "nth:polygonal-take-while", "nth:polygonal?", "nth:prime-seq", "nth:prime-nth", "nth:prime-take-while", "nth:prime?", "nth:recaman-seq", "nth:recaman-nth", "nth:recaman-take-while", "nth:recaman?", "nth:sylvester-seq", "nth:sylvester-nth", "nth:sylvester-take-while", "nth:sylvester?", "nth:thue-morse-seq", "nth:thue-morse-nth", "nth:thue-morse-take-while", "nth:thue-morse?", "nth:tribonacci-seq", "nth:tribonacci-nth", "nth:tribonacci-take-while", "nth:tribonacci?", "nth:collatz-seq", "nth:juggler-seq", "nth:bernoulli-seq", "nth:bernoulli-take-while", "nth:bernoulli-nth", "nth:combinations", "nth:count-combinations", "nth:derangements", "nth:count-derangements", "nth:divisors", "nth:count-divisors", "nth:proper-divisors", "nth:count-proper-divisors", "nth:prime-factors", "nth:count-prime-factors", "nth:distinct-prime-factors", "nth:count-distinct-prime-factors", "nth:factorial", "nth:partitions", "nth:count-partitions", "nth:permutations", "nth:count-permutations", "nth:power-set", "nth:count-power-set", "nth:coprime?", "nth:divisible-by?", "nth:gcd", "nth:lcm", "nth:multinomial", "nth:amicable?", "nth:euler-totient", "nth:mobius", "nth:mertens", "nth:sigma", "nth:carmichael-lambda", "nth:cartesian-product", "nth:perfect-power", "nth:mod-exp", "nth:mod-inv", "nth:extended-gcd", "nth:chinese-remainder", "nth:stirling-first", "nth:stirling-second", "!:random", "!:random-int", "!:random-int-inclusive", "!:random-float", "!:random-boolean", "!:random-item", "!:random-sample", "!:random-sample-unique", "!:shuffle", "!:random-normal", "!:random-exponential", "!:random-binomial", "!:random-poisson", "!:random-gamma", "!:random-pareto", "!:uuid", "!:random-char", "!:random-string", "!:random-id", "!:random-color", "-short-regexp", "-short-fn", "-type-number", "-type-string", "-type-object", "-type-array", "-type-vector", "-type-matrix", "-type-grid", "-type-boolean", "-type-function", "-type-integer", "-type-any", "-type-null", "-type-collection", "-type-sequence", "-type-regexp", "-type-never"];
|
|
36
48
|
export type ApiName = typeof apiNames[number];
|
|
37
49
|
export declare function isApiName(arg: string): arg is ApiName;
|
|
38
50
|
export declare const categoryRecord: {
|
|
@@ -49,12 +61,18 @@ export declare const categoryRecord: {
|
|
|
49
61
|
readonly Bitwise: true;
|
|
50
62
|
readonly Misc: true;
|
|
51
63
|
readonly Assert: true;
|
|
64
|
+
readonly Vector: true;
|
|
65
|
+
readonly 'Linear Algebra': true;
|
|
66
|
+
readonly Matrix: true;
|
|
67
|
+
readonly Grid: true;
|
|
68
|
+
readonly 'Number Theory': true;
|
|
69
|
+
readonly Random: true;
|
|
52
70
|
readonly Shorthand: true;
|
|
53
71
|
readonly Datatype: true;
|
|
54
72
|
};
|
|
55
73
|
export type Category = keyof typeof categoryRecord;
|
|
56
74
|
export declare const categories: Category[];
|
|
57
|
-
declare const dataTypes: readonly ["number", "string", "object", "array", "boolean", "function", "integer", "any", "null", "collection", "sequence", "regexp", "never"];
|
|
75
|
+
declare const dataTypes: readonly ["number", "string", "object", "array", "vector", "matrix", "grid", "boolean", "function", "integer", "any", "null", "collection", "sequence", "regexp", "never"];
|
|
58
76
|
export type DataType = typeof dataTypes[number];
|
|
59
77
|
export declare function isDataType(arg: string): arg is DataType;
|
|
60
78
|
export declare function getOperatorArgs(a: DataType | DataType[], b: DataType | DataType[]): Record<string, Argument>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FunctionReference } from '../..';
|
|
2
|
+
import type { NumberTheoryApiName } from '../../api';
|
|
3
|
+
type SeqKey<T extends string> = `nth:${T}-seq`;
|
|
4
|
+
type TakeWhileKey<T extends string> = `nth:${T}-take-while`;
|
|
5
|
+
type NthKey<T extends string> = `nth:${T}-nth`;
|
|
6
|
+
type PredKey<T extends string> = `nth:${T}?`;
|
|
7
|
+
type SequenceKeys<T extends string> = SeqKey<T> | TakeWhileKey<T> | NthKey<T> | PredKey<T>;
|
|
8
|
+
export type NumberTheorySequenceReference<T extends string> = {
|
|
9
|
+
[key in SequenceKeys<T>]: FunctionReference<'Number Theory'>;
|
|
10
|
+
};
|
|
11
|
+
export declare const numberTheoryReference: Record<NumberTheoryApiName, FunctionReference<'Number Theory'>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionReference } from '../..';
|
|
2
|
+
import type { VectorReductionKeys } from '../../../src/builtin/normalExpressions/categories/namespaces/vector/reductionFunctions';
|
|
3
|
+
import { type VectorApiName } from '../../api';
|
|
4
|
+
export type VectorReductionReference<T extends string> = {
|
|
5
|
+
[key in VectorReductionKeys<T>]: FunctionReference<'Vector'>;
|
|
6
|
+
};
|
|
7
|
+
export declare const vectorReference: Record<VectorApiName, FunctionReference<'Vector'>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VectorReductionReference } from '.';
|
|
2
|
+
export declare const kurtosisReference: VectorReductionReference<'kurtosis'>;
|
|
3
|
+
export declare const sampleKurtosisReference: VectorReductionReference<'sample-kurtosis'>;
|
|
4
|
+
export declare const excessKurtoisReference: VectorReductionReference<'excess-kurtosis'>;
|
|
5
|
+
export declare const sampleExcessKurtosisReference: VectorReductionReference<'sample-excess-kurtosis'>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VectorReductionReference } from '.';
|
|
2
|
+
export declare const meanReference: VectorReductionReference<'mean'>;
|
|
3
|
+
export declare const geometricMeanReference: VectorReductionReference<'geometric-mean'>;
|
|
4
|
+
export declare const harmonicMeanReference: VectorReductionReference<'harmonic-mean'>;
|