@danielsimonjr/mathts-functions 0.64.2 → 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/simplify/util.d.ts.map +1 -1
- package/dist/algebra/simplifyConstant.d.ts.map +1 -1
- package/dist/algebra/solver/lsolve.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/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/round.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/complex/conj.d.ts.map +1 -1
- package/dist/complex/re.d.ts.map +1 -1
- package/dist/distribution-functions.d.ts.map +1 -1
- package/dist/geometry-extra.d.ts.map +1 -1
- package/dist/index.js +333 -89
- 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 +1 -1
- package/dist/matrix/eigs/complexEigs.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/zeros.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/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/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/graph.d.ts.map +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/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 +14 -14
- 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 +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
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ambient type declarations for AssemblyScript builtins.
|
|
3
|
-
* These types are provided by the AssemblyScript compiler at build time
|
|
4
|
-
* but need declarations for TypeScript type-checking when WASM files
|
|
5
|
-
* are transitively included via imports from src/function/.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// AssemblyScript numeric types
|
|
9
|
-
declare type usize = number;
|
|
10
|
-
declare type i64 = number;
|
|
11
|
-
declare type u8 = number;
|
|
12
|
-
declare type u32 = number;
|
|
13
|
-
declare type f32 = number;
|
|
14
|
-
|
|
15
|
-
// f64: type alias + namespace with constants
|
|
16
|
-
declare type f64 = number;
|
|
17
|
-
declare namespace f64 {
|
|
18
|
-
const NaN: f64;
|
|
19
|
-
const POSITIVE_INFINITY: f64;
|
|
20
|
-
const NEGATIVE_INFINITY: f64;
|
|
21
|
-
const MAX_VALUE: f64;
|
|
22
|
-
const MIN_VALUE: f64;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// i32: type alias + namespace with builtins
|
|
26
|
-
declare type i32 = number;
|
|
27
|
-
declare namespace i32 {
|
|
28
|
-
function clz(value: i32): i32;
|
|
29
|
-
function ctz(value: i32): i32;
|
|
30
|
-
function rotl(value: i32, shift: i32): i32;
|
|
31
|
-
function rotr(value: i32, shift: i32): i32;
|
|
32
|
-
const MAX_VALUE: i32;
|
|
33
|
-
const MIN_VALUE: i32;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** SIMD 128-bit vector type */
|
|
37
|
-
declare type v128 = object;
|
|
38
|
-
|
|
39
|
-
/** v128 SIMD intrinsics namespace */
|
|
40
|
-
declare namespace v128 {
|
|
41
|
-
function load(ptr: usize, immOffset?: u32, immAlign?: u32): v128;
|
|
42
|
-
function store(ptr: usize, value: v128, immOffset?: u32, immAlign?: u32): void;
|
|
43
|
-
function splat<T>(value: T): v128;
|
|
44
|
-
function extract_lane<T>(vec: v128, idx: u8): T;
|
|
45
|
-
function replace_lane<T>(vec: v128, idx: u8, value: T): v128;
|
|
46
|
-
function add<T>(a: v128, b: v128): v128;
|
|
47
|
-
function sub<T>(a: v128, b: v128): v128;
|
|
48
|
-
function mul<T>(a: v128, b: v128): v128;
|
|
49
|
-
function div<T>(a: v128, b: v128): v128;
|
|
50
|
-
function neg<T>(a: v128): v128;
|
|
51
|
-
function abs<T>(a: v128): v128;
|
|
52
|
-
function sqrt<T>(a: v128): v128;
|
|
53
|
-
function min<T>(a: v128, b: v128): v128;
|
|
54
|
-
function max<T>(a: v128, b: v128): v128;
|
|
55
|
-
function and(a: v128, b: v128): v128;
|
|
56
|
-
function or(a: v128, b: v128): v128;
|
|
57
|
-
function xor(a: v128, b: v128): v128;
|
|
58
|
-
function not(a: v128): v128;
|
|
59
|
-
function shuffle<T>(a: v128, b: v128, ...lanes: u8[]): v128;
|
|
60
|
-
function swizzle(a: v128, s: v128): v128;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** f64x2 SIMD namespace (2 x f64 packed into v128) */
|
|
64
|
-
declare namespace f64x2 {
|
|
65
|
-
function splat(value: f64): v128;
|
|
66
|
-
function extract_lane(vec: v128, idx: 0 | 1): f64;
|
|
67
|
-
function replace_lane(vec: v128, idx: 0 | 1, value: f64): v128;
|
|
68
|
-
function add(a: v128, b: v128): v128;
|
|
69
|
-
function sub(a: v128, b: v128): v128;
|
|
70
|
-
function mul(a: v128, b: v128): v128;
|
|
71
|
-
function div(a: v128, b: v128): v128;
|
|
72
|
-
function neg(a: v128): v128;
|
|
73
|
-
function abs(a: v128): v128;
|
|
74
|
-
function sqrt(a: v128): v128;
|
|
75
|
-
function min(a: v128, b: v128): v128;
|
|
76
|
-
function max(a: v128, b: v128): v128;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// AssemblyScript type cast functions (e.g., f64(intValue) converts i32 to f64)
|
|
80
|
-
declare function f64(value: number): number;
|
|
81
|
-
declare function i32(value: number): number;
|
|
82
|
-
declare function i64(value: number): number;
|
|
83
|
-
declare function u32(value: number): number;
|
|
84
|
-
|
|
85
|
-
// AssemblyScript builtins
|
|
86
|
-
declare function unchecked<T>(expr: T): T;
|
|
87
|
-
declare function changetype<T>(value: unknown): T;
|
|
88
|
-
declare function isFinite<T>(value: T): boolean;
|
|
89
|
-
declare function isNaN<T>(value: T): boolean;
|
|
90
|
-
declare function sizeof<T>(): usize;
|
|
91
|
-
declare function assert<T>(value: T, message?: string): T;
|
|
92
|
-
declare function idof<T>(): u32;
|
|
93
|
-
|
|
94
|
-
// AssemblyScript memory intrinsics
|
|
95
|
-
declare function load<T>(ptr: usize, immOffset?: u32): T;
|
|
96
|
-
declare function store<T>(ptr: usize, value: T, immOffset?: u32): void;
|
|
97
|
-
|
|
98
|
-
declare namespace memory {
|
|
99
|
-
function grow(pages: i32): i32;
|
|
100
|
-
function size(): i32;
|
|
101
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Ambient type declarations for AssemblyScript builtins.
|
|
3
|
+
* These types are provided by the AssemblyScript compiler at build time
|
|
4
|
+
* but need declarations for TypeScript type-checking when WASM files
|
|
5
|
+
* are transitively included via imports from src/function/.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// AssemblyScript numeric types
|
|
9
|
+
declare type usize = number;
|
|
10
|
+
declare type i64 = number;
|
|
11
|
+
declare type u8 = number;
|
|
12
|
+
declare type u32 = number;
|
|
13
|
+
declare type f32 = number;
|
|
14
|
+
|
|
15
|
+
// f64: type alias + namespace with constants
|
|
16
|
+
declare type f64 = number;
|
|
17
|
+
declare namespace f64 {
|
|
18
|
+
const NaN: f64;
|
|
19
|
+
const POSITIVE_INFINITY: f64;
|
|
20
|
+
const NEGATIVE_INFINITY: f64;
|
|
21
|
+
const MAX_VALUE: f64;
|
|
22
|
+
const MIN_VALUE: f64;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// i32: type alias + namespace with builtins
|
|
26
|
+
declare type i32 = number;
|
|
27
|
+
declare namespace i32 {
|
|
28
|
+
function clz(value: i32): i32;
|
|
29
|
+
function ctz(value: i32): i32;
|
|
30
|
+
function rotl(value: i32, shift: i32): i32;
|
|
31
|
+
function rotr(value: i32, shift: i32): i32;
|
|
32
|
+
const MAX_VALUE: i32;
|
|
33
|
+
const MIN_VALUE: i32;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** SIMD 128-bit vector type */
|
|
37
|
+
declare type v128 = object;
|
|
38
|
+
|
|
39
|
+
/** v128 SIMD intrinsics namespace */
|
|
40
|
+
declare namespace v128 {
|
|
41
|
+
function load(ptr: usize, immOffset?: u32, immAlign?: u32): v128;
|
|
42
|
+
function store(ptr: usize, value: v128, immOffset?: u32, immAlign?: u32): void;
|
|
43
|
+
function splat<T>(value: T): v128;
|
|
44
|
+
function extract_lane<T>(vec: v128, idx: u8): T;
|
|
45
|
+
function replace_lane<T>(vec: v128, idx: u8, value: T): v128;
|
|
46
|
+
function add<T>(a: v128, b: v128): v128;
|
|
47
|
+
function sub<T>(a: v128, b: v128): v128;
|
|
48
|
+
function mul<T>(a: v128, b: v128): v128;
|
|
49
|
+
function div<T>(a: v128, b: v128): v128;
|
|
50
|
+
function neg<T>(a: v128): v128;
|
|
51
|
+
function abs<T>(a: v128): v128;
|
|
52
|
+
function sqrt<T>(a: v128): v128;
|
|
53
|
+
function min<T>(a: v128, b: v128): v128;
|
|
54
|
+
function max<T>(a: v128, b: v128): v128;
|
|
55
|
+
function and(a: v128, b: v128): v128;
|
|
56
|
+
function or(a: v128, b: v128): v128;
|
|
57
|
+
function xor(a: v128, b: v128): v128;
|
|
58
|
+
function not(a: v128): v128;
|
|
59
|
+
function shuffle<T>(a: v128, b: v128, ...lanes: u8[]): v128;
|
|
60
|
+
function swizzle(a: v128, s: v128): v128;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** f64x2 SIMD namespace (2 x f64 packed into v128) */
|
|
64
|
+
declare namespace f64x2 {
|
|
65
|
+
function splat(value: f64): v128;
|
|
66
|
+
function extract_lane(vec: v128, idx: 0 | 1): f64;
|
|
67
|
+
function replace_lane(vec: v128, idx: 0 | 1, value: f64): v128;
|
|
68
|
+
function add(a: v128, b: v128): v128;
|
|
69
|
+
function sub(a: v128, b: v128): v128;
|
|
70
|
+
function mul(a: v128, b: v128): v128;
|
|
71
|
+
function div(a: v128, b: v128): v128;
|
|
72
|
+
function neg(a: v128): v128;
|
|
73
|
+
function abs(a: v128): v128;
|
|
74
|
+
function sqrt(a: v128): v128;
|
|
75
|
+
function min(a: v128, b: v128): v128;
|
|
76
|
+
function max(a: v128, b: v128): v128;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// AssemblyScript type cast functions (e.g., f64(intValue) converts i32 to f64)
|
|
80
|
+
declare function f64(value: number): number;
|
|
81
|
+
declare function i32(value: number): number;
|
|
82
|
+
declare function i64(value: number): number;
|
|
83
|
+
declare function u32(value: number): number;
|
|
84
|
+
|
|
85
|
+
// AssemblyScript builtins
|
|
86
|
+
declare function unchecked<T>(expr: T): T;
|
|
87
|
+
declare function changetype<T>(value: unknown): T;
|
|
88
|
+
declare function isFinite<T>(value: T): boolean;
|
|
89
|
+
declare function isNaN<T>(value: T): boolean;
|
|
90
|
+
declare function sizeof<T>(): usize;
|
|
91
|
+
declare function assert<T>(value: T, message?: string): T;
|
|
92
|
+
declare function idof<T>(): u32;
|
|
93
|
+
|
|
94
|
+
// AssemblyScript memory intrinsics
|
|
95
|
+
declare function load<T>(ptr: usize, immOffset?: u32): T;
|
|
96
|
+
declare function store<T>(ptr: usize, value: T, immOffset?: u32): void;
|
|
97
|
+
|
|
98
|
+
declare namespace memory {
|
|
99
|
+
function grow(pages: i32): i32;
|
|
100
|
+
function size(): i32;
|
|
101
|
+
}
|