@danielsimonjr/mathts-functions 0.64.1 → 0.64.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/dist/algebra/decomposition/lup.d.ts.map +1 -1
- package/dist/algebra/rationalize.d.ts.map +1 -1
- package/dist/algebra/simplify/util.d.ts.map +1 -1
- package/dist/algebra/simplify/wildcards.d.ts +10 -0
- package/dist/algebra/simplify/wildcards.d.ts.map +1 -1
- package/dist/algebra/simplifyConstant.d.ts.map +1 -1
- package/dist/algebra/simplifyCore.d.ts.map +1 -1
- package/dist/algebra/solver/lsolve.d.ts.map +1 -1
- package/dist/algebra/solver/lsolveAll.d.ts +1 -0
- package/dist/algebra/solver/lsolveAll.d.ts.map +1 -1
- package/dist/algebra/solver/lusolve.d.ts.map +1 -1
- package/dist/algebra/solver/usolve.d.ts.map +1 -1
- package/dist/algebra/solver/usolveAll.d.ts +1 -0
- package/dist/algebra/solver/usolveAll.d.ts.map +1 -1
- package/dist/algebra/solver/utils/solveValidation.d.ts +4 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts.map +1 -1
- package/dist/algebra/sparse/csAmd.d.ts +4 -0
- package/dist/algebra/sparse/csAmd.d.ts.map +1 -1
- package/dist/algebra/sparse/csChol.d.ts +12 -0
- package/dist/algebra/sparse/csChol.d.ts.map +1 -1
- package/dist/algebra/sparse/csCounts.d.ts +4 -0
- package/dist/algebra/sparse/csCounts.d.ts.map +1 -1
- package/dist/algebra/sparse/csDfs.d.ts +0 -1
- package/dist/algebra/sparse/csDfs.d.ts.map +1 -1
- package/dist/algebra/sparse/csLu.d.ts +9 -0
- package/dist/algebra/sparse/csLu.d.ts.map +1 -1
- package/dist/algebra/sparse/csSpsolve.d.ts +4 -0
- package/dist/algebra/sparse/csSpsolve.d.ts.map +1 -1
- package/dist/algebra/sparse/csSqr.d.ts +5 -0
- package/dist/algebra/sparse/csSqr.d.ts.map +1 -1
- package/dist/algebra/sparse/csSymperm.d.ts +4 -0
- package/dist/algebra/sparse/csSymperm.d.ts.map +1 -1
- package/dist/arithmetic/ceil.d.ts.map +1 -1
- package/dist/arithmetic/divide.d.ts.map +1 -1
- package/dist/arithmetic/fix.d.ts.map +1 -1
- package/dist/arithmetic/floor.d.ts.map +1 -1
- package/dist/arithmetic/log.d.ts.map +1 -1
- package/dist/arithmetic/log10.d.ts.map +1 -1
- package/dist/arithmetic/nthRoot.d.ts.map +1 -1
- package/dist/arithmetic/round.d.ts.map +1 -1
- package/dist/arithmetic/utils/nodeOperations.d.ts +1 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts.map +1 -1
- package/dist/bitwise/leftShift.d.ts.map +1 -1
- package/dist/bitwise/rightArithShift.d.ts.map +1 -1
- package/dist/bitwise/rightLogShift.d.ts.map +1 -1
- package/dist/bitwise/useMatrixForArrayScalar.d.ts.map +1 -1
- package/dist/calculus-extra.d.ts.map +1 -1
- package/dist/cas/rat.d.ts +17 -0
- package/dist/cas/rat.d.ts.map +1 -1
- package/dist/clustering-extra.d.ts +4 -0
- package/dist/clustering-extra.d.ts.map +1 -1
- package/dist/complex/conj.d.ts.map +1 -1
- package/dist/complex/re.d.ts.map +1 -1
- package/dist/core/function/config.d.ts +8 -0
- package/dist/core/function/config.d.ts.map +1 -1
- package/dist/core/function/import.d.ts +5 -0
- package/dist/core/function/import.d.ts.map +1 -1
- package/dist/descriptive-stats.d.ts +16 -0
- package/dist/descriptive-stats.d.ts.map +1 -1
- package/dist/distribution-functions.d.ts.map +1 -1
- package/dist/expression/operators.d.ts +1 -1
- package/dist/factories/matrix-bridge.d.ts +7 -0
- package/dist/factories/matrix-bridge.d.ts.map +1 -1
- package/dist/geometry-extra.d.ts.map +1 -1
- package/dist/grad-forward.d.ts +1 -0
- package/dist/grad-forward.d.ts.map +1 -1
- package/dist/hypothesis-extra.d.ts +23 -0
- package/dist/hypothesis-extra.d.ts.map +1 -1
- package/dist/index.js +411 -126
- package/dist/logical/and.d.ts.map +1 -1
- package/dist/logical/nullish.d.ts.map +1 -1
- package/dist/matrix/det.d.ts +1 -1
- package/dist/matrix/det.d.ts.map +1 -1
- package/dist/matrix/diag.d.ts.map +1 -1
- package/dist/matrix/eigs/complexEigs.d.ts +5 -1
- package/dist/matrix/eigs/complexEigs.d.ts.map +1 -1
- package/dist/matrix/eigs/realSymmetric.d.ts +4 -0
- package/dist/matrix/eigs/realSymmetric.d.ts.map +1 -1
- package/dist/matrix/eigs.d.ts +1 -1
- package/dist/matrix/eigs.d.ts.map +1 -1
- package/dist/matrix/inv.d.ts +1 -1
- package/dist/matrix/inv.d.ts.map +1 -1
- package/dist/matrix/matrixFromColumns.d.ts.map +1 -1
- package/dist/matrix/matrixFromRows.d.ts.map +1 -1
- package/dist/matrix/native-accel.d.ts.map +1 -1
- package/dist/matrix/ones.d.ts.map +1 -1
- package/dist/matrix/pinv.d.ts +1 -1
- package/dist/matrix/pinv.d.ts.map +1 -1
- package/dist/matrix/range.d.ts.map +1 -1
- package/dist/matrix/resize.d.ts.map +1 -1
- package/dist/matrix/sqrtm.d.ts +1 -1
- package/dist/matrix/sqrtm.d.ts.map +1 -1
- package/dist/matrix/subset.d.ts.map +1 -1
- package/dist/matrix/utils/zerosAndOnes.d.ts +13 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts.map +1 -1
- package/dist/matrix/zeros.d.ts.map +1 -1
- package/dist/ml/glm.d.ts +2 -0
- package/dist/ml/glm.d.ts.map +1 -1
- package/dist/ml/kde.d.ts +1 -0
- package/dist/ml/kde.d.ts.map +1 -1
- package/dist/ml/logistic-regression.d.ts +2 -0
- package/dist/ml/logistic-regression.d.ts.map +1 -1
- package/dist/ml/ols.d.ts +2 -0
- package/dist/ml/ols.d.ts.map +1 -1
- package/dist/ml/regularized-regression.d.ts +6 -0
- package/dist/ml/regularized-regression.d.ts.map +1 -1
- package/dist/numeric/numeric-jacobian.d.ts +1 -0
- package/dist/numeric/numeric-jacobian.d.ts.map +1 -1
- package/dist/numeric-extra.d.ts.map +1 -1
- package/dist/optimization-extra.d.ts +8 -0
- package/dist/optimization-extra.d.ts.map +1 -1
- package/dist/plain/number/arithmetic.d.ts +15 -1
- package/dist/plain/number/arithmetic.d.ts.map +1 -1
- package/dist/plain/number/bitwise.d.ts +35 -0
- package/dist/plain/number/bitwise.d.ts.map +1 -1
- package/dist/plain/number/combinations.d.ts +8 -0
- package/dist/plain/number/combinations.d.ts.map +1 -1
- package/dist/plain/number/logical.d.ts +4 -0
- package/dist/plain/number/logical.d.ts.map +1 -1
- package/dist/plain/number/probability.d.ts +14 -0
- package/dist/plain/number/probability.d.ts.map +1 -1
- package/dist/plain/number/relational.d.ts +12 -0
- package/dist/plain/number/relational.d.ts.map +1 -1
- package/dist/plain/number/trigonometry.d.ts +33 -0
- package/dist/plain/number/trigonometry.d.ts.map +1 -1
- package/dist/plain/number/utils.d.ts +5 -0
- package/dist/plain/number/utils.d.ts.map +1 -1
- package/dist/probability/util/seededRNG.d.ts +6 -0
- package/dist/probability/util/seededRNG.d.ts.map +1 -1
- package/dist/regression-extra.d.ts +1 -0
- package/dist/regression-extra.d.ts.map +1 -1
- package/dist/signal/iir-design.d.ts.map +1 -1
- package/dist/signal/remez-exchange.d.ts +4 -0
- package/dist/signal/remez-exchange.d.ts.map +1 -1
- package/dist/signal-filter-extra.d.ts +1 -0
- package/dist/signal-filter-extra.d.ts.map +1 -1
- package/dist/special/hypergeometric.d.ts +1 -1
- package/dist/special/niche.d.ts +2 -2
- package/dist/special/wave-functions.d.ts +4 -4
- package/dist/special/zeta.d.ts.map +1 -1
- package/dist/stats/power-analysis.d.ts +1 -0
- package/dist/stats/power-analysis.d.ts.map +1 -1
- package/dist/trigonometry/atan2.d.ts.map +1 -1
- package/dist/type/bignumber/BigNumber.d.ts +1 -1
- package/dist/type/bignumber/BigNumber.d.ts.map +1 -1
- package/dist/type/local/Decimal.d.ts +1 -0
- package/dist/type/local/Decimal.d.ts.map +1 -1
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts +28 -38
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts.map +1 -1
- package/dist/type/matrix/MatrixIndex.d.ts.map +1 -1
- package/dist/type/matrix/Spa.d.ts +1 -1
- package/dist/type/matrix/function/index.d.ts.map +1 -1
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts.map +1 -1
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts.map +1 -1
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts.map +1 -1
- package/dist/type/unit/physicalConstants.d.ts +1 -1
- package/dist/type/unit/physicalConstants.d.ts.map +1 -1
- package/dist/typed/arithmetic.d.ts +91 -91
- package/dist/typed/arithmetic.d.ts.map +1 -1
- package/dist/typed/bitwise.d.ts +14 -14
- package/dist/typed/bitwise.d.ts.map +1 -1
- package/dist/typed/cas.d.ts.map +1 -1
- package/dist/typed/combinatorics.d.ts +21 -21
- package/dist/typed/combinatorics.d.ts.map +1 -1
- package/dist/typed/complex.d.ts +8 -8
- package/dist/typed/complex.d.ts.map +1 -1
- package/dist/typed/distributions.d.ts +28 -28
- package/dist/typed/distributions.d.ts.map +1 -1
- package/dist/typed/geometry.d.ts +4 -4
- package/dist/typed/graph.d.ts.map +1 -1
- package/dist/typed/hypothesis.d.ts +26 -0
- package/dist/typed/hypothesis.d.ts.map +1 -1
- package/dist/typed/integration.d.ts +1 -1
- package/dist/typed/logical.d.ts +10 -10
- package/dist/typed/logical.d.ts.map +1 -1
- package/dist/typed/matrix-ops.d.ts +9 -9
- package/dist/typed/matrix-ops.d.ts.map +1 -1
- package/dist/typed/numeric.d.ts +4 -4
- package/dist/typed/numeric.d.ts.map +1 -1
- package/dist/typed/polynomial-ideal.d.ts +10 -0
- package/dist/typed/polynomial-ideal.d.ts.map +1 -1
- package/dist/typed/probability.d.ts +16 -16
- package/dist/typed/probability.d.ts.map +1 -1
- package/dist/typed/relational.d.ts +14 -14
- package/dist/typed/relational.d.ts.map +1 -1
- package/dist/typed/set.d.ts +20 -20
- package/dist/typed/set.d.ts.map +1 -1
- package/dist/typed/signal.d.ts +23 -23
- package/dist/typed/signal.d.ts.map +1 -1
- package/dist/typed/special.d.ts +76 -76
- package/dist/typed/special.d.ts.map +1 -1
- package/dist/typed/statistics.d.ts +34 -34
- package/dist/typed/statistics.d.ts.map +1 -1
- package/dist/typed/string.d.ts +10 -10
- package/dist/typed/string.d.ts.map +1 -1
- package/dist/typed/trigonometry.d.ts +38 -38
- package/dist/typed/trigonometry.d.ts.map +1 -1
- package/dist/typed/unit.d.ts +4 -4
- package/dist/typed/unit.d.ts.map +1 -1
- package/dist/types.d.ts +7 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/bignumber/bitwise.d.ts +21 -0
- package/dist/utils/bignumber/bitwise.d.ts.map +1 -1
- package/dist/utils/bignumber/nearlyEqual.d.ts +16 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -1
- package/dist/utils/emitter.d.ts +1 -0
- package/dist/utils/emitter.d.ts.map +1 -1
- package/dist/utils/factory.d.ts +2 -1
- package/dist/utils/factory.d.ts.map +1 -1
- package/dist/utils/is.d.ts +140 -0
- package/dist/utils/is.d.ts.map +1 -1
- package/dist/utils/noop.d.ts +3 -0
- package/dist/utils/noop.d.ts.map +1 -1
- package/dist/utils/product.d.ts +4 -1
- package/dist/utils/product.d.ts.map +1 -1
- package/dist/wasm/WasmLoader.d.ts +6 -0
- package/dist/wasm/WasmLoader.d.ts.map +1 -1
- package/dist/wasm/elementwise/wasm-bridge.d.ts +1 -0
- package/dist/wasm/elementwise/wasm-bridge.d.ts.map +1 -1
- package/dist/wasm/special/scalars.d.ts +22 -0
- package/dist/wasm/special/scalars.d.ts.map +1 -1
- package/dist/wasm/special/wasm-bridge.d.ts +80 -0
- package/dist/wasm/special/wasm-bridge.d.ts.map +1 -1
- package/package.json +76 -76
- package/types/assemblyscript.d.ts +101 -101
- package/types/index.d.ts +7801 -7801
- package/types/modules.d.ts +19 -19
|
@@ -22,73 +22,73 @@ export type NormalizationType = 'unbiased' | 'uncorrected' | 'biased';
|
|
|
22
22
|
/**
|
|
23
23
|
* Parallel sum with typed-function dispatch
|
|
24
24
|
*/
|
|
25
|
-
export declare const parallelStatSum: import("
|
|
25
|
+
export declare const parallelStatSum: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
26
26
|
/**
|
|
27
27
|
* Parallel mean with typed-function dispatch
|
|
28
28
|
*/
|
|
29
|
-
export declare const parallelStatMean: import("
|
|
29
|
+
export declare const parallelStatMean: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
30
30
|
/**
|
|
31
31
|
* Parallel variance with typed-function dispatch
|
|
32
32
|
*
|
|
33
33
|
* Uses Welford's algorithm for numerical stability
|
|
34
34
|
*/
|
|
35
|
-
export declare const parallelStatVariance: import("
|
|
35
|
+
export declare const parallelStatVariance: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
36
36
|
/**
|
|
37
37
|
* Parallel standard deviation with typed-function dispatch
|
|
38
38
|
*/
|
|
39
|
-
export declare const parallelStatStd: import("
|
|
39
|
+
export declare const parallelStatStd: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
40
40
|
/**
|
|
41
41
|
* Parallel minimum with typed-function dispatch
|
|
42
42
|
*/
|
|
43
|
-
export declare const parallelStatMin: import("
|
|
43
|
+
export declare const parallelStatMin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
44
44
|
/**
|
|
45
45
|
* Parallel maximum with typed-function dispatch
|
|
46
46
|
*/
|
|
47
|
-
export declare const parallelStatMax: import("
|
|
47
|
+
export declare const parallelStatMax: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
48
48
|
/**
|
|
49
49
|
* Parallel minmax with typed-function dispatch
|
|
50
50
|
* Returns both min and max in a single pass
|
|
51
51
|
*/
|
|
52
|
-
export declare const parallelStatMinMax: import("
|
|
52
|
+
export declare const parallelStatMinMax: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
53
53
|
/**
|
|
54
54
|
* Parallel median with typed-function dispatch
|
|
55
55
|
*
|
|
56
56
|
* Note: Median requires sorting which is O(n log n)
|
|
57
57
|
*/
|
|
58
|
-
export declare const parallelStatMedian: import("
|
|
58
|
+
export declare const parallelStatMedian: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
59
59
|
/**
|
|
60
60
|
* Parallel mode with typed-function dispatch
|
|
61
61
|
* Returns the most frequently occurring value(s)
|
|
62
62
|
*/
|
|
63
|
-
export declare const parallelStatMode: import("
|
|
63
|
+
export declare const parallelStatMode: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
64
64
|
/**
|
|
65
65
|
* Parallel product with typed-function dispatch
|
|
66
66
|
*/
|
|
67
|
-
export declare const parallelStatProd: import("
|
|
67
|
+
export declare const parallelStatProd: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
68
68
|
/**
|
|
69
69
|
* Parallel Euclidean norm (L2 norm) with typed-function dispatch
|
|
70
70
|
*/
|
|
71
|
-
export declare const parallelStatNorm: import("
|
|
71
|
+
export declare const parallelStatNorm: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
72
72
|
/**
|
|
73
73
|
* Parallel Euclidean distance with typed-function dispatch
|
|
74
74
|
*/
|
|
75
|
-
export declare const parallelStatDistance: import("
|
|
75
|
+
export declare const parallelStatDistance: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
76
76
|
/**
|
|
77
77
|
* Parallel Pearson correlation coefficient
|
|
78
78
|
*/
|
|
79
|
-
export declare const parallelStatCorr: import("
|
|
79
|
+
export declare const parallelStatCorr: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
80
80
|
/**
|
|
81
81
|
* Parallel Mean Absolute Deviation
|
|
82
82
|
*/
|
|
83
|
-
export declare const parallelStatMAD: import("
|
|
83
|
+
export declare const parallelStatMAD: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
84
84
|
/**
|
|
85
85
|
* Parallel cumulative sum
|
|
86
86
|
*/
|
|
87
|
-
export declare const parallelStatCumsum: import("
|
|
87
|
+
export declare const parallelStatCumsum: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
88
88
|
/**
|
|
89
89
|
* Parallel quantile computation
|
|
90
90
|
*/
|
|
91
|
-
export declare const parallelStatQuantile: import("
|
|
91
|
+
export declare const parallelStatQuantile: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
92
92
|
/**
|
|
93
93
|
* Compute the p-th percentile of a Float64Array.
|
|
94
94
|
*
|
|
@@ -102,7 +102,7 @@ export declare function parallelStatPercentile(data: Float64Array, p: f64): f64;
|
|
|
102
102
|
/**
|
|
103
103
|
* Parallel histogram computation
|
|
104
104
|
*/
|
|
105
|
-
export declare const parallelStatHistogram: import("
|
|
105
|
+
export declare const parallelStatHistogram: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
106
106
|
/**
|
|
107
107
|
* Select the k-th smallest element from an array using Hoare's quickselect algorithm.
|
|
108
108
|
* Average O(n) time complexity.
|
|
@@ -139,24 +139,24 @@ export declare function maxSelect(arr: number[], k: i32): number[];
|
|
|
139
139
|
* Primary export: typed statistics functions
|
|
140
140
|
*/
|
|
141
141
|
export declare const typedStatistics: {
|
|
142
|
-
sum: import("
|
|
143
|
-
mean: import("
|
|
144
|
-
variance: import("
|
|
145
|
-
std: import("
|
|
146
|
-
min: import("
|
|
147
|
-
max: import("
|
|
148
|
-
minMax: import("
|
|
149
|
-
median: import("
|
|
150
|
-
mode: import("
|
|
151
|
-
prod: import("
|
|
152
|
-
norm: import("
|
|
153
|
-
distance: import("
|
|
154
|
-
corr: import("
|
|
155
|
-
mad: import("
|
|
156
|
-
cumsum: import("
|
|
157
|
-
quantile: import("
|
|
142
|
+
sum: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
143
|
+
mean: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
144
|
+
variance: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
145
|
+
std: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
146
|
+
min: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
147
|
+
max: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
148
|
+
minMax: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
149
|
+
median: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
150
|
+
mode: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
151
|
+
prod: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
152
|
+
norm: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
153
|
+
distance: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
154
|
+
corr: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
155
|
+
mad: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
156
|
+
cumsum: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
157
|
+
quantile: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
158
158
|
percentile: typeof parallelStatPercentile;
|
|
159
|
-
histogram: import("
|
|
159
|
+
histogram: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
160
160
|
quickSelect: typeof quickSelect;
|
|
161
161
|
medianSelect: typeof medianSelect;
|
|
162
162
|
minSelect: typeof minSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../src/typed/statistics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAUH,0CAA0C;AAC1C,KAAK,GAAG,GAAG,MAAM,CAAC;AAElB,4BAA4B;AAC5B,KAAK,GAAG,GAAG,MAAM,CAAC;AAMlB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,CAAC;AAiBtE;;GAEG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../src/typed/statistics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAUH,0CAA0C;AAC1C,KAAK,GAAG,GAAG,MAAM,CAAC;AAElB,4BAA4B;AAC5B,KAAK,GAAG,G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MtD;AA8CD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,CAc/C;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAWzD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAWzD;AAMD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC;AAEF;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1D;AAED;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzD"}
|
package/dist/typed/string.d.ts
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* bin(0) // '0b0'
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export declare const bin: import("
|
|
38
|
+
export declare const bin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
39
39
|
/**
|
|
40
40
|
* Format a number as hexadecimal.
|
|
41
41
|
*
|
|
@@ -50,7 +50,7 @@ export declare const bin: import("typed-function").TypedFunction;
|
|
|
50
50
|
* hex(0) // '0x0'
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
export declare const hex: import("
|
|
53
|
+
export declare const hex: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
54
54
|
/**
|
|
55
55
|
* Format a number as octal.
|
|
56
56
|
*
|
|
@@ -65,7 +65,7 @@ export declare const hex: import("typed-function").TypedFunction;
|
|
|
65
65
|
* oct(0) // '0o0'
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
export declare const oct: import("
|
|
68
|
+
export declare const oct: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
69
69
|
/**
|
|
70
70
|
* Format a value of any type into a string.
|
|
71
71
|
*
|
|
@@ -85,7 +85,7 @@ export declare const oct: import("typed-function").TypedFunction;
|
|
|
85
85
|
* format(NaN) // 'NaN'
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
export declare const format: import("
|
|
88
|
+
export declare const format: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
89
89
|
/**
|
|
90
90
|
* Interpolate values into a string template.
|
|
91
91
|
*
|
|
@@ -100,15 +100,15 @@ export declare const format: import("typed-function").TypedFunction;
|
|
|
100
100
|
* print('pi ≈ $pi', { pi: Math.PI }, 4) // 'pi ≈ 3.142'
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
export declare const print: import("
|
|
103
|
+
export declare const print: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
104
104
|
/**
|
|
105
105
|
* All typed string-formatting functions.
|
|
106
106
|
*/
|
|
107
107
|
export declare const typedString: {
|
|
108
|
-
bin: import("
|
|
109
|
-
hex: import("
|
|
110
|
-
oct: import("
|
|
111
|
-
format: import("
|
|
112
|
-
print: import("
|
|
108
|
+
bin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
109
|
+
hex: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
110
|
+
oct: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
111
|
+
format: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
112
|
+
print: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
113
113
|
};
|
|
114
114
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/typed/string.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAkGH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/typed/string.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAkGH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,GAAG,oDAQd,CAAC;AAMH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,GAAG,oDAQd,CAAC;AAMH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,GAAG,oDAQd,CAAC;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,oDAyCjB,CAAC;AAMH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,KAAK,oDAShB,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC"}
|
|
@@ -14,98 +14,98 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* Sine function with parallel array support
|
|
16
16
|
*/
|
|
17
|
-
export declare const sin: import("
|
|
17
|
+
export declare const sin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
18
18
|
/**
|
|
19
19
|
* Cosine function with parallel array support
|
|
20
20
|
*/
|
|
21
|
-
export declare const cos: import("
|
|
21
|
+
export declare const cos: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
22
22
|
/**
|
|
23
23
|
* Tangent function with parallel array support
|
|
24
24
|
*/
|
|
25
|
-
export declare const tan: import("
|
|
25
|
+
export declare const tan: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
26
26
|
/**
|
|
27
27
|
* Cosecant function (1/sin)
|
|
28
28
|
*/
|
|
29
|
-
export declare const csc: import("
|
|
29
|
+
export declare const csc: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
30
30
|
/**
|
|
31
31
|
* Secant function (1/cos)
|
|
32
32
|
*/
|
|
33
|
-
export declare const sec: import("
|
|
33
|
+
export declare const sec: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
34
34
|
/**
|
|
35
35
|
* Cotangent function (1/tan)
|
|
36
36
|
*/
|
|
37
|
-
export declare const cot: import("
|
|
37
|
+
export declare const cot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
38
38
|
/**
|
|
39
39
|
* Arc sine (inverse sine)
|
|
40
40
|
*/
|
|
41
|
-
export declare const asin: import("
|
|
41
|
+
export declare const asin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
42
42
|
/**
|
|
43
43
|
* Arc cosine (inverse cosine)
|
|
44
44
|
*/
|
|
45
|
-
export declare const acos: import("
|
|
45
|
+
export declare const acos: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
46
46
|
/**
|
|
47
47
|
* Arc tangent (inverse tangent)
|
|
48
48
|
*/
|
|
49
|
-
export declare const atan: import("
|
|
49
|
+
export declare const atan: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
50
50
|
/**
|
|
51
51
|
* Arc tangent with two arguments (atan2)
|
|
52
52
|
*/
|
|
53
|
-
export declare const atan2: import("
|
|
53
|
+
export declare const atan2: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
54
54
|
/**
|
|
55
55
|
* Arc cosecant
|
|
56
56
|
*/
|
|
57
|
-
export declare const acsc: import("
|
|
57
|
+
export declare const acsc: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
58
58
|
/**
|
|
59
59
|
* Arc secant
|
|
60
60
|
*/
|
|
61
|
-
export declare const asec: import("
|
|
61
|
+
export declare const asec: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
62
62
|
/**
|
|
63
63
|
* Arc cotangent
|
|
64
64
|
*/
|
|
65
|
-
export declare const acot: import("
|
|
65
|
+
export declare const acot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
66
66
|
/**
|
|
67
67
|
* Inverse hyperbolic sine
|
|
68
68
|
*/
|
|
69
|
-
export declare const asinh: import("
|
|
69
|
+
export declare const asinh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
70
70
|
/**
|
|
71
71
|
* Inverse hyperbolic cosine
|
|
72
72
|
*/
|
|
73
|
-
export declare const acosh: import("
|
|
73
|
+
export declare const acosh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
74
74
|
/**
|
|
75
75
|
* Inverse hyperbolic tangent
|
|
76
76
|
*/
|
|
77
|
-
export declare const atanh: import("
|
|
77
|
+
export declare const atanh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
78
78
|
/**
|
|
79
79
|
* Convert degrees to radians
|
|
80
80
|
*/
|
|
81
|
-
export declare const toRadians: import("
|
|
81
|
+
export declare const toRadians: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
82
82
|
/**
|
|
83
83
|
* Convert radians to degrees
|
|
84
84
|
*/
|
|
85
|
-
export declare const toDegrees: import("
|
|
85
|
+
export declare const toDegrees: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
86
86
|
/**
|
|
87
87
|
* Hypotenuse (sqrt(a^2 + b^2)) without intermediate overflow
|
|
88
88
|
*/
|
|
89
|
-
export declare const hypot: import("
|
|
89
|
+
export declare const hypot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
90
90
|
export declare const typedTrigonometry: {
|
|
91
|
-
sin: import("
|
|
92
|
-
cos: import("
|
|
93
|
-
tan: import("
|
|
94
|
-
csc: import("
|
|
95
|
-
sec: import("
|
|
96
|
-
cot: import("
|
|
97
|
-
asin: import("
|
|
98
|
-
acos: import("
|
|
99
|
-
atan: import("
|
|
100
|
-
atan2: import("
|
|
101
|
-
acsc: import("
|
|
102
|
-
asec: import("
|
|
103
|
-
acot: import("
|
|
104
|
-
asinh: import("
|
|
105
|
-
acosh: import("
|
|
106
|
-
atanh: import("
|
|
107
|
-
toRadians: import("
|
|
108
|
-
toDegrees: import("
|
|
109
|
-
hypot: import("
|
|
91
|
+
sin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
92
|
+
cos: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
93
|
+
tan: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
94
|
+
csc: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
95
|
+
sec: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
96
|
+
cot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
97
|
+
asin: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
98
|
+
acos: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
99
|
+
atan: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
100
|
+
atan2: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
101
|
+
acsc: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
102
|
+
asec: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
103
|
+
acot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
104
|
+
asinh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
105
|
+
acosh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
106
|
+
atanh: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
107
|
+
toRadians: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
108
|
+
toDegrees: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
109
|
+
hypot: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
110
110
|
};
|
|
111
111
|
//# sourceMappingURL=trigonometry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigonometry.d.ts","sourceRoot":"","sources":["../../src/typed/trigonometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkBH;;GAEG;AACH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"trigonometry.d.ts","sourceRoot":"","sources":["../../src/typed/trigonometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkBH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAad,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAad,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAad,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAiBd,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAiBd,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG,oDAiBd,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAqBf,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAoBf,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAiBf,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK,oDAGhB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAKf,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAKf,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,IAAI,oDAKf,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,KAAK,oDAehB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK,oDAehB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK,oDAiBhB,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,SAAS,oDAEpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS,oDAEpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK,oDAKhB,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CA2B7B,CAAC"}
|
package/dist/typed/unit.d.ts
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* @throws {DimensionMismatchError} when converting between incompatible
|
|
36
36
|
* dimension vectors (e.g. metres to seconds).
|
|
37
37
|
*/
|
|
38
|
-
export declare const to: import("
|
|
38
|
+
export declare const to: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
39
39
|
/**
|
|
40
40
|
* Pick a unit-of-magnitude representation that places the displayed value
|
|
41
41
|
* closest to 1.
|
|
@@ -49,12 +49,12 @@ export declare const to: import("typed-function").TypedFunction;
|
|
|
49
49
|
* toBest(new Unit(1000, 'g')); // 1 kg
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export declare const toBest: import("
|
|
52
|
+
export declare const toBest: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
53
53
|
/**
|
|
54
54
|
* All typed unit functions combined.
|
|
55
55
|
*/
|
|
56
56
|
export declare const typedUnit: {
|
|
57
|
-
to: import("
|
|
58
|
-
toBest: import("
|
|
57
|
+
to: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
58
|
+
toBest: import("@danielsimonjr/mathts-core").TypedFunction;
|
|
59
59
|
};
|
|
60
60
|
//# sourceMappingURL=unit.d.ts.map
|
package/dist/typed/unit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/typed/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAWH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/typed/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAWH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,EAAE,oDAGb,CAAC;AAMH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,oDAEjB,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,SAAS;;;CAGrB,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -2,13 +2,18 @@ export type { TypedFunction } from './core/function/typed.js';
|
|
|
2
2
|
export type { MathJsConfig, ConfigOptions } from './core/config.js';
|
|
3
3
|
export type { MathJsInstance } from './core/create.js';
|
|
4
4
|
export type { Matrix, MathCollection, MathNumericType, MathScalarType, MathArray, } from '../types/index.js';
|
|
5
|
-
|
|
5
|
+
/** The BigNumber type: the local Decimal class. */
|
|
6
|
+
export type BigNumber = import('./type/local/Decimal.js').Decimal;
|
|
7
|
+
/** The Complex type from `complex.js`. */
|
|
6
8
|
export type Complex = import('complex.js').default;
|
|
9
|
+
/** The Fraction type from `fraction.js`. */
|
|
7
10
|
export type Fraction = import('fraction.js').default;
|
|
11
|
+
/** Minimum structural type of a SparseMatrix value. */
|
|
8
12
|
export interface SparseMatrix {
|
|
9
13
|
type: 'SparseMatrix';
|
|
10
14
|
[key: string]: unknown;
|
|
11
15
|
}
|
|
16
|
+
/** Minimum structural type of a Unit value. */
|
|
12
17
|
export interface Unit {
|
|
13
18
|
type: 'Unit';
|
|
14
19
|
/** Numeric magnitude of the unit, stripped of its unit annotation. */
|
|
@@ -17,6 +22,7 @@ export interface Unit {
|
|
|
17
22
|
formatUnits(): string;
|
|
18
23
|
[key: string]: unknown;
|
|
19
24
|
}
|
|
25
|
+
/** Minimum structural type of a matrix constructor. */
|
|
20
26
|
export interface MatrixConstructor {
|
|
21
27
|
new (...args: unknown[]): unknown;
|
|
22
28
|
[key: string]: unknown;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,YAAY,EACV,MAAM,EACN,cAAc,EACd,eAAe,EACf,cAAc,EACd,SAAS,GACV,MAAM,mBAAmB,CAAC;AAG3B,MAAM,MAAM,SAAS,GAAG,OAAO,yBAAyB,EAAE,OAAO,CAAC;AAClE,MAAM,MAAM,OAAO,GAAG,OAAO,YAAY,EAAE,OAAO,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,OAAO,aAAa,EAAE,OAAO,CAAC;AAGrD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IAC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AAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -128,6 +128,27 @@ export declare function bitXor(x: BigNumberValue, y: BigNumberValue): BigNumberV
|
|
|
128
128
|
*
|
|
129
129
|
*/
|
|
130
130
|
export declare function leftShiftBigNumber(x: BigNumberValue, y: BigNumberValue): BigNumberValue;
|
|
131
|
+
/**
|
|
132
|
+
* Arithmetic right shift `x >> y` of two BigNumber integers.
|
|
133
|
+
*
|
|
134
|
+
* Special Cases:
|
|
135
|
+
* n >> -n = N
|
|
136
|
+
* n >> N = N
|
|
137
|
+
* N >> n = N
|
|
138
|
+
* I >> I = N
|
|
139
|
+
* n >> 0 = n
|
|
140
|
+
* I >> n = I
|
|
141
|
+
* -I >> n = -I
|
|
142
|
+
* -I >> I = -I
|
|
143
|
+
* n >> I = I
|
|
144
|
+
* -n >> I = -1
|
|
145
|
+
* 0 >> n = 0
|
|
146
|
+
*
|
|
147
|
+
* @param {BigNumber} x
|
|
148
|
+
* @param {BigNumber} y
|
|
149
|
+
* @return {BigNumber} Result of `x` >> `y`
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
131
152
|
export declare function rightArithShiftBigNumber(x: BigNumberValue, y: BigNumberValue): BigNumberValue;
|
|
132
153
|
/**
|
|
133
154
|
* Bitwise right logical shift
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitwise.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/bitwise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,UAAU,cAAc;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,aAAa,CAAC;IAC3B,QAAQ,IAAI,OAAO,CAAC;IACpB,SAAS,IAAI,OAAO,CAAC;IACrB,KAAK,IAAI,OAAO,CAAC;IACjB,M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|
4
|
+
* @param {BigNumber} b - Second value to compare
|
|
5
|
+
* @param {number} [relTol=1e-09] - The relative tolerance, indicating the maximum allowed difference relative to the larger absolute value. Must be greater than 0.
|
|
6
|
+
* @param {number} [absTol=0] - The minimum absolute tolerance, useful for comparisons near zero. Must be at least 0.
|
|
7
|
+
* @returns {boolean} whether the two numbers are nearly equal
|
|
8
|
+
* @throws {Error} If `relTol` is less than or equal to 0.
|
|
9
|
+
* @throws {Error} If `absTol` is less than 0.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* nearlyEqual(1.000000001, 1.0, 1e-9); // true
|
|
13
|
+
* nearlyEqual(1.000000002, 1.0, 0); // false
|
|
14
|
+
* nearlyEqual(1.0, 1.009, undefined, 0.02); // true
|
|
15
|
+
* nearlyEqual(0.000000001, 0.0, undefined, 1e-8); // true
|
|
16
|
+
*/
|
|
1
17
|
export declare function nearlyEqual(a: unknown, b: unknown, relTol?: number, absTol?: number): boolean;
|
|
2
18
|
//# sourceMappingURL=nearlyEqual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nearlyEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/nearlyEqual.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nearlyEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/bignumber/nearlyEqual.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,SAAO,EAAE,MAAM,SAAI,GAAG,OAAO,CAiCtF"}
|
package/dist/utils/emitter.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Event methods (`on`, `off`, `once`, `emit`) that `mixin` adds to an object. */
|
|
1
2
|
export interface EmitterMixin {
|
|
2
3
|
on: (event: string, callback: (...args: unknown[]) => void, context?: unknown) => void;
|
|
3
4
|
off: (event: string, callback?: (...args: unknown[]) => void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/utils/emitter.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvF,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC;IACtE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzF,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACnD;AASD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAYhE"}
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/utils/emitter.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvF,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,KAAK,IAAI,CAAC;IACtE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzF,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACnD;AASD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAYhE"}
|
package/dist/utils/factory.d.ts
CHANGED
|
@@ -51,7 +51,8 @@ export interface FactoryFunction<_TDeps = unknown, TResult = unknown> {
|
|
|
51
51
|
meta?: FactoryMeta;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Type for the create callback function
|
|
54
|
+
* Type for the create callback function. The callback gets the resolved dependencies and
|
|
55
|
+
* returns the result.
|
|
55
56
|
*/
|
|
56
57
|
export type CreateFunction<TDeps extends Record<string, any>, TResult> = (dependencies: TDeps) => TResult;
|
|
57
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/utils/factory.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,IAAI,iBAAiB,EAClC,MAAM,IAAI,UAAU,EACrB,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IAClE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;IA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