@danielsimonjr/mathts-compat 0.4.22 → 0.4.23
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/shims.d.ts +40 -39
- package/dist/shims.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/shims.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import { Complex, Fraction, BigNumber } from '@danielsimonjr/mathts-core';
|
|
10
|
+
import type { TypedFunction } from '@danielsimonjr/mathts-core';
|
|
10
11
|
import { add as _add, subtract as _subtract, multiply as _multiply } from '@danielsimonjr/mathts-functions';
|
|
11
12
|
import { DenseMatrix, SparseMatrix } from '@danielsimonjr/mathts-matrix';
|
|
12
13
|
/**
|
|
@@ -46,15 +47,15 @@ export declare function sparse(data?: number[][]): SparseMatrix;
|
|
|
46
47
|
export declare const add: typeof _add;
|
|
47
48
|
export declare const subtract: typeof _subtract;
|
|
48
49
|
export declare const multiply: typeof _multiply;
|
|
49
|
-
export declare const divide:
|
|
50
|
-
export declare const pow:
|
|
51
|
-
export declare const sqrt:
|
|
52
|
-
export declare const abs:
|
|
53
|
-
export declare const exp:
|
|
54
|
-
export declare const log:
|
|
55
|
-
export declare const sin:
|
|
56
|
-
export declare const cos:
|
|
57
|
-
export declare const tan:
|
|
50
|
+
export declare const divide: TypedFunction;
|
|
51
|
+
export declare const pow: TypedFunction;
|
|
52
|
+
export declare const sqrt: TypedFunction;
|
|
53
|
+
export declare const abs: TypedFunction;
|
|
54
|
+
export declare const exp: TypedFunction;
|
|
55
|
+
export declare const log: TypedFunction;
|
|
56
|
+
export declare const sin: TypedFunction;
|
|
57
|
+
export declare const cos: TypedFunction;
|
|
58
|
+
export declare const tan: TypedFunction;
|
|
58
59
|
/**
|
|
59
60
|
* Return the inverse sine of `x`. This shim calls `Math.asin`.
|
|
60
61
|
*
|
|
@@ -84,8 +85,8 @@ export declare function atan(x: number): number;
|
|
|
84
85
|
* @returns The angle in radians.
|
|
85
86
|
*/
|
|
86
87
|
export declare function atan2(y: number, x: number): number;
|
|
87
|
-
export declare const sum:
|
|
88
|
-
export declare const mean:
|
|
88
|
+
export declare const sum: TypedFunction;
|
|
89
|
+
export declare const mean: TypedFunction;
|
|
89
90
|
type Normalization = 'unbiased' | 'uncorrected' | 'biased';
|
|
90
91
|
/**
|
|
91
92
|
* Return the variance of all values in `data`.
|
|
@@ -110,13 +111,13 @@ export declare function variance(data: unknown, normalization?: Normalization):
|
|
|
110
111
|
* @returns The standard deviation.
|
|
111
112
|
*/
|
|
112
113
|
export declare function std(data: unknown, normalization?: Normalization): number;
|
|
113
|
-
export declare const min:
|
|
114
|
-
export declare const max:
|
|
115
|
-
export declare const gcd:
|
|
116
|
-
export declare const lcm:
|
|
117
|
-
export declare const round:
|
|
118
|
-
export declare const floor:
|
|
119
|
-
export declare const ceil:
|
|
114
|
+
export declare const min: TypedFunction;
|
|
115
|
+
export declare const max: TypedFunction;
|
|
116
|
+
export declare const gcd: TypedFunction;
|
|
117
|
+
export declare const lcm: TypedFunction;
|
|
118
|
+
export declare const round: TypedFunction;
|
|
119
|
+
export declare const floor: TypedFunction;
|
|
120
|
+
export declare const ceil: TypedFunction;
|
|
120
121
|
/**
|
|
121
122
|
* Complex conjugate (mathjs-compatible)
|
|
122
123
|
*/
|
|
@@ -225,33 +226,33 @@ export declare const shims: {
|
|
|
225
226
|
bignumber: typeof bignumber;
|
|
226
227
|
matrix: typeof matrix;
|
|
227
228
|
sparse: typeof sparse;
|
|
228
|
-
add:
|
|
229
|
-
subtract:
|
|
230
|
-
multiply:
|
|
231
|
-
divide:
|
|
232
|
-
pow:
|
|
233
|
-
sqrt:
|
|
234
|
-
abs:
|
|
235
|
-
exp:
|
|
236
|
-
log:
|
|
237
|
-
sin:
|
|
238
|
-
cos:
|
|
239
|
-
tan:
|
|
229
|
+
add: TypedFunction;
|
|
230
|
+
subtract: TypedFunction;
|
|
231
|
+
multiply: TypedFunction;
|
|
232
|
+
divide: TypedFunction;
|
|
233
|
+
pow: TypedFunction;
|
|
234
|
+
sqrt: TypedFunction;
|
|
235
|
+
abs: TypedFunction;
|
|
236
|
+
exp: TypedFunction;
|
|
237
|
+
log: TypedFunction;
|
|
238
|
+
sin: TypedFunction;
|
|
239
|
+
cos: TypedFunction;
|
|
240
|
+
tan: TypedFunction;
|
|
240
241
|
asin: typeof asin;
|
|
241
242
|
acos: typeof acos;
|
|
242
243
|
atan: typeof atan;
|
|
243
244
|
atan2: typeof atan2;
|
|
244
|
-
sum:
|
|
245
|
-
mean:
|
|
245
|
+
sum: TypedFunction;
|
|
246
|
+
mean: TypedFunction;
|
|
246
247
|
std: typeof std;
|
|
247
248
|
variance: typeof variance;
|
|
248
|
-
min:
|
|
249
|
-
max:
|
|
250
|
-
gcd:
|
|
251
|
-
lcm:
|
|
252
|
-
round:
|
|
253
|
-
floor:
|
|
254
|
-
ceil:
|
|
249
|
+
min: TypedFunction;
|
|
250
|
+
max: TypedFunction;
|
|
251
|
+
gcd: TypedFunction;
|
|
252
|
+
lcm: TypedFunction;
|
|
253
|
+
round: TypedFunction;
|
|
254
|
+
floor: TypedFunction;
|
|
255
|
+
ceil: TypedFunction;
|
|
255
256
|
conj: typeof conj;
|
|
256
257
|
re: typeof re;
|
|
257
258
|
im: typeof im;
|
package/dist/shims.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/shims.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EAaV,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/shims.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EAaV,MAAM,4BAA4B,CAAC;AACpC,OAAO,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,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,GAAG,YAAY,CAEpE;AAMD,eAAO,MAAM,CAAC,SAAI,CAAC;AACnB,eAAO,MAAM,EAAE,QAAU,CAAC;AAC1B,eAAO,MAAM,CAAC,QAAS,CAAC;AACxB,eAAO,MAAM,GAAG,QAAyB,CAAC;AAC1C,eAAO,MAAM,GAAG,QAAc,CAAC;AAC/B,eAAO,MAAM,GAAG,QAAW,CAAC;AAC5B,eAAO,MAAM,IAAI,QAAY,CAAC;AAC9B,eAAO,MAAM,KAAK,QAAa,CAAC;AAChC,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAO,MAAM,KAAK,QAAa,CAAC;AAChC,eAAO,MAAM,OAAO,QAAe,CAAC;AACpC,eAAO,MAAM,SAAS,QAAW,CAAC;AAClC,eAAO,MAAM,IAAI,QAAM,CAAC;AAMxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-compat",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.23",
|
|
4
4
|
"description": "mathjs compatibility layer for MathTS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@danielsimonjr/mathts-core": "^0.15.0",
|
|
28
28
|
"@danielsimonjr/mathts-functions": "^0.64.1",
|
|
29
|
-
"@danielsimonjr/mathts-matrix": "^0.7.
|
|
29
|
+
"@danielsimonjr/mathts-matrix": "^0.7.3",
|
|
30
30
|
"@danielsimonjr/mathts-parallel": "^0.6.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|