@danielsimonjr/mathts-matrix 0.7.2 → 0.7.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.
|
@@ -14,202 +14,203 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
*/
|
|
17
|
+
import type { TypedFunction } from '@danielsimonjr/mathts-core';
|
|
17
18
|
/**
|
|
18
19
|
* Create a matrix from various input types - parallel-first
|
|
19
20
|
*/
|
|
20
|
-
export declare const parallelMatrix:
|
|
21
|
+
export declare const parallelMatrix: TypedFunction;
|
|
21
22
|
/**
|
|
22
23
|
* Create an identity matrix
|
|
23
24
|
*/
|
|
24
|
-
export declare const parallelIdentity:
|
|
25
|
+
export declare const parallelIdentity: TypedFunction;
|
|
25
26
|
/**
|
|
26
27
|
* Create a matrix of zeros
|
|
27
28
|
*/
|
|
28
|
-
export declare const parallelZeros:
|
|
29
|
+
export declare const parallelZeros: TypedFunction;
|
|
29
30
|
/**
|
|
30
31
|
* Create a matrix of ones
|
|
31
32
|
*/
|
|
32
|
-
export declare const parallelOnes:
|
|
33
|
+
export declare const parallelOnes: TypedFunction;
|
|
33
34
|
/**
|
|
34
35
|
* Create a diagonal matrix
|
|
35
36
|
*/
|
|
36
|
-
export declare const parallelDiag:
|
|
37
|
+
export declare const parallelDiag: TypedFunction;
|
|
37
38
|
/**
|
|
38
39
|
* Create a random matrix
|
|
39
40
|
*/
|
|
40
|
-
export declare const parallelRandom:
|
|
41
|
+
export declare const parallelRandom: TypedFunction;
|
|
41
42
|
/**
|
|
42
43
|
* Parallel matrix addition with typed-function dispatch
|
|
43
44
|
*/
|
|
44
|
-
export declare const parallelMatrixAdd:
|
|
45
|
+
export declare const parallelMatrixAdd: TypedFunction;
|
|
45
46
|
/**
|
|
46
47
|
* Parallel matrix subtraction with typed-function dispatch
|
|
47
48
|
*/
|
|
48
|
-
export declare const parallelMatrixSubtract:
|
|
49
|
+
export declare const parallelMatrixSubtract: TypedFunction;
|
|
49
50
|
/**
|
|
50
51
|
* Parallel matrix multiplication (matmul) with typed-function dispatch
|
|
51
52
|
*/
|
|
52
|
-
export declare const parallelMatrixMultiply:
|
|
53
|
+
export declare const parallelMatrixMultiply: TypedFunction;
|
|
53
54
|
/**
|
|
54
55
|
* Element-wise multiplication (Hadamard product) - parallel execution
|
|
55
56
|
*/
|
|
56
|
-
export declare const parallelDotMultiply:
|
|
57
|
+
export declare const parallelDotMultiply: TypedFunction;
|
|
57
58
|
/**
|
|
58
59
|
* Parallel matrix division
|
|
59
60
|
*/
|
|
60
|
-
export declare const parallelMatrixDivide:
|
|
61
|
+
export declare const parallelMatrixDivide: TypedFunction;
|
|
61
62
|
/**
|
|
62
63
|
* Matrix negation - parallel execution
|
|
63
64
|
*/
|
|
64
|
-
export declare const parallelUnaryMinus:
|
|
65
|
+
export declare const parallelUnaryMinus: TypedFunction;
|
|
65
66
|
/**
|
|
66
67
|
* Matrix transpose - parallel execution
|
|
67
68
|
*/
|
|
68
|
-
export declare const parallelMatrixTranspose:
|
|
69
|
+
export declare const parallelMatrixTranspose: TypedFunction;
|
|
69
70
|
/**
|
|
70
71
|
* Parallel sum of all elements
|
|
71
72
|
*/
|
|
72
|
-
export declare const parallelMatrixSum:
|
|
73
|
+
export declare const parallelMatrixSum: TypedFunction;
|
|
73
74
|
/**
|
|
74
75
|
* Parallel mean of all elements
|
|
75
76
|
*/
|
|
76
|
-
export declare const parallelMatrixMean:
|
|
77
|
+
export declare const parallelMatrixMean: TypedFunction;
|
|
77
78
|
/**
|
|
78
79
|
* Parallel minimum element
|
|
79
80
|
*/
|
|
80
|
-
export declare const parallelMatrixMin:
|
|
81
|
+
export declare const parallelMatrixMin: TypedFunction;
|
|
81
82
|
/**
|
|
82
83
|
* Parallel maximum element
|
|
83
84
|
*/
|
|
84
|
-
export declare const parallelMatrixMax:
|
|
85
|
+
export declare const parallelMatrixMax: TypedFunction;
|
|
85
86
|
/**
|
|
86
87
|
* Parallel variance computation
|
|
87
88
|
*/
|
|
88
|
-
export declare const parallelMatrixVariance:
|
|
89
|
+
export declare const parallelMatrixVariance: TypedFunction;
|
|
89
90
|
/**
|
|
90
91
|
* Parallel standard deviation
|
|
91
92
|
*/
|
|
92
|
-
export declare const parallelMatrixStd:
|
|
93
|
+
export declare const parallelMatrixStd: TypedFunction;
|
|
93
94
|
/**
|
|
94
95
|
* Parallel Frobenius norm
|
|
95
96
|
*/
|
|
96
|
-
export declare const parallelMatrixNorm:
|
|
97
|
+
export declare const parallelMatrixNorm: TypedFunction;
|
|
97
98
|
/**
|
|
98
99
|
* Parallel dot product
|
|
99
100
|
*/
|
|
100
|
-
export declare const parallelMatrixDot:
|
|
101
|
+
export declare const parallelMatrixDot: TypedFunction;
|
|
101
102
|
/**
|
|
102
103
|
* Matrix trace (sum of diagonal elements)
|
|
103
104
|
*/
|
|
104
|
-
export declare const parallelMatrixTrace:
|
|
105
|
+
export declare const parallelMatrixTrace: TypedFunction;
|
|
105
106
|
/**
|
|
106
107
|
* Parallel Euclidean distance
|
|
107
108
|
*/
|
|
108
|
-
export declare const parallelMatrixDistance:
|
|
109
|
+
export declare const parallelMatrixDistance: TypedFunction;
|
|
109
110
|
/**
|
|
110
111
|
* Parallel element-wise absolute value
|
|
111
112
|
*/
|
|
112
|
-
export declare const parallelMatrixAbs:
|
|
113
|
+
export declare const parallelMatrixAbs: TypedFunction;
|
|
113
114
|
/**
|
|
114
115
|
* Parallel element-wise square root
|
|
115
116
|
*/
|
|
116
|
-
export declare const parallelMatrixSqrt:
|
|
117
|
+
export declare const parallelMatrixSqrt: TypedFunction;
|
|
117
118
|
/**
|
|
118
119
|
* Parallel element-wise square
|
|
119
120
|
*/
|
|
120
|
-
export declare const parallelMatrixSquare:
|
|
121
|
+
export declare const parallelMatrixSquare: TypedFunction;
|
|
121
122
|
/**
|
|
122
123
|
* Parallel element-wise exponential
|
|
123
124
|
*/
|
|
124
|
-
export declare const parallelMatrixExp:
|
|
125
|
+
export declare const parallelMatrixExp: TypedFunction;
|
|
125
126
|
/**
|
|
126
127
|
* Parallel element-wise natural logarithm
|
|
127
128
|
*/
|
|
128
|
-
export declare const parallelMatrixLog:
|
|
129
|
+
export declare const parallelMatrixLog: TypedFunction;
|
|
129
130
|
/**
|
|
130
131
|
* Parallel element-wise sine
|
|
131
132
|
*/
|
|
132
|
-
export declare const parallelMatrixSin:
|
|
133
|
+
export declare const parallelMatrixSin: TypedFunction;
|
|
133
134
|
/**
|
|
134
135
|
* Parallel element-wise cosine
|
|
135
136
|
*/
|
|
136
|
-
export declare const parallelMatrixCos:
|
|
137
|
+
export declare const parallelMatrixCos: TypedFunction;
|
|
137
138
|
/**
|
|
138
139
|
* Parallel element-wise tangent
|
|
139
140
|
*/
|
|
140
|
-
export declare const parallelMatrixTan:
|
|
141
|
+
export declare const parallelMatrixTan: TypedFunction;
|
|
141
142
|
/**
|
|
142
143
|
* Get matrix dimensions
|
|
143
144
|
*/
|
|
144
|
-
export declare const parallelMatrixSize:
|
|
145
|
+
export declare const parallelMatrixSize: TypedFunction;
|
|
145
146
|
/**
|
|
146
147
|
* Get element at position
|
|
147
148
|
*/
|
|
148
|
-
export declare const parallelMatrixSubset:
|
|
149
|
+
export declare const parallelMatrixSubset: TypedFunction;
|
|
149
150
|
/**
|
|
150
151
|
* Get row from matrix
|
|
151
152
|
*/
|
|
152
|
-
export declare const parallelMatrixRow:
|
|
153
|
+
export declare const parallelMatrixRow: TypedFunction;
|
|
153
154
|
/**
|
|
154
155
|
* Get column from matrix
|
|
155
156
|
*/
|
|
156
|
-
export declare const parallelMatrixColumn:
|
|
157
|
+
export declare const parallelMatrixColumn: TypedFunction;
|
|
157
158
|
/**
|
|
158
159
|
* Get diagonal from matrix
|
|
159
160
|
*/
|
|
160
|
-
export declare const parallelMatrixDiagonal:
|
|
161
|
+
export declare const parallelMatrixDiagonal: TypedFunction;
|
|
161
162
|
/**
|
|
162
163
|
* Parallel matrix-vector multiplication
|
|
163
164
|
*/
|
|
164
|
-
export declare const parallelMatrixMatvec:
|
|
165
|
+
export declare const parallelMatrixMatvec: TypedFunction;
|
|
165
166
|
/**
|
|
166
167
|
* Parallel outer product
|
|
167
168
|
*/
|
|
168
|
-
export declare const parallelMatrixOuter:
|
|
169
|
+
export declare const parallelMatrixOuter: TypedFunction;
|
|
169
170
|
/**
|
|
170
171
|
* Parallel histogram computation
|
|
171
172
|
*/
|
|
172
|
-
export declare const parallelMatrixHistogram:
|
|
173
|
+
export declare const parallelMatrixHistogram: TypedFunction;
|
|
173
174
|
export declare const parallelMatrixOperations: {
|
|
174
|
-
matrix:
|
|
175
|
-
identity:
|
|
176
|
-
zeros:
|
|
177
|
-
ones:
|
|
178
|
-
diag:
|
|
179
|
-
random:
|
|
180
|
-
add:
|
|
181
|
-
subtract:
|
|
182
|
-
multiply:
|
|
183
|
-
dotMultiply:
|
|
184
|
-
divide:
|
|
185
|
-
unaryMinus:
|
|
186
|
-
transpose:
|
|
187
|
-
sum:
|
|
188
|
-
mean:
|
|
189
|
-
min:
|
|
190
|
-
max:
|
|
191
|
-
variance:
|
|
192
|
-
std:
|
|
193
|
-
norm:
|
|
194
|
-
dot:
|
|
195
|
-
trace:
|
|
196
|
-
distance:
|
|
197
|
-
abs:
|
|
198
|
-
sqrt:
|
|
199
|
-
square:
|
|
200
|
-
exp:
|
|
201
|
-
log:
|
|
202
|
-
sin:
|
|
203
|
-
cos:
|
|
204
|
-
tan:
|
|
205
|
-
size:
|
|
206
|
-
subset:
|
|
207
|
-
row:
|
|
208
|
-
column:
|
|
209
|
-
diagonal:
|
|
210
|
-
matvec:
|
|
211
|
-
outer:
|
|
212
|
-
histogram:
|
|
175
|
+
matrix: TypedFunction;
|
|
176
|
+
identity: TypedFunction;
|
|
177
|
+
zeros: TypedFunction;
|
|
178
|
+
ones: TypedFunction;
|
|
179
|
+
diag: TypedFunction;
|
|
180
|
+
random: TypedFunction;
|
|
181
|
+
add: TypedFunction;
|
|
182
|
+
subtract: TypedFunction;
|
|
183
|
+
multiply: TypedFunction;
|
|
184
|
+
dotMultiply: TypedFunction;
|
|
185
|
+
divide: TypedFunction;
|
|
186
|
+
unaryMinus: TypedFunction;
|
|
187
|
+
transpose: TypedFunction;
|
|
188
|
+
sum: TypedFunction;
|
|
189
|
+
mean: TypedFunction;
|
|
190
|
+
min: TypedFunction;
|
|
191
|
+
max: TypedFunction;
|
|
192
|
+
variance: TypedFunction;
|
|
193
|
+
std: TypedFunction;
|
|
194
|
+
norm: TypedFunction;
|
|
195
|
+
dot: TypedFunction;
|
|
196
|
+
trace: TypedFunction;
|
|
197
|
+
distance: TypedFunction;
|
|
198
|
+
abs: TypedFunction;
|
|
199
|
+
sqrt: TypedFunction;
|
|
200
|
+
square: TypedFunction;
|
|
201
|
+
exp: TypedFunction;
|
|
202
|
+
log: TypedFunction;
|
|
203
|
+
sin: TypedFunction;
|
|
204
|
+
cos: TypedFunction;
|
|
205
|
+
tan: TypedFunction;
|
|
206
|
+
size: TypedFunction;
|
|
207
|
+
subset: TypedFunction;
|
|
208
|
+
row: TypedFunction;
|
|
209
|
+
column: TypedFunction;
|
|
210
|
+
diagonal: TypedFunction;
|
|
211
|
+
matvec: TypedFunction;
|
|
212
|
+
outer: TypedFunction;
|
|
213
|
+
histogram: TypedFunction;
|
|
213
214
|
};
|
|
214
215
|
/**
|
|
215
216
|
* Initialize parallel matrix operations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallel-matrix.d.ts","sourceRoot":"","sources":["../src/parallel-matrix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"parallel-matrix.d.ts","sourceRoot":"","sources":["../src/parallel-matrix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAwOhE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aAab,CAAC;AAEjB;;GAEG;AACH,e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;IACJ,GAAG;IACH,KAAK;IACL,QAAQ;IAGR,GAAG;IACH,IAAI;IACJ,MAAM;IACN,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IAGH,IAAI;IACJ,MAAM;IACN,GAAG;IACH,MAAM;IACN,QAAQ;IAGR,MAAM;IACN,KAAK;IACL,SAAS;CACV,CAAC;AAEF;;GAEG;AACH,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE9D;AAED;;GAEG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE7D"}
|
|
@@ -6,156 +6,157 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
+
import type { TypedFunction } from '@danielsimonjr/mathts-core';
|
|
9
10
|
/**
|
|
10
11
|
* Create a matrix from various input types
|
|
11
12
|
*/
|
|
12
|
-
export declare const matrix:
|
|
13
|
+
export declare const matrix: TypedFunction;
|
|
13
14
|
/**
|
|
14
15
|
* Create an identity matrix
|
|
15
16
|
*/
|
|
16
|
-
export declare const identity:
|
|
17
|
+
export declare const identity: TypedFunction;
|
|
17
18
|
/**
|
|
18
19
|
* Create a matrix of zeros
|
|
19
20
|
*/
|
|
20
|
-
export declare const zeros:
|
|
21
|
+
export declare const zeros: TypedFunction;
|
|
21
22
|
/**
|
|
22
23
|
* Create a matrix of ones
|
|
23
24
|
*/
|
|
24
|
-
export declare const ones:
|
|
25
|
+
export declare const ones: TypedFunction;
|
|
25
26
|
/**
|
|
26
27
|
* Create a diagonal matrix
|
|
27
28
|
*/
|
|
28
|
-
export declare const diag:
|
|
29
|
+
export declare const diag: TypedFunction;
|
|
29
30
|
/**
|
|
30
31
|
* Create a random matrix
|
|
31
32
|
*/
|
|
32
|
-
export declare const random:
|
|
33
|
+
export declare const random: TypedFunction;
|
|
33
34
|
/**
|
|
34
35
|
* Matrix addition - polymorphic add function
|
|
35
36
|
*/
|
|
36
|
-
export declare const add:
|
|
37
|
+
export declare const add: TypedFunction;
|
|
37
38
|
/**
|
|
38
39
|
* Matrix subtraction
|
|
39
40
|
*/
|
|
40
|
-
export declare const subtract:
|
|
41
|
+
export declare const subtract: TypedFunction;
|
|
41
42
|
/**
|
|
42
43
|
* Matrix multiplication (matmul)
|
|
43
44
|
*/
|
|
44
|
-
export declare const multiply:
|
|
45
|
+
export declare const multiply: TypedFunction;
|
|
45
46
|
/**
|
|
46
47
|
* Element-wise multiplication (Hadamard product)
|
|
47
48
|
*/
|
|
48
|
-
export declare const dotMultiply:
|
|
49
|
+
export declare const dotMultiply: TypedFunction;
|
|
49
50
|
/**
|
|
50
51
|
* Matrix division (A / B where B is scalar or element-wise)
|
|
51
52
|
*/
|
|
52
|
-
export declare const divide:
|
|
53
|
+
export declare const divide: TypedFunction;
|
|
53
54
|
/**
|
|
54
55
|
* Matrix negation
|
|
55
56
|
*/
|
|
56
|
-
export declare const unaryMinus:
|
|
57
|
+
export declare const unaryMinus: TypedFunction;
|
|
57
58
|
/**
|
|
58
59
|
* Matrix transpose
|
|
59
60
|
*/
|
|
60
|
-
export declare const transpose:
|
|
61
|
+
export declare const transpose: TypedFunction;
|
|
61
62
|
/**
|
|
62
63
|
* Sum of all elements
|
|
63
64
|
*/
|
|
64
|
-
export declare const sum:
|
|
65
|
+
export declare const sum: TypedFunction;
|
|
65
66
|
/**
|
|
66
67
|
* Mean of all elements
|
|
67
68
|
*/
|
|
68
|
-
export declare const mean:
|
|
69
|
+
export declare const mean: TypedFunction;
|
|
69
70
|
/**
|
|
70
71
|
* Minimum element
|
|
71
72
|
*/
|
|
72
|
-
export declare const min:
|
|
73
|
+
export declare const min: TypedFunction;
|
|
73
74
|
/**
|
|
74
75
|
* Maximum element
|
|
75
76
|
*/
|
|
76
|
-
export declare const max:
|
|
77
|
+
export declare const max: TypedFunction;
|
|
77
78
|
/**
|
|
78
79
|
* Frobenius norm
|
|
79
80
|
*/
|
|
80
|
-
export declare const norm:
|
|
81
|
+
export declare const norm: TypedFunction;
|
|
81
82
|
/**
|
|
82
83
|
* Matrix trace (sum of diagonal elements)
|
|
83
84
|
*/
|
|
84
|
-
export declare const trace:
|
|
85
|
+
export declare const trace: TypedFunction;
|
|
85
86
|
/**
|
|
86
87
|
* Element-wise absolute value
|
|
87
88
|
*/
|
|
88
|
-
export declare const abs:
|
|
89
|
+
export declare const abs: TypedFunction;
|
|
89
90
|
/**
|
|
90
91
|
* Element-wise square root
|
|
91
92
|
*/
|
|
92
|
-
export declare const sqrt:
|
|
93
|
+
export declare const sqrt: TypedFunction;
|
|
93
94
|
/**
|
|
94
95
|
* Element-wise square
|
|
95
96
|
*/
|
|
96
|
-
export declare const square:
|
|
97
|
+
export declare const square: TypedFunction;
|
|
97
98
|
/**
|
|
98
99
|
* Element-wise exponential
|
|
99
100
|
*/
|
|
100
|
-
export declare const exp:
|
|
101
|
+
export declare const exp: TypedFunction;
|
|
101
102
|
/**
|
|
102
103
|
* Element-wise natural logarithm
|
|
103
104
|
*/
|
|
104
|
-
export declare const log:
|
|
105
|
+
export declare const log: TypedFunction;
|
|
105
106
|
/**
|
|
106
107
|
* Element-wise power
|
|
107
108
|
*/
|
|
108
|
-
export declare const pow:
|
|
109
|
+
export declare const pow: TypedFunction;
|
|
109
110
|
/**
|
|
110
111
|
* Get matrix dimensions
|
|
111
112
|
*/
|
|
112
|
-
export declare const size:
|
|
113
|
+
export declare const size: TypedFunction;
|
|
113
114
|
/**
|
|
114
115
|
* Get element at position
|
|
115
116
|
*/
|
|
116
|
-
export declare const subset:
|
|
117
|
+
export declare const subset: TypedFunction;
|
|
117
118
|
/**
|
|
118
119
|
* Get row from matrix
|
|
119
120
|
*/
|
|
120
|
-
export declare const row:
|
|
121
|
+
export declare const row: TypedFunction;
|
|
121
122
|
/**
|
|
122
123
|
* Get column from matrix
|
|
123
124
|
*/
|
|
124
|
-
export declare const column:
|
|
125
|
+
export declare const column: TypedFunction;
|
|
125
126
|
/**
|
|
126
127
|
* Get diagonal from matrix
|
|
127
128
|
*/
|
|
128
|
-
export declare const diagonal:
|
|
129
|
+
export declare const diagonal: TypedFunction;
|
|
129
130
|
export declare const typedMatrixOperations: {
|
|
130
|
-
matrix:
|
|
131
|
-
identity:
|
|
132
|
-
zeros:
|
|
133
|
-
ones:
|
|
134
|
-
diag:
|
|
135
|
-
random:
|
|
136
|
-
add:
|
|
137
|
-
subtract:
|
|
138
|
-
multiply:
|
|
139
|
-
dotMultiply:
|
|
140
|
-
divide:
|
|
141
|
-
unaryMinus:
|
|
142
|
-
transpose:
|
|
143
|
-
sum:
|
|
144
|
-
mean:
|
|
145
|
-
min:
|
|
146
|
-
max:
|
|
147
|
-
norm:
|
|
148
|
-
trace:
|
|
149
|
-
abs:
|
|
150
|
-
sqrt:
|
|
151
|
-
square:
|
|
152
|
-
exp:
|
|
153
|
-
log:
|
|
154
|
-
pow:
|
|
155
|
-
size:
|
|
156
|
-
subset:
|
|
157
|
-
row:
|
|
158
|
-
column:
|
|
159
|
-
diagonal:
|
|
131
|
+
matrix: TypedFunction;
|
|
132
|
+
identity: TypedFunction;
|
|
133
|
+
zeros: TypedFunction;
|
|
134
|
+
ones: TypedFunction;
|
|
135
|
+
diag: TypedFunction;
|
|
136
|
+
random: TypedFunction;
|
|
137
|
+
add: TypedFunction;
|
|
138
|
+
subtract: TypedFunction;
|
|
139
|
+
multiply: TypedFunction;
|
|
140
|
+
dotMultiply: TypedFunction;
|
|
141
|
+
divide: TypedFunction;
|
|
142
|
+
unaryMinus: TypedFunction;
|
|
143
|
+
transpose: TypedFunction;
|
|
144
|
+
sum: TypedFunction;
|
|
145
|
+
mean: TypedFunction;
|
|
146
|
+
min: TypedFunction;
|
|
147
|
+
max: TypedFunction;
|
|
148
|
+
norm: TypedFunction;
|
|
149
|
+
trace: TypedFunction;
|
|
150
|
+
abs: TypedFunction;
|
|
151
|
+
sqrt: TypedFunction;
|
|
152
|
+
square: TypedFunction;
|
|
153
|
+
exp: TypedFunction;
|
|
154
|
+
log: TypedFunction;
|
|
155
|
+
pow: TypedFunction;
|
|
156
|
+
size: TypedFunction;
|
|
157
|
+
subset: TypedFunction;
|
|
158
|
+
row: TypedFunction;
|
|
159
|
+
column: TypedFunction;
|
|
160
|
+
diagonal: TypedFunction;
|
|
160
161
|
};
|
|
161
162
|
//# sourceMappingURL=typed-operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-operations.d.ts","sourceRoot":"","sources":["../src/typed-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"typed-operations.d.ts","sourceRoot":"","sources":["../src/typed-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAWhE;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,aAUL,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,aAEP,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,aAEJ,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,aAEH,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,aAEH,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,aAEL,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,aAYF,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,aAYP,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,aAYP,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,aAIV,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,aASL,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,aAGT,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,aAER,CAAC;AAMjB;;GAEG;AAC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