@danielsimonjr/mathts-functions 0.22.0 → 0.24.0
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/arithmetic/addScalar.d.ts.map +1 -1
- package/dist/arithmetic/subtractScalar.d.ts.map +1 -1
- package/dist/factories/scope.d.ts.map +1 -1
- package/dist/geometry/distance.d.ts.map +1 -1
- package/dist/index.js +96 -146
- package/dist/matrix/dot.d.ts.map +1 -1
- package/dist/probability/gamma.d.ts +3 -10
- package/dist/probability/gamma.d.ts.map +1 -1
- package/dist/relational/compare.d.ts +2 -1
- package/dist/relational/compare.d.ts.map +1 -1
- package/dist/relational/smaller.d.ts +1 -1
- package/dist/relational/smaller.d.ts.map +1 -1
- package/dist/statistics/corr.d.ts +0 -2
- package/dist/statistics/corr.d.ts.map +1 -1
- package/dist/statistics/cumsum.d.ts.map +1 -1
- package/dist/statistics/quantileSeq.d.ts +1 -1
- package/dist/statistics/quantileSeq.d.ts.map +1 -1
- package/dist/typed/arithmetic.d.ts.map +1 -1
- package/dist/typed/statistics.d.ts.map +1 -1
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -1
- package/dist/utils/isPrime.d.ts.map +1 -1
- package/package.json +76 -76
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addScalar.d.ts","sourceRoot":"","sources":["../../src/arithmetic/addScalar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"addScalar.d.ts","sourceRoot":"","sources":["../../src/arithmetic/addScalar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAe/D,UAAU,qBAAqB;IAC7B,KAAK,EAAE,aAAa,CAAC;CACtB;AAKD,eAAO,MAAM,eAAe,+EAwD3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subtractScalar.d.ts","sourceRoot":"","sources":["../../src/arithmetic/subtractScalar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"subtractScalar.d.ts","sourceRoot":"","sources":["../../src/arithmetic/subtractScalar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAe/D,UAAU,0BAA0B;IAClC,KAAK,EAAE,aAAa,CAAC;CACtB;AAKD,eAAO,MAAM,oBAAoB,oFAuDhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/factories/scope.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/factories/scope.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwIH;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAoChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distance.d.ts","sourceRoot":"","sources":["../../src/geometry/distance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"distance.d.ts","sourceRoot":"","sources":["../../src/geometry/distance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,oBAAoB;IAC5B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;IACvE,cAAc,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;IAC5E,cAAc,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;IAC1E,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC;CAC9C;AAcD,eAAO,MAAM,cAAc,8EAkgB1B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -510,7 +510,7 @@ __export(typed_exports, {
|
|
|
510
510
|
|
|
511
511
|
// src/typed/arithmetic.ts
|
|
512
512
|
import { mathTyped as mathTyped2, Complex, Fraction, BigNumber, Dual } from "@danielsimonjr/mathts-core";
|
|
513
|
-
import { pairwiseSum, neumaierSum, norm2 } from "@danielsimonjr/mathts-core";
|
|
513
|
+
import { pairwiseSum, neumaierSum, norm2, pairwiseDot } from "@danielsimonjr/mathts-core";
|
|
514
514
|
import { DenseMatrix as DenseMatrix2, backendManager as backendManager2, singularValues } from "@danielsimonjr/mathts-matrix";
|
|
515
515
|
|
|
516
516
|
// src/factories/matrix-bridge.ts
|
|
@@ -2310,11 +2310,7 @@ var dot = mathTyped2("dot", {
|
|
|
2310
2310
|
if (a.length !== b.length) {
|
|
2311
2311
|
throw new Error(`Vector lengths must match: ${a.length} vs ${b.length}`);
|
|
2312
2312
|
}
|
|
2313
|
-
|
|
2314
|
-
for (let i = 0; i < a.length; i++) {
|
|
2315
|
-
total += a[i] * b[i];
|
|
2316
|
-
}
|
|
2317
|
-
return total;
|
|
2313
|
+
return pairwiseDot(a, b);
|
|
2318
2314
|
},
|
|
2319
2315
|
// Parallel Float64Array dot product
|
|
2320
2316
|
"Float64Array, Float64Array": async (a, b) => {
|
|
@@ -2677,7 +2673,7 @@ var typedTrigonometry = {
|
|
|
2677
2673
|
};
|
|
2678
2674
|
|
|
2679
2675
|
// src/typed/statistics.ts
|
|
2680
|
-
import { mathTyped as mathTyped4 } from "@danielsimonjr/mathts-core";
|
|
2676
|
+
import { mathTyped as mathTyped4, neumaierCumsum } from "@danielsimonjr/mathts-core";
|
|
2681
2677
|
import { computePool as computePool3 } from "@danielsimonjr/mathts-parallel";
|
|
2682
2678
|
function toFloat64Array(arr7) {
|
|
2683
2679
|
return new Float64Array(arr7);
|
|
@@ -3031,24 +3027,16 @@ var parallelStatMAD = mathTyped4("parallelStatMAD", {
|
|
|
3031
3027
|
}
|
|
3032
3028
|
});
|
|
3033
3029
|
var parallelStatCumsum = mathTyped4("parallelStatCumsum", {
|
|
3034
|
-
// Float64Array
|
|
3030
|
+
// Float64Array — Neumaier-compensated prefix scan (exact where np.cumsum drifts O(n)·ε).
|
|
3035
3031
|
Float64Array: (data) => {
|
|
3036
3032
|
const result = new Float64Array(data.length);
|
|
3037
|
-
|
|
3038
|
-
for (let i = 0; i < data.length; i++) {
|
|
3039
|
-
sum3 += data[i];
|
|
3040
|
-
result[i] = sum3;
|
|
3041
|
-
}
|
|
3033
|
+
neumaierCumsum(data, result);
|
|
3042
3034
|
return result;
|
|
3043
3035
|
},
|
|
3044
3036
|
// Number array
|
|
3045
3037
|
Array: (arr7) => {
|
|
3046
|
-
const result =
|
|
3047
|
-
|
|
3048
|
-
for (let i = 0; i < arr7.length; i++) {
|
|
3049
|
-
sum3 += arr7[i];
|
|
3050
|
-
result.push(sum3);
|
|
3051
|
-
}
|
|
3038
|
+
const result = new Array(arr7.length);
|
|
3039
|
+
neumaierCumsum(arr7, result);
|
|
3052
3040
|
return result;
|
|
3053
3041
|
}
|
|
3054
3042
|
});
|
|
@@ -17430,7 +17418,12 @@ var factoryScope = {
|
|
|
17430
17418
|
matrix: createMatrixBridge(),
|
|
17431
17419
|
// Helper factory functions (lowercase) — factories call `complex(re, im)` etc.
|
|
17432
17420
|
complex: (re3, im3) => new Complex7(re3, im3),
|
|
17433
|
-
bignumber: (x) =>
|
|
17421
|
+
bignumber: (x) => {
|
|
17422
|
+
if (x instanceof BigNumber8) return x;
|
|
17423
|
+
if (typeof x === "string") return BigNumber8.parse(x);
|
|
17424
|
+
if (typeof x === "number") return BigNumber8.fromNumber(x);
|
|
17425
|
+
return BigNumber8.fromNumber(Number(x.valueOf()));
|
|
17426
|
+
},
|
|
17434
17427
|
fraction: (n, d) => new Fraction3(n, d ?? 1),
|
|
17435
17428
|
number: Number,
|
|
17436
17429
|
// Matrix helper factories
|
|
@@ -18498,7 +18491,7 @@ var createAddScalar = /* @__PURE__ */ factory(
|
|
|
18498
18491
|
return x.add(y);
|
|
18499
18492
|
},
|
|
18500
18493
|
"BigNumber, BigNumber": function(x, y) {
|
|
18501
|
-
return x.
|
|
18494
|
+
return x.add(y);
|
|
18502
18495
|
},
|
|
18503
18496
|
"bigint, bigint": function(x, y) {
|
|
18504
18497
|
return x + y;
|
|
@@ -18822,7 +18815,7 @@ var createSubtractScalar = /* @__PURE__ */ factory(
|
|
|
18822
18815
|
return x.sub(y);
|
|
18823
18816
|
},
|
|
18824
18817
|
"BigNumber, BigNumber": function(x, y) {
|
|
18825
|
-
return x.
|
|
18818
|
+
return x.sub(y);
|
|
18826
18819
|
},
|
|
18827
18820
|
"bigint, bigint": function(x, y) {
|
|
18828
18821
|
return x - y;
|
|
@@ -20048,12 +20041,17 @@ function nearlyEqual2(a, b, relTol = 1e-9, absTol = 0) {
|
|
|
20048
20041
|
return false;
|
|
20049
20042
|
}
|
|
20050
20043
|
if (!x.isFinite() || !y.isFinite()) {
|
|
20051
|
-
return x.
|
|
20044
|
+
return x.equals(y);
|
|
20052
20045
|
}
|
|
20053
|
-
if (x.
|
|
20046
|
+
if (x.equals(y)) {
|
|
20054
20047
|
return true;
|
|
20055
20048
|
}
|
|
20056
|
-
|
|
20049
|
+
const ax = x.abs();
|
|
20050
|
+
const ay = y.abs();
|
|
20051
|
+
const maxAbs = ax.greaterThanOrEqual(ay) ? ax : ay;
|
|
20052
|
+
const relBound = maxAbs.mul(relTol);
|
|
20053
|
+
const diff2 = x.sub(y).abs();
|
|
20054
|
+
return diff2.lessThanOrEqual(relBound) || diff2.lessThanOrEqual(absTol);
|
|
20057
20055
|
}
|
|
20058
20056
|
|
|
20059
20057
|
// src/utils/complex.ts
|
|
@@ -20096,7 +20094,7 @@ var createEqualScalar = /* @__PURE__ */ factory(
|
|
|
20096
20094
|
return nearlyEqual(x, y, config2.relTol, config2.absTol);
|
|
20097
20095
|
},
|
|
20098
20096
|
"BigNumber, BigNumber": function(x, y) {
|
|
20099
|
-
return x.
|
|
20097
|
+
return x.equals(y) || nearlyEqual2(x, y, config2.relTol, config2.absTol);
|
|
20100
20098
|
},
|
|
20101
20099
|
"bigint, bigint": function(x, y) {
|
|
20102
20100
|
return x === y;
|
|
@@ -20988,9 +20986,9 @@ var createIsPrime = /* @__PURE__ */ factory(
|
|
|
20988
20986
|
return true;
|
|
20989
20987
|
},
|
|
20990
20988
|
BigNumber: function(n) {
|
|
20991
|
-
if (n.
|
|
20992
|
-
if (n.mod(2).
|
|
20993
|
-
if (n.
|
|
20989
|
+
if (n.lessThanOrEqual(3)) return n.gt(1);
|
|
20990
|
+
if (n.mod(2).equals(0) || n.mod(3).equals(0)) return false;
|
|
20991
|
+
if (n.lessThan(Math.pow(2, 32))) {
|
|
20994
20992
|
const x = n.toNumber();
|
|
20995
20993
|
for (let i = 5; i * i <= x; i += 6) {
|
|
20996
20994
|
if (x % i === 0 || x % (i + 2) === 0) {
|
|
@@ -21001,8 +20999,8 @@ var createIsPrime = /* @__PURE__ */ factory(
|
|
|
21001
20999
|
}
|
|
21002
21000
|
function modPow(base, exponent, modulus) {
|
|
21003
21001
|
let accumulator = 1;
|
|
21004
|
-
while (!exponent.
|
|
21005
|
-
if (exponent.mod(2).
|
|
21002
|
+
while (!exponent.equals(0)) {
|
|
21003
|
+
if (exponent.mod(2).equals(0)) {
|
|
21006
21004
|
exponent = exponent.div(2);
|
|
21007
21005
|
base = base.mul(base).mod(modulus);
|
|
21008
21006
|
} else {
|
|
@@ -21012,18 +21010,14 @@ var createIsPrime = /* @__PURE__ */ factory(
|
|
|
21012
21010
|
}
|
|
21013
21011
|
return accumulator;
|
|
21014
21012
|
}
|
|
21015
|
-
const Decimal3 = n.constructor.clone({
|
|
21016
|
-
precision: n.toFixed(0).length * 2
|
|
21017
|
-
});
|
|
21018
|
-
n = new Decimal3(n);
|
|
21019
21013
|
let r = 0;
|
|
21020
21014
|
let d = n.sub(1);
|
|
21021
|
-
while (d.mod(2).
|
|
21015
|
+
while (d.mod(2).equals(0)) {
|
|
21022
21016
|
d = d.div(2);
|
|
21023
21017
|
r += 1;
|
|
21024
21018
|
}
|
|
21025
21019
|
let bases = null;
|
|
21026
|
-
if (n.
|
|
21020
|
+
if (n.toBigInt() < 3317044064679887385961981n) {
|
|
21027
21021
|
bases = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41].filter((x) => x < n.toNumber());
|
|
21028
21022
|
} else {
|
|
21029
21023
|
const max2 = Math.min(
|
|
@@ -21038,8 +21032,8 @@ var createIsPrime = /* @__PURE__ */ factory(
|
|
|
21038
21032
|
for (let i = 0; i < bases.length; i += 1) {
|
|
21039
21033
|
const a = bases[i];
|
|
21040
21034
|
const adn = modPow(n.sub(n).add(a), d, n);
|
|
21041
|
-
if (!adn.
|
|
21042
|
-
for (let i2 = 0, x = adn; !x.
|
|
21035
|
+
if (!adn.equals(1)) {
|
|
21036
|
+
for (let i2 = 0, x = adn; !x.equals(n.sub(1)); i2 += 1, x = x.mul(x).mod(n)) {
|
|
21043
21037
|
if (i2 === r - 1) {
|
|
21044
21038
|
return false;
|
|
21045
21039
|
}
|
|
@@ -21190,6 +21184,13 @@ var createUnaryPlus = /* @__PURE__ */ factory(
|
|
|
21190
21184
|
);
|
|
21191
21185
|
|
|
21192
21186
|
// src/matrix/dot.ts
|
|
21187
|
+
import { pairwiseDot as pairwiseDot2 } from "@danielsimonjr/mathts-core";
|
|
21188
|
+
function _isFlatNumbers(arr7) {
|
|
21189
|
+
for (let i = 0; i < arr7.length; i++) {
|
|
21190
|
+
if (typeof arr7[i] !== "number") return false;
|
|
21191
|
+
}
|
|
21192
|
+
return true;
|
|
21193
|
+
}
|
|
21193
21194
|
var name72 = "dot";
|
|
21194
21195
|
var dependencies72 = ["typed", "addScalar", "multiplyScalar", "conj", "size"];
|
|
21195
21196
|
var createDot = /* @__PURE__ */ factory(
|
|
@@ -21242,6 +21243,9 @@ var createDot = /* @__PURE__ */ factory(
|
|
|
21242
21243
|
add2 = typed3.find(addScalar2, [dt, dt]);
|
|
21243
21244
|
mul = typed3.find(multiplyScalar2, [dt, dt]);
|
|
21244
21245
|
}
|
|
21246
|
+
if (!aIsColumn && !bIsColumn && add2 === addScalar2 && mul === multiplyScalar2 && _isFlatNumbers(adata) && _isFlatNumbers(bdata)) {
|
|
21247
|
+
return pairwiseDot2(adata, bdata);
|
|
21248
|
+
}
|
|
21245
21249
|
if (!aIsColumn && !bIsColumn) {
|
|
21246
21250
|
let c = mul(conj3(adata[0]), bdata[0]);
|
|
21247
21251
|
for (let i = 1; i < N; i++) {
|
|
@@ -26243,7 +26247,7 @@ var createZpk2tf = /* @__PURE__ */ factory(
|
|
|
26243
26247
|
);
|
|
26244
26248
|
|
|
26245
26249
|
// src/statistics/cumsum.ts
|
|
26246
|
-
|
|
26250
|
+
import { neumaierCumsum as neumaierCumsum2 } from "@danielsimonjr/mathts-core";
|
|
26247
26251
|
function isFlatNumberArray2(arr7) {
|
|
26248
26252
|
for (let i = 0; i < arr7.length; i++) {
|
|
26249
26253
|
if (typeof arr7[i] !== "number") {
|
|
@@ -26291,24 +26295,10 @@ var createCumSum = /* @__PURE__ */ factory(
|
|
|
26291
26295
|
if (array.length === 0) {
|
|
26292
26296
|
return [];
|
|
26293
26297
|
}
|
|
26294
|
-
if (
|
|
26295
|
-
const
|
|
26296
|
-
|
|
26297
|
-
|
|
26298
|
-
const alloc = wasmLoader.allocateFloat64Array(array);
|
|
26299
|
-
try {
|
|
26300
|
-
wasm.statsCumsum(alloc.ptr, array.length);
|
|
26301
|
-
const result = new Array(array.length);
|
|
26302
|
-
for (let i = 0; i < array.length; i++) {
|
|
26303
|
-
result[i] = alloc.array[i];
|
|
26304
|
-
}
|
|
26305
|
-
return result;
|
|
26306
|
-
} finally {
|
|
26307
|
-
wasmLoader.free(alloc.ptr);
|
|
26308
|
-
}
|
|
26309
|
-
} catch {
|
|
26310
|
-
}
|
|
26311
|
-
}
|
|
26298
|
+
if (isFlatNumberArray2(array)) {
|
|
26299
|
+
const result = new Array(array.length);
|
|
26300
|
+
neumaierCumsum2(array, result);
|
|
26301
|
+
return result;
|
|
26312
26302
|
}
|
|
26313
26303
|
const sums = [unaryPlus2(array[0])];
|
|
26314
26304
|
for (let i = 1; i < array.length; ++i) {
|
|
@@ -28417,7 +28407,8 @@ var createCompare = /* @__PURE__ */ factory(
|
|
|
28417
28407
|
return x === y ? 0 : x > y ? 1 : -1;
|
|
28418
28408
|
},
|
|
28419
28409
|
"BigNumber, BigNumber": function(x, y) {
|
|
28420
|
-
|
|
28410
|
+
const cmp = nearlyEqual2(x, y, config2.relTol, config2.absTol) ? 0 : x.compareTo(y);
|
|
28411
|
+
return BigNumber9.fromNumber(cmp);
|
|
28421
28412
|
},
|
|
28422
28413
|
"bigint, bigint": function(x, y) {
|
|
28423
28414
|
return x === y ? 0n : x > y ? 1n : -1n;
|
|
@@ -28601,7 +28592,7 @@ var createLargerEq = /* @__PURE__ */ factory(
|
|
|
28601
28592
|
{
|
|
28602
28593
|
"boolean, boolean": (x, y) => x >= y,
|
|
28603
28594
|
"BigNumber, BigNumber": function(x, y) {
|
|
28604
|
-
return x.
|
|
28595
|
+
return x.greaterThanOrEqual(y) || nearlyEqual2(x, y, config2.relTol, config2.absTol);
|
|
28605
28596
|
},
|
|
28606
28597
|
"bigint, bigint": function(x, y) {
|
|
28607
28598
|
return x >= y;
|
|
@@ -28665,7 +28656,7 @@ var createSmaller = /* @__PURE__ */ factory(
|
|
|
28665
28656
|
});
|
|
28666
28657
|
const compareUnits2 = createCompareUnits({ typed: typed3 });
|
|
28667
28658
|
function bignumSmaller(x, y) {
|
|
28668
|
-
return x.
|
|
28659
|
+
return x.lessThan(y) && !nearlyEqual2(x, y, config2.relTol, config2.absTol);
|
|
28669
28660
|
}
|
|
28670
28661
|
return typed3(
|
|
28671
28662
|
name160,
|
|
@@ -28728,7 +28719,7 @@ var createSmallerEq = /* @__PURE__ */ factory(
|
|
|
28728
28719
|
{
|
|
28729
28720
|
"boolean, boolean": (x, y) => x <= y,
|
|
28730
28721
|
"BigNumber, BigNumber": function(x, y) {
|
|
28731
|
-
return x.
|
|
28722
|
+
return x.lessThanOrEqual(y) || nearlyEqual2(x, y, config2.relTol, config2.absTol);
|
|
28732
28723
|
},
|
|
28733
28724
|
"bigint, bigint": (x, y) => x <= y,
|
|
28734
28725
|
"Fraction, Fraction": (x, y) => x.compare(y) !== 1,
|
|
@@ -29841,13 +29832,12 @@ var createRange = /* @__PURE__ */ factory(
|
|
|
29841
29832
|
|
|
29842
29833
|
// src/probability/gamma.ts
|
|
29843
29834
|
var name174 = "gamma";
|
|
29844
|
-
var dependencies174 = ["typed", "
|
|
29835
|
+
var dependencies174 = ["typed", "multiplyScalar", "pow", "BigNumber", "Complex"];
|
|
29845
29836
|
var createGamma = /* @__PURE__ */ factory(
|
|
29846
29837
|
name174,
|
|
29847
29838
|
dependencies174,
|
|
29848
29839
|
({
|
|
29849
29840
|
typed: typed3,
|
|
29850
|
-
config: config2,
|
|
29851
29841
|
multiplyScalar: _multiplyScalar,
|
|
29852
29842
|
pow: _pow,
|
|
29853
29843
|
BigNumber: BigNumber9,
|
|
@@ -29880,10 +29870,10 @@ var createGamma = /* @__PURE__ */ factory(
|
|
|
29880
29870
|
Complex: gammaComplex,
|
|
29881
29871
|
BigNumber: function(n) {
|
|
29882
29872
|
if (n.isInteger()) {
|
|
29883
|
-
return n.isNegative() || n.isZero() ?
|
|
29873
|
+
return n.isNegative() || n.isZero() ? BigNumber9.fromNumber(Infinity) : bigFactorial(n.sub(1));
|
|
29884
29874
|
}
|
|
29885
29875
|
if (!n.isFinite()) {
|
|
29886
|
-
return
|
|
29876
|
+
return BigNumber9.fromNumber(n.isNegative() ? NaN : Infinity);
|
|
29887
29877
|
}
|
|
29888
29878
|
throw new Error("Integer BigNumber expected");
|
|
29889
29879
|
}
|
|
@@ -29891,22 +29881,13 @@ var createGamma = /* @__PURE__ */ factory(
|
|
|
29891
29881
|
function bigFactorial(n) {
|
|
29892
29882
|
const nNum = n.toNumber();
|
|
29893
29883
|
if (nNum < 8) {
|
|
29894
|
-
return
|
|
29895
|
-
}
|
|
29896
|
-
const precision = config2.precision + (Math.log(nNum) | 0);
|
|
29897
|
-
const Big = BigNumber9.clone({ precision });
|
|
29898
|
-
if (nNum % 2 === 1) {
|
|
29899
|
-
return n.times(bigFactorial(n.minus(1)));
|
|
29884
|
+
return BigNumber9.fromNumber([1, 1, 2, 6, 24, 120, 720, 5040][nNum]);
|
|
29900
29885
|
}
|
|
29901
|
-
let
|
|
29902
|
-
let
|
|
29903
|
-
|
|
29904
|
-
while (p > 2) {
|
|
29905
|
-
p -= 2;
|
|
29906
|
-
sum3 += p;
|
|
29907
|
-
prod2 = prod2.times(new BigNumber9(sum3));
|
|
29886
|
+
let prod2 = BigNumber9.fromNumber(1);
|
|
29887
|
+
for (let k = 2; k <= nNum; k++) {
|
|
29888
|
+
prod2 = prod2.mul(k);
|
|
29908
29889
|
}
|
|
29909
|
-
return
|
|
29890
|
+
return prod2;
|
|
29910
29891
|
}
|
|
29911
29892
|
}
|
|
29912
29893
|
);
|
|
@@ -30379,7 +30360,7 @@ var createHypot = /* @__PURE__ */ factory(
|
|
|
30379
30360
|
);
|
|
30380
30361
|
|
|
30381
30362
|
// src/geometry/distance.ts
|
|
30382
|
-
|
|
30363
|
+
import { scaledDistance } from "@danielsimonjr/mathts-core";
|
|
30383
30364
|
var name181 = "distance";
|
|
30384
30365
|
var dependencies181 = [
|
|
30385
30366
|
"typed",
|
|
@@ -30664,10 +30645,14 @@ var createDistance = /* @__PURE__ */ factory(
|
|
|
30664
30645
|
}
|
|
30665
30646
|
function _euclideanDistance(x, y) {
|
|
30666
30647
|
const vectorSize = x.length;
|
|
30667
|
-
|
|
30668
|
-
|
|
30669
|
-
if (
|
|
30648
|
+
let allNumbers = true;
|
|
30649
|
+
for (let i = 0; i < vectorSize; i++) {
|
|
30650
|
+
if (typeof x[i] !== "number" || typeof y[i] !== "number") {
|
|
30651
|
+
allNumbers = false;
|
|
30652
|
+
break;
|
|
30653
|
+
}
|
|
30670
30654
|
}
|
|
30655
|
+
if (allNumbers) return scaledDistance(x, y);
|
|
30671
30656
|
let result = 0;
|
|
30672
30657
|
for (let i = 0; i < vectorSize; i++) {
|
|
30673
30658
|
const diff2 = subtractScalar2(x[i], y[i]);
|
|
@@ -30675,21 +30660,6 @@ var createDistance = /* @__PURE__ */ factory(
|
|
|
30675
30660
|
}
|
|
30676
30661
|
return sqrt2(result);
|
|
30677
30662
|
}
|
|
30678
|
-
function _tryWasmDistanceND(x, y, n) {
|
|
30679
|
-
const wasm = wasmLoader.getModule();
|
|
30680
|
-
if (!wasm) return null;
|
|
30681
|
-
for (let i = 0; i < n; i++) {
|
|
30682
|
-
if (typeof x[i] !== "number" || typeof y[i] !== "number") return null;
|
|
30683
|
-
}
|
|
30684
|
-
const p1Alloc = wasmLoader.allocateFloat64Array(x);
|
|
30685
|
-
const p2Alloc = wasmLoader.allocateFloat64Array(y);
|
|
30686
|
-
try {
|
|
30687
|
-
return wasm.distanceND(p1Alloc.ptr, p2Alloc.ptr, n);
|
|
30688
|
-
} finally {
|
|
30689
|
-
wasmLoader.free(p1Alloc.ptr);
|
|
30690
|
-
wasmLoader.free(p2Alloc.ptr);
|
|
30691
|
-
}
|
|
30692
|
-
}
|
|
30693
30663
|
function _distancePairwise(a) {
|
|
30694
30664
|
const wasmResult = _tryWasmPairwise(a);
|
|
30695
30665
|
if (wasmResult !== null) return wasmResult;
|
|
@@ -30762,7 +30732,7 @@ var createFactorial = /* @__PURE__ */ factory(
|
|
|
30762
30732
|
if (n.isNegative()) {
|
|
30763
30733
|
throw new Error("Value must be non-negative");
|
|
30764
30734
|
}
|
|
30765
|
-
return gamma2(n.
|
|
30735
|
+
return gamma2(n.add(1));
|
|
30766
30736
|
},
|
|
30767
30737
|
"Array | Matrix": typed3.referToSelf(
|
|
30768
30738
|
(self) => (n) => deepMap2(n, self)
|
|
@@ -35101,7 +35071,7 @@ var createQuantileSeq = /* @__PURE__ */ factory(
|
|
|
35101
35071
|
}
|
|
35102
35072
|
const index = isNumber(prob) ? prob * (len - 1) : prob.times(len - 1);
|
|
35103
35073
|
const integerPart = isNumber(prob) ? Math.floor(index) : index.floor().toNumber();
|
|
35104
|
-
const fracPart = isNumber(prob) ? index % 1 : index.
|
|
35074
|
+
const fracPart = isNumber(prob) ? index % 1 : index.sub(integerPart);
|
|
35105
35075
|
if (isInteger3(index)) {
|
|
35106
35076
|
return sorted ? flat[index] : partitionSelect2(flat, isNumber(prob) ? index : index.valueOf());
|
|
35107
35077
|
}
|
|
@@ -38060,7 +38030,7 @@ var createLusolve = /* @__PURE__ */ factory(
|
|
|
38060
38030
|
);
|
|
38061
38031
|
|
|
38062
38032
|
// src/statistics/corr.ts
|
|
38063
|
-
|
|
38033
|
+
import { pairwiseSum as pairwiseSum3, pairwiseDot as pairwiseDot3 } from "@danielsimonjr/mathts-core";
|
|
38064
38034
|
function isPlainNumberArray(arr7) {
|
|
38065
38035
|
for (let i = 0; i < arr7.length; i++) {
|
|
38066
38036
|
if (typeof arr7[i] !== "number") {
|
|
@@ -38070,22 +38040,11 @@ function isPlainNumberArray(arr7) {
|
|
|
38070
38040
|
return true;
|
|
38071
38041
|
}
|
|
38072
38042
|
var name239 = "corr";
|
|
38073
|
-
var dependencies239 = [
|
|
38074
|
-
"typed",
|
|
38075
|
-
"matrix",
|
|
38076
|
-
"mean",
|
|
38077
|
-
"sqrt",
|
|
38078
|
-
"sum",
|
|
38079
|
-
"add",
|
|
38080
|
-
"subtract",
|
|
38081
|
-
"multiply",
|
|
38082
|
-
"pow",
|
|
38083
|
-
"divide"
|
|
38084
|
-
];
|
|
38043
|
+
var dependencies239 = ["typed", "matrix", "sqrt", "sum", "subtract", "multiply", "divide"];
|
|
38085
38044
|
var createCorr = /* @__PURE__ */ factory(
|
|
38086
38045
|
name239,
|
|
38087
38046
|
dependencies239,
|
|
38088
|
-
({ typed: typed3, matrix: matrix2, sqrt: sqrt2, sum: sum3,
|
|
38047
|
+
({ typed: typed3, matrix: matrix2, sqrt: sqrt2, sum: sum3, subtract: subtract2, multiply: multiply2, divide: divide2 }) => {
|
|
38089
38048
|
return typed3(name239, {
|
|
38090
38049
|
"Array, Array": function(A, B) {
|
|
38091
38050
|
return _corr(A, B);
|
|
@@ -38121,37 +38080,28 @@ var createCorr = /* @__PURE__ */ factory(
|
|
|
38121
38080
|
}
|
|
38122
38081
|
function correlation(A, B) {
|
|
38123
38082
|
const n = A.length;
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38129
|
-
|
|
38130
|
-
|
|
38131
|
-
|
|
38132
|
-
|
|
38133
|
-
|
|
38134
|
-
|
|
38135
|
-
|
|
38136
|
-
|
|
38137
|
-
|
|
38138
|
-
|
|
38139
|
-
const
|
|
38140
|
-
const
|
|
38141
|
-
const
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
);
|
|
38145
|
-
|
|
38146
|
-
const sumYSquare = sum3(B.map((y) => pow2(y, 2)));
|
|
38147
|
-
const numerator = subtract2(multiply2(n, sumXY), multiply2(sumX, sumY));
|
|
38148
|
-
const denominator = sqrt2(
|
|
38149
|
-
multiply2(
|
|
38150
|
-
subtract2(multiply2(n, sumXSquare), pow2(sumX, 2)),
|
|
38151
|
-
subtract2(multiply2(n, sumYSquare), pow2(sumY, 2))
|
|
38152
|
-
)
|
|
38153
|
-
);
|
|
38154
|
-
return divide2(numerator, denominator);
|
|
38083
|
+
if (isPlainNumberArray(A) && isPlainNumberArray(B)) {
|
|
38084
|
+
const meanX2 = pairwiseSum3(A) / n;
|
|
38085
|
+
const meanY2 = pairwiseSum3(B) / n;
|
|
38086
|
+
const dX2 = new Float64Array(n);
|
|
38087
|
+
const dY2 = new Float64Array(n);
|
|
38088
|
+
for (let i = 0; i < n; i++) {
|
|
38089
|
+
dX2[i] = A[i] - meanX2;
|
|
38090
|
+
dY2[i] = B[i] - meanY2;
|
|
38091
|
+
}
|
|
38092
|
+
const sxy2 = pairwiseDot3(dX2, dY2);
|
|
38093
|
+
const sxx2 = pairwiseDot3(dX2, dX2);
|
|
38094
|
+
const syy2 = pairwiseDot3(dY2, dY2);
|
|
38095
|
+
return sxy2 / Math.sqrt(sxx2 * syy2);
|
|
38096
|
+
}
|
|
38097
|
+
const meanX = divide2(sum3(A), n);
|
|
38098
|
+
const meanY = divide2(sum3(B), n);
|
|
38099
|
+
const dX = A.map((x) => subtract2(x, meanX));
|
|
38100
|
+
const dY = B.map((y) => subtract2(y, meanY));
|
|
38101
|
+
const sxy = sum3(dX.map((dx, i) => multiply2(dx, dY[i])));
|
|
38102
|
+
const sxx = sum3(dX.map((dx) => multiply2(dx, dx)));
|
|
38103
|
+
const syy = sum3(dY.map((dy) => multiply2(dy, dy)));
|
|
38104
|
+
return divide2(sxy, sqrt2(multiply2(sxx, syy)));
|
|
38155
38105
|
}
|
|
38156
38106
|
}
|
|
38157
38107
|
);
|
package/dist/matrix/dot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../src/matrix/dot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../src/matrix/dot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAsC/D,UAAU,YAAY;IACpB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IACzB,cAAc,EAAE,aAAa,CAAC;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC;CACrB;AAKD,eAAO,MAAM,SAAS,sEAiNrB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { TypedFunction } from '../core/function/typed.js';
|
|
2
|
-
import type { ConfigOptions } from '../core/config.js';
|
|
3
2
|
interface ComplexType {
|
|
4
3
|
re: number;
|
|
5
4
|
im: number;
|
|
@@ -20,21 +19,15 @@ interface BigNumberType {
|
|
|
20
19
|
isNegative(): boolean;
|
|
21
20
|
isZero(): boolean;
|
|
22
21
|
isFinite(): boolean;
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
sub(n: number | BigNumberType): BigNumberType;
|
|
23
|
+
mul(n: number | BigNumberType): BigNumberType;
|
|
25
24
|
toNumber(): number;
|
|
26
|
-
toPrecision(n: number): string;
|
|
27
25
|
}
|
|
28
26
|
interface BigNumberConstructor {
|
|
29
|
-
|
|
30
|
-
precision: number;
|
|
31
|
-
clone(config: {
|
|
32
|
-
precision: number;
|
|
33
|
-
}): BigNumberConstructor;
|
|
27
|
+
fromNumber(n: number): BigNumberType;
|
|
34
28
|
}
|
|
35
29
|
interface GammaDependencies {
|
|
36
30
|
typed: TypedFunction;
|
|
37
|
-
config: ConfigOptions;
|
|
38
31
|
multiplyScalar: TypedFunction;
|
|
39
32
|
pow: TypedFunction;
|
|
40
33
|
BigNumber: BigNumberConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gamma.d.ts","sourceRoot":"","sources":["../../src/probability/gamma.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"gamma.d.ts","sourceRoot":"","sources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C;CAC7B;AAKD,eAAO,MAAM,WAAW,2EAsHvB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { TypedFunction } from '../core/function/typed.js';
|
|
2
2
|
import type { ConfigOptions } from '../core/config.js';
|
|
3
3
|
interface BigNumberType {
|
|
4
|
-
|
|
4
|
+
compareTo(n: BigNumberType): number;
|
|
5
5
|
}
|
|
6
6
|
interface BigNumberConstructor {
|
|
7
7
|
new (value: number | string | BigNumberType): BigNumberType;
|
|
8
|
+
fromNumber(n: number): BigNumberType;
|
|
8
9
|
}
|
|
9
10
|
interface FractionType {
|
|
10
11
|
compare(n: FractionType): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../src/relational/compare.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,UAAU,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../src/relational/compare.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,UAAU,aAAa;IACrB,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;CACrC;AAED,UAAU,oBAAoB;IAC5B,KAAK,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;IAC5D,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CACtC;AAED,UAAU,YAAY;IACpB,OAAO,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;CAClC;AAED,UAAU,mBAAmB;IAC3B,KAAK,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;CAC3D;AAED,UAAU,aAAa;IACrB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CAC/B;AAED,UAAU,sBAAsB;IAC9B,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CACnC;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,oBAAoB,CAAC;IAChC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,sBAAsB,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,UAAU,yBAAyB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;CACvB;AAcD,eAAO,MAAM,aAAa,6EAiGzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFAU/B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TypedFunction } from '../core/function/typed.js';
|
|
2
2
|
import type { ConfigOptions } from '../core/config.js';
|
|
3
3
|
interface BigNumberType {
|
|
4
|
-
|
|
4
|
+
lessThan(n: BigNumberType): boolean;
|
|
5
5
|
}
|
|
6
6
|
interface BigNumberFactory {
|
|
7
7
|
(value: unknown): BigNumberType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smaller.d.ts","sourceRoot":"","sources":["../../src/relational/smaller.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,UAAU,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"smaller.d.ts","sourceRoot":"","sources":["../../src/relational/smaller.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,UAAU,aAAa;IACrB,QAAQ,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;CACrC;AAMD,UAAU,gBAAgB;IACxB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAAC;CACjC;AAED,UAAU,aAAa;IACrB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CAC/B;AAED,UAAU,sBAAsB;IAC9B,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CACnC;AAED,UAAU,uBAAuB;IAC/B,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CACnC;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,sBAAsB,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,EAAE,uBAAuB,CAAC;CACvC;AAED,UAAU,yBAAyB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;CACvB;AAaD,eAAO,MAAM,aAAa,6EAyFzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFAU/B,CAAC"}
|
|
@@ -7,10 +7,8 @@ interface CorrDependencies {
|
|
|
7
7
|
matrix: (arr: unknown[]) => MatrixType;
|
|
8
8
|
sqrt: TypedFunction;
|
|
9
9
|
sum: TypedFunction;
|
|
10
|
-
add: TypedFunction;
|
|
11
10
|
subtract: TypedFunction;
|
|
12
11
|
multiply: TypedFunction;
|
|
13
|
-
pow: TypedFunction;
|
|
14
12
|
divide: TypedFunction;
|
|
15
13
|
}
|
|
16
14
|
export declare const createCorr: import("../utils/factory.js").FactoryFunction<CorrDependencies, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corr.d.ts","sourceRoot":"","sources":["../../src/statistics/corr.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,UAAU;IAClB,OAAO,IAAI,OAAO,EAAE,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"corr.d.ts","sourceRoot":"","sources":["../../src/statistics/corr.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,UAAU;IAClB,OAAO,IAAI,OAAO,EAAE,CAAC;CACtB;AAiBD,UAAU,gBAAgB;IACxB,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,0EAoGtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cumsum.d.ts","sourceRoot":"","sources":["../../src/statistics/cumsum.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"cumsum.d.ts","sourceRoot":"","sources":["../../src/statistics/cumsum.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAqB/D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,SAAS,EAAE,aAAa,CAAC;CAC1B;AAKD,eAAO,MAAM,YAAY,4EAiKxB,CAAC"}
|
|
@@ -3,7 +3,7 @@ interface BigNumberType {
|
|
|
3
3
|
times(n: number): BigNumberType;
|
|
4
4
|
floor(): BigNumberType;
|
|
5
5
|
toNumber(): number;
|
|
6
|
-
|
|
6
|
+
sub(n: number | BigNumberType): BigNumberType;
|
|
7
7
|
valueOf(): number;
|
|
8
8
|
}
|
|
9
9
|
interface QuantileSeqDependencies {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quantileSeq.d.ts","sourceRoot":"","sources":["../../src/statistics/quantileSeq.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAO/D,UAAU,aAAa;IACrB,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAChC,KAAK,IAAI,aAAa,CAAC;IACvB,QAAQ,IAAI,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"quantileSeq.d.ts","sourceRoot":"","sources":["../../src/statistics/quantileSeq.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAO/D,UAAU,aAAa;IACrB,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAChC,KAAK,IAAI,aAAa,CAAC;IACvB,QAAQ,IAAI,MAAM,CAAC;IACnB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;IAC9C,OAAO,IAAI,MAAM,CAAC;CACnB;AAED,UAAU,uBAAuB;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,aAAa,CAAC;IAC9C,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,aAAa,CAAC;IAC3D,QAAQ,EAAE,aAAa,CAAC;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EzD"}
|
|
@@ -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":"AAqCA,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,SAAO,EAAE,MAAM,SAAI,GAAG,OAAO,CAiCtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPrime.d.ts","sourceRoot":"","sources":["../../src/utils/isPrime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"isPrime.d.ts","sourceRoot":"","sources":["../../src/utils/isPrime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAsB/D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,aAAa,CAAC;CACtB;AAKD,eAAO,MAAM,aAAa,6EA+IzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@danielsimonjr/mathts-functions",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Mathematical functions for MathTS - arithmetic, algebra, trigonometry, statistics, and more",
|
|
5
|
-
"author": "Daniel Simon Jr.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "./dist/index.js",
|
|
9
|
-
"module": "./dist/index.js",
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"types",
|
|
20
|
-
"README.md"
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json && node scripts/copy-wasm.mjs",
|
|
24
|
-
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
25
|
-
"test": "vitest run",
|
|
26
|
-
"test:diff": "node tests/diff-special.test.mjs && node tests/diff-elementwise.test.mjs && node tests/diff-fusion.test.mjs",
|
|
27
|
-
"golden:gen": "python -X utf8 tests/golden/gen_special_goldens.py",
|
|
28
|
-
"test:watch": "vitest",
|
|
29
|
-
"test:coverage": "vitest run --coverage",
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
-
"lint": "eslint src --ext .ts",
|
|
32
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
33
|
-
"clean": "rm -rf dist",
|
|
34
|
-
"build:prod": "tsup src/index.ts --format esm --clean --minify --treeshake"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
38
|
-
"@danielsimonjr/mathts-expression": "^0.6.
|
|
39
|
-
"@danielsimonjr/mathts-gpu": "^0.2.0",
|
|
40
|
-
"@danielsimonjr/mathts-matrix": "^0.4.
|
|
41
|
-
"@danielsimonjr/mathts-parallel": "^0.
|
|
42
|
-
"bignumber.js": "^9.1.2",
|
|
43
|
-
"complex.js": "^2.2.5",
|
|
44
|
-
"decimal.js": "^10.4.3",
|
|
45
|
-
"escape-latex": "^1.2.0",
|
|
46
|
-
"fraction.js": "^5.2.1",
|
|
47
|
-
"javascript-natural-sort": "^0.7.1",
|
|
48
|
-
"seedrandom": "^3.0.5",
|
|
49
|
-
"tiny-emitter": "^2.1.0",
|
|
50
|
-
"typed-function": "github:danielsimonjr/typed-function"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/node": "^25.5.2",
|
|
54
|
-
"@webgpu/types": "^0.1.67",
|
|
55
|
-
"tsup": "^8.0.0",
|
|
56
|
-
"typescript": "^5.3.0",
|
|
57
|
-
"vitest": "^4.1.5"
|
|
58
|
-
},
|
|
59
|
-
"publishConfig": {
|
|
60
|
-
"access": "public"
|
|
61
|
-
},
|
|
62
|
-
"repository": {
|
|
63
|
-
"type": "git",
|
|
64
|
-
"url": "https://github.com/danielsimonjr/mathts",
|
|
65
|
-
"directory": "functions"
|
|
66
|
-
},
|
|
67
|
-
"keywords": [
|
|
68
|
-
"math",
|
|
69
|
-
"typescript",
|
|
70
|
-
"functions",
|
|
71
|
-
"arithmetic",
|
|
72
|
-
"algebra",
|
|
73
|
-
"trigonometry",
|
|
74
|
-
"statistics"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-functions",
|
|
3
|
+
"version": "0.24.0",
|
|
4
|
+
"description": "Mathematical functions for MathTS - arithmetic, algebra, trigonometry, statistics, and more",
|
|
5
|
+
"author": "Daniel Simon Jr.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"types",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json && node scripts/copy-wasm.mjs",
|
|
24
|
+
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:diff": "node tests/diff-special.test.mjs && node tests/diff-elementwise.test.mjs && node tests/diff-fusion.test.mjs",
|
|
27
|
+
"golden:gen": "python -X utf8 tests/golden/gen_special_goldens.py",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"test:coverage": "vitest run --coverage",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"lint": "eslint src --ext .ts",
|
|
32
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
33
|
+
"clean": "rm -rf dist",
|
|
34
|
+
"build:prod": "tsup src/index.ts --format esm --clean --minify --treeshake"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@danielsimonjr/mathts-core": "^0.9.0",
|
|
38
|
+
"@danielsimonjr/mathts-expression": "^0.6.3",
|
|
39
|
+
"@danielsimonjr/mathts-gpu": "^0.2.0",
|
|
40
|
+
"@danielsimonjr/mathts-matrix": "^0.4.4",
|
|
41
|
+
"@danielsimonjr/mathts-parallel": "^0.5.1",
|
|
42
|
+
"bignumber.js": "^9.1.2",
|
|
43
|
+
"complex.js": "^2.2.5",
|
|
44
|
+
"decimal.js": "^10.4.3",
|
|
45
|
+
"escape-latex": "^1.2.0",
|
|
46
|
+
"fraction.js": "^5.2.1",
|
|
47
|
+
"javascript-natural-sort": "^0.7.1",
|
|
48
|
+
"seedrandom": "^3.0.5",
|
|
49
|
+
"tiny-emitter": "^2.1.0",
|
|
50
|
+
"typed-function": "github:danielsimonjr/typed-function"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^25.5.2",
|
|
54
|
+
"@webgpu/types": "^0.1.67",
|
|
55
|
+
"tsup": "^8.0.0",
|
|
56
|
+
"typescript": "^5.3.0",
|
|
57
|
+
"vitest": "^4.1.5"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "https://github.com/danielsimonjr/mathts",
|
|
65
|
+
"directory": "functions"
|
|
66
|
+
},
|
|
67
|
+
"keywords": [
|
|
68
|
+
"math",
|
|
69
|
+
"typescript",
|
|
70
|
+
"functions",
|
|
71
|
+
"arithmetic",
|
|
72
|
+
"algebra",
|
|
73
|
+
"trigonometry",
|
|
74
|
+
"statistics"
|
|
75
|
+
]
|
|
76
|
+
}
|