@justinelliottcobb/amari-wasm 0.11.0 → 0.12.2
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 +115 -10
- package/amari_wasm.d.ts +257 -113
- package/amari_wasm.js +742 -396
- package/amari_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/amari_wasm.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ export function validate_relativistic_module(): boolean;
|
|
|
28
28
|
* Initialize the fusion module
|
|
29
29
|
*/
|
|
30
30
|
export function initFusion(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Initialize the holographic memory module
|
|
33
|
+
*/
|
|
34
|
+
export function initHolographic(): void;
|
|
31
35
|
/**
|
|
32
36
|
* Integrate a JavaScript function over an interval
|
|
33
37
|
*
|
|
@@ -100,7 +104,6 @@ export enum WasmIntegrationMethod {
|
|
|
100
104
|
export class AutoDiff {
|
|
101
105
|
private constructor();
|
|
102
106
|
free(): void;
|
|
103
|
-
[Symbol.dispose](): void;
|
|
104
107
|
/**
|
|
105
108
|
* Linear layer forward pass (y = Wx + b) with automatic gradients
|
|
106
109
|
*/
|
|
@@ -124,7 +127,6 @@ export class AutoDiff {
|
|
|
124
127
|
export class AutomataBatchOperations {
|
|
125
128
|
private constructor();
|
|
126
129
|
free(): void;
|
|
127
|
-
[Symbol.dispose](): void;
|
|
128
130
|
/**
|
|
129
131
|
* Evolve multiple CA systems in parallel
|
|
130
132
|
*/
|
|
@@ -144,7 +146,6 @@ export class AutomataBatchOperations {
|
|
|
144
146
|
export class AutomataUtils {
|
|
145
147
|
private constructor();
|
|
146
148
|
free(): void;
|
|
147
|
-
[Symbol.dispose](): void;
|
|
148
149
|
/**
|
|
149
150
|
* Validate grid dimensions and format
|
|
150
151
|
*/
|
|
@@ -168,7 +169,6 @@ export class AutomataUtils {
|
|
|
168
169
|
export class BatchOperations {
|
|
169
170
|
private constructor();
|
|
170
171
|
free(): void;
|
|
171
|
-
[Symbol.dispose](): void;
|
|
172
172
|
/**
|
|
173
173
|
* Batch geometric product: compute a[i] * b[i] for all i
|
|
174
174
|
* Optimized for WebAssembly performance with reduced allocations
|
|
@@ -185,7 +185,6 @@ export class BatchOperations {
|
|
|
185
185
|
export class BatchOps {
|
|
186
186
|
private constructor();
|
|
187
187
|
free(): void;
|
|
188
|
-
[Symbol.dispose](): void;
|
|
189
188
|
/**
|
|
190
189
|
* Matrix multiplication with automatic gradients
|
|
191
190
|
*/
|
|
@@ -205,7 +204,6 @@ export class BatchOps {
|
|
|
205
204
|
export class EnumerativeBatch {
|
|
206
205
|
private constructor();
|
|
207
206
|
free(): void;
|
|
208
|
-
[Symbol.dispose](): void;
|
|
209
207
|
/**
|
|
210
208
|
* Compute multiple Bézout intersections in batch
|
|
211
209
|
*/
|
|
@@ -225,7 +223,6 @@ export class EnumerativeBatch {
|
|
|
225
223
|
export class EnumerativeUtils {
|
|
226
224
|
private constructor();
|
|
227
225
|
free(): void;
|
|
228
|
-
[Symbol.dispose](): void;
|
|
229
226
|
/**
|
|
230
227
|
* Validate partition for Schubert calculus
|
|
231
228
|
*/
|
|
@@ -257,7 +254,6 @@ export class EnumerativeUtils {
|
|
|
257
254
|
export class FusionBatchOperations {
|
|
258
255
|
private constructor();
|
|
259
256
|
free(): void;
|
|
260
|
-
[Symbol.dispose](): void;
|
|
261
257
|
/**
|
|
262
258
|
* Optimize TDC parameters using gradient information
|
|
263
259
|
*/
|
|
@@ -272,6 +268,8 @@ export class FusionBatchOperations {
|
|
|
272
268
|
static batchEvaluate(tdc_a_batch: Float64Array, tdc_b_batch: Float64Array, batch_size: number): Float64Array;
|
|
273
269
|
/**
|
|
274
270
|
* Batch sensitivity analysis for gradient-based optimization
|
|
271
|
+
*
|
|
272
|
+
* Note: Using simplified implementation based on gradient norms
|
|
275
273
|
*/
|
|
276
274
|
static batchSensitivity(tdc_batch: Float64Array, batch_size: number): Float64Array;
|
|
277
275
|
/**
|
|
@@ -289,7 +287,6 @@ export class FusionBatchOperations {
|
|
|
289
287
|
export class FusionUtils {
|
|
290
288
|
private constructor();
|
|
291
289
|
free(): void;
|
|
292
|
-
[Symbol.dispose](): void;
|
|
293
290
|
/**
|
|
294
291
|
* Validate logits for numerical stability
|
|
295
292
|
*/
|
|
@@ -300,10 +297,14 @@ export class FusionUtils {
|
|
|
300
297
|
static normalizeLogits(logits: Float64Array): Float64Array;
|
|
301
298
|
/**
|
|
302
299
|
* Convert softmax probabilities to tropical representation
|
|
300
|
+
*
|
|
301
|
+
* Note: Direct conversion helpers are not in v0.12.0, using manual implementation
|
|
303
302
|
*/
|
|
304
303
|
static softmaxToTropical(probs: Float64Array): Float64Array;
|
|
305
304
|
/**
|
|
306
305
|
* Convert tropical numbers back to softmax probabilities
|
|
306
|
+
*
|
|
307
|
+
* Note: Direct conversion helpers are not in v0.12.0, using manual implementation
|
|
307
308
|
*/
|
|
308
309
|
static tropicalToSoftmax(tropical_values: Float64Array): Float64Array;
|
|
309
310
|
}
|
|
@@ -313,7 +314,6 @@ export class FusionUtils {
|
|
|
313
314
|
export class InfoGeomUtils {
|
|
314
315
|
private constructor();
|
|
315
316
|
free(): void;
|
|
316
|
-
[Symbol.dispose](): void;
|
|
317
317
|
/**
|
|
318
318
|
* Compute cross-entropy between two distributions
|
|
319
319
|
*/
|
|
@@ -349,7 +349,6 @@ export class InfoGeomUtils {
|
|
|
349
349
|
export class Integration {
|
|
350
350
|
private constructor();
|
|
351
351
|
free(): void;
|
|
352
|
-
[Symbol.dispose](): void;
|
|
353
352
|
/**
|
|
354
353
|
* Compute 1D definite integral using Simpson's rule
|
|
355
354
|
*
|
|
@@ -398,7 +397,6 @@ export class Integration {
|
|
|
398
397
|
export class MLOps {
|
|
399
398
|
private constructor();
|
|
400
399
|
free(): void;
|
|
401
|
-
[Symbol.dispose](): void;
|
|
402
400
|
/**
|
|
403
401
|
* Batch apply activation function with gradients
|
|
404
402
|
*/
|
|
@@ -422,7 +420,6 @@ export class MLOps {
|
|
|
422
420
|
export class NetworkUtils {
|
|
423
421
|
private constructor();
|
|
424
422
|
free(): void;
|
|
425
|
-
[Symbol.dispose](): void;
|
|
426
423
|
/**
|
|
427
424
|
* Create a random geometric network for testing
|
|
428
425
|
*/
|
|
@@ -444,7 +441,6 @@ export class NetworkUtils {
|
|
|
444
441
|
*/
|
|
445
442
|
export class NumericalDerivative {
|
|
446
443
|
free(): void;
|
|
447
|
-
[Symbol.dispose](): void;
|
|
448
444
|
/**
|
|
449
445
|
* Compute divergence of a vector field at a point
|
|
450
446
|
*
|
|
@@ -528,7 +524,6 @@ export class NumericalDerivative {
|
|
|
528
524
|
export class PerformanceOperations {
|
|
529
525
|
private constructor();
|
|
530
526
|
free(): void;
|
|
531
|
-
[Symbol.dispose](): void;
|
|
532
527
|
/**
|
|
533
528
|
* Batch normalize vectors for efficiency
|
|
534
529
|
*/
|
|
@@ -564,7 +559,6 @@ export class PerformanceOperations {
|
|
|
564
559
|
export class RiemannianManifold {
|
|
565
560
|
private constructor();
|
|
566
561
|
free(): void;
|
|
567
|
-
[Symbol.dispose](): void;
|
|
568
562
|
/**
|
|
569
563
|
* Create a 2D hyperbolic plane (Poincaré half-plane model)
|
|
570
564
|
*
|
|
@@ -674,7 +668,6 @@ export class RiemannianManifold {
|
|
|
674
668
|
*/
|
|
675
669
|
export class ScalarField {
|
|
676
670
|
free(): void;
|
|
677
|
-
[Symbol.dispose](): void;
|
|
678
671
|
/**
|
|
679
672
|
* Batch evaluate the field at multiple points
|
|
680
673
|
*
|
|
@@ -730,7 +723,6 @@ export class ScalarField {
|
|
|
730
723
|
export class TropicalBatch {
|
|
731
724
|
private constructor();
|
|
732
725
|
free(): void;
|
|
733
|
-
[Symbol.dispose](): void;
|
|
734
726
|
/**
|
|
735
727
|
* Convert array of log probabilities to tropical numbers and find maximum
|
|
736
728
|
*/
|
|
@@ -754,7 +746,6 @@ export class TropicalBatch {
|
|
|
754
746
|
export class TropicalMLOps {
|
|
755
747
|
private constructor();
|
|
756
748
|
free(): void;
|
|
757
|
-
[Symbol.dispose](): void;
|
|
758
749
|
/**
|
|
759
750
|
* Compute shortest paths using tropical algebra (Floyd-Warshall)
|
|
760
751
|
*/
|
|
@@ -785,7 +776,6 @@ export class TropicalMLOps {
|
|
|
785
776
|
*/
|
|
786
777
|
export class VectorField {
|
|
787
778
|
free(): void;
|
|
788
|
-
[Symbol.dispose](): void;
|
|
789
779
|
/**
|
|
790
780
|
* Create a 2D vector field from a JavaScript function
|
|
791
781
|
*
|
|
@@ -824,7 +814,6 @@ export class VectorField {
|
|
|
824
814
|
*/
|
|
825
815
|
export class WasmAlphaConnection {
|
|
826
816
|
free(): void;
|
|
827
|
-
[Symbol.dispose](): void;
|
|
828
817
|
/**
|
|
829
818
|
* Check if this is the mixture connection (α = -1)
|
|
830
819
|
*/
|
|
@@ -851,7 +840,6 @@ export class WasmAlphaConnection {
|
|
|
851
840
|
*/
|
|
852
841
|
export class WasmChowClass {
|
|
853
842
|
free(): void;
|
|
854
|
-
[Symbol.dispose](): void;
|
|
855
843
|
/**
|
|
856
844
|
* Get the degree of this Chow class
|
|
857
845
|
*/
|
|
@@ -889,13 +877,35 @@ export class WasmChowClass {
|
|
|
889
877
|
*/
|
|
890
878
|
multiply(other: WasmChowClass): WasmChowClass;
|
|
891
879
|
}
|
|
880
|
+
/**
|
|
881
|
+
* WASM wrapper for cleanup results
|
|
882
|
+
*/
|
|
883
|
+
export class WasmCleanupResult {
|
|
884
|
+
private constructor();
|
|
885
|
+
free(): void;
|
|
886
|
+
/**
|
|
887
|
+
* Get the cleaned (denoised) value
|
|
888
|
+
*/
|
|
889
|
+
getCleaned(): WasmTropicalDualClifford;
|
|
890
|
+
/**
|
|
891
|
+
* Check if the cleanup converged
|
|
892
|
+
*/
|
|
893
|
+
didConverge(): boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Get the number of iterations used
|
|
896
|
+
*/
|
|
897
|
+
getIterations(): number;
|
|
898
|
+
/**
|
|
899
|
+
* Get the index of the best matching codebook item
|
|
900
|
+
*/
|
|
901
|
+
getBestMatchIndex(): number;
|
|
902
|
+
}
|
|
892
903
|
/**
|
|
893
904
|
* WASM wrapper for community detection results
|
|
894
905
|
*/
|
|
895
906
|
export class WasmCommunity {
|
|
896
907
|
private constructor();
|
|
897
908
|
free(): void;
|
|
898
|
-
[Symbol.dispose](): void;
|
|
899
909
|
/**
|
|
900
910
|
* Get cohesion score
|
|
901
911
|
*/
|
|
@@ -916,7 +926,6 @@ export class WasmCommunity {
|
|
|
916
926
|
*/
|
|
917
927
|
export class WasmCountingMeasure {
|
|
918
928
|
free(): void;
|
|
919
|
-
[Symbol.dispose](): void;
|
|
920
929
|
/**
|
|
921
930
|
* Check if a set is measurable under counting measure
|
|
922
931
|
* (all sets are measurable under counting measure)
|
|
@@ -939,7 +948,6 @@ export class WasmCountingMeasure {
|
|
|
939
948
|
*/
|
|
940
949
|
export class WasmDualNumber {
|
|
941
950
|
free(): void;
|
|
942
|
-
[Symbol.dispose](): void;
|
|
943
951
|
/**
|
|
944
952
|
* Natural logarithm
|
|
945
953
|
*/
|
|
@@ -1006,6 +1014,8 @@ export class WasmDualNumber {
|
|
|
1006
1014
|
powi(n: number): WasmDualNumber;
|
|
1007
1015
|
/**
|
|
1008
1016
|
* ReLU activation function
|
|
1017
|
+
*
|
|
1018
|
+
* Note: Manual implementation as relu() is not in v0.12.0 DualNumber API
|
|
1009
1019
|
*/
|
|
1010
1020
|
relu(): WasmDualNumber;
|
|
1011
1021
|
/**
|
|
@@ -1038,6 +1048,9 @@ export class WasmDualNumber {
|
|
|
1038
1048
|
getReal(): number;
|
|
1039
1049
|
/**
|
|
1040
1050
|
* Softplus activation function
|
|
1051
|
+
*
|
|
1052
|
+
* Note: Manual implementation as softplus() is not in v0.12.0 DualNumber API
|
|
1053
|
+
* softplus(x) = ln(1 + exp(x))
|
|
1041
1054
|
*/
|
|
1042
1055
|
softplus(): WasmDualNumber;
|
|
1043
1056
|
/**
|
|
@@ -1050,7 +1063,6 @@ export class WasmDualNumber {
|
|
|
1050
1063
|
*/
|
|
1051
1064
|
export class WasmDuallyFlatManifold {
|
|
1052
1065
|
free(): void;
|
|
1053
|
-
[Symbol.dispose](): void;
|
|
1054
1066
|
/**
|
|
1055
1067
|
* Compute JS divergence (symmetric version of KL divergence)
|
|
1056
1068
|
*/
|
|
@@ -1082,7 +1094,6 @@ export class WasmDuallyFlatManifold {
|
|
|
1082
1094
|
export class WasmEvaluationResult {
|
|
1083
1095
|
private constructor();
|
|
1084
1096
|
free(): void;
|
|
1085
|
-
[Symbol.dispose](): void;
|
|
1086
1097
|
/**
|
|
1087
1098
|
* Get gradient norm from dual numbers
|
|
1088
1099
|
*/
|
|
@@ -1110,7 +1121,6 @@ export class WasmEvaluationResult {
|
|
|
1110
1121
|
export class WasmFisherInformationMatrix {
|
|
1111
1122
|
private constructor();
|
|
1112
1123
|
free(): void;
|
|
1113
|
-
[Symbol.dispose](): void;
|
|
1114
1124
|
/**
|
|
1115
1125
|
* Get eigenvalues of the Fisher matrix
|
|
1116
1126
|
*/
|
|
@@ -1130,7 +1140,6 @@ export class WasmFisherInformationMatrix {
|
|
|
1130
1140
|
export class WasmFisherMeasure {
|
|
1131
1141
|
private constructor();
|
|
1132
1142
|
free(): void;
|
|
1133
|
-
[Symbol.dispose](): void;
|
|
1134
1143
|
/**
|
|
1135
1144
|
* Create Fisher measure from a parametric density
|
|
1136
1145
|
*/
|
|
@@ -1150,7 +1159,6 @@ export class WasmFisherMeasure {
|
|
|
1150
1159
|
export class WasmFourVelocity {
|
|
1151
1160
|
private constructor();
|
|
1152
1161
|
free(): void;
|
|
1153
|
-
[Symbol.dispose](): void;
|
|
1154
1162
|
/**
|
|
1155
1163
|
* Create four-velocity from 3-velocity components
|
|
1156
1164
|
*/
|
|
@@ -1186,7 +1194,6 @@ export class WasmFourVelocity {
|
|
|
1186
1194
|
export class WasmGeodesicIntegrator {
|
|
1187
1195
|
private constructor();
|
|
1188
1196
|
free(): void;
|
|
1189
|
-
[Symbol.dispose](): void;
|
|
1190
1197
|
/**
|
|
1191
1198
|
* Propagate particle through spacetime
|
|
1192
1199
|
*/
|
|
@@ -1201,7 +1208,6 @@ export class WasmGeodesicIntegrator {
|
|
|
1201
1208
|
*/
|
|
1202
1209
|
export class WasmGeometricCA {
|
|
1203
1210
|
free(): void;
|
|
1204
|
-
[Symbol.dispose](): void;
|
|
1205
1211
|
/**
|
|
1206
1212
|
* Add a glider pattern (if supported by the rule)
|
|
1207
1213
|
*/
|
|
@@ -1268,7 +1274,6 @@ export class WasmGeometricCA {
|
|
|
1268
1274
|
*/
|
|
1269
1275
|
export class WasmGeometricEdge {
|
|
1270
1276
|
free(): void;
|
|
1271
|
-
[Symbol.dispose](): void;
|
|
1272
1277
|
/**
|
|
1273
1278
|
* Create a new geometric edge
|
|
1274
1279
|
*/
|
|
@@ -1291,7 +1296,6 @@ export class WasmGeometricEdge {
|
|
|
1291
1296
|
*/
|
|
1292
1297
|
export class WasmGeometricNetwork {
|
|
1293
1298
|
free(): void;
|
|
1294
|
-
[Symbol.dispose](): void;
|
|
1295
1299
|
/**
|
|
1296
1300
|
* Get the degree of a node
|
|
1297
1301
|
*/
|
|
@@ -1378,7 +1382,6 @@ export class WasmGeometricNetwork {
|
|
|
1378
1382
|
*/
|
|
1379
1383
|
export class WasmGpuOptimizer {
|
|
1380
1384
|
free(): void;
|
|
1381
|
-
[Symbol.dispose](): void;
|
|
1382
1385
|
/**
|
|
1383
1386
|
* Initialize GPU context for optimization
|
|
1384
1387
|
*/
|
|
@@ -1405,7 +1408,6 @@ export class WasmGpuOptimizer {
|
|
|
1405
1408
|
*/
|
|
1406
1409
|
export class WasmGrassmannian {
|
|
1407
1410
|
free(): void;
|
|
1408
|
-
[Symbol.dispose](): void;
|
|
1409
1411
|
/**
|
|
1410
1412
|
* Get the dimension of this Grassmannian
|
|
1411
1413
|
*/
|
|
@@ -1419,12 +1421,73 @@ export class WasmGrassmannian {
|
|
|
1419
1421
|
*/
|
|
1420
1422
|
constructor(k: number, n: number);
|
|
1421
1423
|
}
|
|
1424
|
+
/**
|
|
1425
|
+
* WASM wrapper for HolographicMemory
|
|
1426
|
+
*/
|
|
1427
|
+
export class WasmHolographicMemory {
|
|
1428
|
+
free(): void;
|
|
1429
|
+
/**
|
|
1430
|
+
* Get the number of stored items
|
|
1431
|
+
*/
|
|
1432
|
+
itemCount(): number;
|
|
1433
|
+
/**
|
|
1434
|
+
* Batch store multiple key-value pairs
|
|
1435
|
+
*/
|
|
1436
|
+
storeBatch(keys: Float64Array, values: Float64Array): void;
|
|
1437
|
+
/**
|
|
1438
|
+
* Get the estimated SNR (signal-to-noise ratio)
|
|
1439
|
+
*/
|
|
1440
|
+
estimatedSnr(): number;
|
|
1441
|
+
/**
|
|
1442
|
+
* Check if memory is near capacity
|
|
1443
|
+
*/
|
|
1444
|
+
isNearCapacity(): boolean;
|
|
1445
|
+
/**
|
|
1446
|
+
* Check if memory probably contains a key
|
|
1447
|
+
*/
|
|
1448
|
+
probablyContains(key: WasmTropicalDualClifford): boolean;
|
|
1449
|
+
/**
|
|
1450
|
+
* Create with key tracking enabled (for attribution)
|
|
1451
|
+
*/
|
|
1452
|
+
static withKeyTracking(): WasmHolographicMemory;
|
|
1453
|
+
/**
|
|
1454
|
+
* Get the theoretical capacity
|
|
1455
|
+
*/
|
|
1456
|
+
theoreticalCapacity(): number;
|
|
1457
|
+
/**
|
|
1458
|
+
* Retrieve with custom temperature
|
|
1459
|
+
*/
|
|
1460
|
+
retrieveAtTemperature(key: WasmTropicalDualClifford, beta: number): WasmRetrievalResult;
|
|
1461
|
+
/**
|
|
1462
|
+
* Create with custom bundle temperature
|
|
1463
|
+
*/
|
|
1464
|
+
static withBundleTemperature(beta: number): WasmHolographicMemory;
|
|
1465
|
+
/**
|
|
1466
|
+
* Create a new holographic memory with default settings
|
|
1467
|
+
*/
|
|
1468
|
+
constructor();
|
|
1469
|
+
/**
|
|
1470
|
+
* Clear all stored items
|
|
1471
|
+
*/
|
|
1472
|
+
clear(): void;
|
|
1473
|
+
/**
|
|
1474
|
+
* Merge another memory into this one
|
|
1475
|
+
*/
|
|
1476
|
+
merge(other: WasmHolographicMemory): void;
|
|
1477
|
+
/**
|
|
1478
|
+
* Store a key-value pair in memory
|
|
1479
|
+
*/
|
|
1480
|
+
store(key: WasmTropicalDualClifford, value: WasmTropicalDualClifford): void;
|
|
1481
|
+
/**
|
|
1482
|
+
* Retrieve a value by key
|
|
1483
|
+
*/
|
|
1484
|
+
retrieve(key: WasmTropicalDualClifford): WasmRetrievalResult;
|
|
1485
|
+
}
|
|
1422
1486
|
/**
|
|
1423
1487
|
* WASM wrapper for Inverse CA Designer (simplified)
|
|
1424
1488
|
*/
|
|
1425
1489
|
export class WasmInverseCADesigner {
|
|
1426
1490
|
free(): void;
|
|
1427
|
-
[Symbol.dispose](): void;
|
|
1428
1491
|
/**
|
|
1429
1492
|
* Set the target pattern that we want to achieve
|
|
1430
1493
|
*/
|
|
@@ -1450,7 +1513,6 @@ export class WasmInverseCADesigner {
|
|
|
1450
1513
|
*/
|
|
1451
1514
|
export class WasmLebesgueMeasure {
|
|
1452
1515
|
free(): void;
|
|
1453
|
-
[Symbol.dispose](): void;
|
|
1454
1516
|
/**
|
|
1455
1517
|
* Compute the measure of a box (hyper-rectangle) with given side lengths
|
|
1456
1518
|
*/
|
|
@@ -1480,7 +1542,6 @@ export class WasmLebesgueMeasure {
|
|
|
1480
1542
|
export class WasmModuliSpace {
|
|
1481
1543
|
private constructor();
|
|
1482
1544
|
free(): void;
|
|
1483
|
-
[Symbol.dispose](): void;
|
|
1484
1545
|
/**
|
|
1485
1546
|
* Create moduli space of stable curves
|
|
1486
1547
|
*/
|
|
@@ -1511,7 +1572,6 @@ export class WasmModuliSpace {
|
|
|
1511
1572
|
*/
|
|
1512
1573
|
export class WasmMultiDualNumber {
|
|
1513
1574
|
free(): void;
|
|
1514
|
-
[Symbol.dispose](): void;
|
|
1515
1575
|
/**
|
|
1516
1576
|
* Get a specific partial derivative
|
|
1517
1577
|
*/
|
|
@@ -1558,7 +1618,6 @@ export class WasmMultiDualNumber {
|
|
|
1558
1618
|
*/
|
|
1559
1619
|
export class WasmMultiObjectiveOptimizer {
|
|
1560
1620
|
free(): void;
|
|
1561
|
-
[Symbol.dispose](): void;
|
|
1562
1621
|
/**
|
|
1563
1622
|
* Optimize a simple bi-objective problem
|
|
1564
1623
|
* f1 = sum(x_i^2), f2 = sum((x_i - 1)^2)
|
|
@@ -1575,7 +1634,6 @@ export class WasmMultiObjectiveOptimizer {
|
|
|
1575
1634
|
export class WasmMultiObjectiveResult {
|
|
1576
1635
|
private constructor();
|
|
1577
1636
|
free(): void;
|
|
1578
|
-
[Symbol.dispose](): void;
|
|
1579
1637
|
/**
|
|
1580
1638
|
* Get number of generations
|
|
1581
1639
|
*/
|
|
@@ -1594,7 +1652,6 @@ export class WasmMultiObjectiveResult {
|
|
|
1594
1652
|
*/
|
|
1595
1653
|
export class WasmMultivector {
|
|
1596
1654
|
free(): void;
|
|
1597
|
-
[Symbol.dispose](): void;
|
|
1598
1655
|
/**
|
|
1599
1656
|
* Create a basis vector (0-indexed)
|
|
1600
1657
|
*/
|
|
@@ -1685,7 +1742,6 @@ export class WasmMultivector {
|
|
|
1685
1742
|
*/
|
|
1686
1743
|
export class WasmNodeMetadata {
|
|
1687
1744
|
free(): void;
|
|
1688
|
-
[Symbol.dispose](): void;
|
|
1689
1745
|
/**
|
|
1690
1746
|
* Create metadata with label
|
|
1691
1747
|
*/
|
|
@@ -1717,7 +1773,6 @@ export class WasmNodeMetadata {
|
|
|
1717
1773
|
export class WasmOptimizationResult {
|
|
1718
1774
|
private constructor();
|
|
1719
1775
|
free(): void;
|
|
1720
|
-
[Symbol.dispose](): void;
|
|
1721
1776
|
/**
|
|
1722
1777
|
* Get number of iterations
|
|
1723
1778
|
*/
|
|
@@ -1741,7 +1796,6 @@ export class WasmOptimizationResult {
|
|
|
1741
1796
|
export class WasmOptimizationUtils {
|
|
1742
1797
|
private constructor();
|
|
1743
1798
|
free(): void;
|
|
1744
|
-
[Symbol.dispose](): void;
|
|
1745
1799
|
/**
|
|
1746
1800
|
* Compute numerical gradient
|
|
1747
1801
|
*/
|
|
@@ -1757,7 +1811,6 @@ export class WasmOptimizationUtils {
|
|
|
1757
1811
|
export class WasmParametricDensity {
|
|
1758
1812
|
private constructor();
|
|
1759
1813
|
free(): void;
|
|
1760
|
-
[Symbol.dispose](): void;
|
|
1761
1814
|
/**
|
|
1762
1815
|
* Create an Exponential density Exp(λ)
|
|
1763
1816
|
*/
|
|
@@ -1802,7 +1855,6 @@ export class WasmParametricDensity {
|
|
|
1802
1855
|
*/
|
|
1803
1856
|
export class WasmProbabilityMeasure {
|
|
1804
1857
|
free(): void;
|
|
1805
|
-
[Symbol.dispose](): void;
|
|
1806
1858
|
/**
|
|
1807
1859
|
* Get a description of this probability measure
|
|
1808
1860
|
*/
|
|
@@ -1825,7 +1877,6 @@ export class WasmProbabilityMeasure {
|
|
|
1825
1877
|
*/
|
|
1826
1878
|
export class WasmProjectiveSpace {
|
|
1827
1879
|
free(): void;
|
|
1828
|
-
[Symbol.dispose](): void;
|
|
1829
1880
|
/**
|
|
1830
1881
|
* Get the dimension of this projective space
|
|
1831
1882
|
*/
|
|
@@ -1849,7 +1900,6 @@ export class WasmProjectiveSpace {
|
|
|
1849
1900
|
export class WasmPropagationAnalysis {
|
|
1850
1901
|
private constructor();
|
|
1851
1902
|
free(): void;
|
|
1852
|
-
[Symbol.dispose](): void;
|
|
1853
1903
|
/**
|
|
1854
1904
|
* Get convergence time
|
|
1855
1905
|
*/
|
|
@@ -1869,7 +1919,6 @@ export class WasmPropagationAnalysis {
|
|
|
1869
1919
|
export class WasmRelativisticConstants {
|
|
1870
1920
|
private constructor();
|
|
1871
1921
|
free(): void;
|
|
1872
|
-
[Symbol.dispose](): void;
|
|
1873
1922
|
/**
|
|
1874
1923
|
* Earth mass (kg)
|
|
1875
1924
|
*/
|
|
@@ -1892,7 +1941,6 @@ export class WasmRelativisticConstants {
|
|
|
1892
1941
|
*/
|
|
1893
1942
|
export class WasmRelativisticParticle {
|
|
1894
1943
|
free(): void;
|
|
1895
|
-
[Symbol.dispose](): void;
|
|
1896
1944
|
/**
|
|
1897
1945
|
* Get 3D position components
|
|
1898
1946
|
*/
|
|
@@ -1938,13 +1986,53 @@ export class WasmRelativisticParticle {
|
|
|
1938
1986
|
*/
|
|
1939
1987
|
to_string(): string;
|
|
1940
1988
|
}
|
|
1989
|
+
/**
|
|
1990
|
+
* WASM wrapper for Resonator (iterative cleanup)
|
|
1991
|
+
*/
|
|
1992
|
+
export class WasmResonator {
|
|
1993
|
+
free(): void;
|
|
1994
|
+
/**
|
|
1995
|
+
* Create with custom configuration
|
|
1996
|
+
*/
|
|
1997
|
+
static withConfig(codebook_flat: Float64Array, max_iterations: number, convergence_threshold: number): WasmResonator;
|
|
1998
|
+
/**
|
|
1999
|
+
* Get the codebook size
|
|
2000
|
+
*/
|
|
2001
|
+
codebookSize(): number;
|
|
2002
|
+
/**
|
|
2003
|
+
* Create a resonator from a codebook of TDC vectors
|
|
2004
|
+
*/
|
|
2005
|
+
constructor(codebook_flat: Float64Array);
|
|
2006
|
+
/**
|
|
2007
|
+
* Clean up a noisy input to find the closest codebook item
|
|
2008
|
+
*/
|
|
2009
|
+
cleanup(input: WasmTropicalDualClifford): WasmCleanupResult;
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* WASM wrapper for retrieval results
|
|
2013
|
+
*/
|
|
2014
|
+
export class WasmRetrievalResult {
|
|
2015
|
+
private constructor();
|
|
2016
|
+
free(): void;
|
|
2017
|
+
/**
|
|
2018
|
+
* Get the retrieval confidence (0 to 1)
|
|
2019
|
+
*/
|
|
2020
|
+
getConfidence(): number;
|
|
2021
|
+
/**
|
|
2022
|
+
* Get attribution as arrays of [index, weight] pairs
|
|
2023
|
+
*/
|
|
2024
|
+
getAttribution(): any;
|
|
2025
|
+
/**
|
|
2026
|
+
* Get the retrieved value
|
|
2027
|
+
*/
|
|
2028
|
+
getValue(): WasmTropicalDualClifford;
|
|
2029
|
+
}
|
|
1941
2030
|
/**
|
|
1942
2031
|
* Rotor operations for WASM
|
|
1943
2032
|
*/
|
|
1944
2033
|
export class WasmRotor {
|
|
1945
2034
|
private constructor();
|
|
1946
2035
|
free(): void;
|
|
1947
|
-
[Symbol.dispose](): void;
|
|
1948
2036
|
/**
|
|
1949
2037
|
* Create a rotor from a bivector and angle
|
|
1950
2038
|
*/
|
|
@@ -1968,7 +2056,6 @@ export class WasmRotor {
|
|
|
1968
2056
|
export class WasmSchwarzschildMetric {
|
|
1969
2057
|
private constructor();
|
|
1970
2058
|
free(): void;
|
|
1971
|
-
[Symbol.dispose](): void;
|
|
1972
2059
|
/**
|
|
1973
2060
|
* Check for singularity at given position
|
|
1974
2061
|
*/
|
|
@@ -2003,7 +2090,6 @@ export class WasmSchwarzschildMetric {
|
|
|
2003
2090
|
*/
|
|
2004
2091
|
export class WasmSelfAssembler {
|
|
2005
2092
|
free(): void;
|
|
2006
|
-
[Symbol.dispose](): void;
|
|
2007
2093
|
/**
|
|
2008
2094
|
* Add a component to the system
|
|
2009
2095
|
*/
|
|
@@ -2027,7 +2113,6 @@ export class WasmSelfAssembler {
|
|
|
2027
2113
|
export class WasmSensitivityMap {
|
|
2028
2114
|
private constructor();
|
|
2029
2115
|
free(): void;
|
|
2030
|
-
[Symbol.dispose](): void;
|
|
2031
2116
|
/**
|
|
2032
2117
|
* Get components with highest sensitivity (for optimization)
|
|
2033
2118
|
*/
|
|
@@ -2046,7 +2131,6 @@ export class WasmSensitivityMap {
|
|
|
2046
2131
|
*/
|
|
2047
2132
|
export class WasmSimpleOptimizer {
|
|
2048
2133
|
free(): void;
|
|
2049
|
-
[Symbol.dispose](): void;
|
|
2050
2134
|
/**
|
|
2051
2135
|
* Optimize a simple quadratic function: minimize sum(c_i * x_i^2)
|
|
2052
2136
|
*/
|
|
@@ -2061,7 +2145,6 @@ export class WasmSimpleOptimizer {
|
|
|
2061
2145
|
*/
|
|
2062
2146
|
export class WasmSpacetimeVector {
|
|
2063
2147
|
free(): void;
|
|
2064
|
-
[Symbol.dispose](): void;
|
|
2065
2148
|
/**
|
|
2066
2149
|
* Check if vector is timelike (massive particle)
|
|
2067
2150
|
*/
|
|
@@ -2121,7 +2204,6 @@ export class WasmSpacetimeVector {
|
|
|
2121
2204
|
export class WasmTrajectoryPoint {
|
|
2122
2205
|
private constructor();
|
|
2123
2206
|
free(): void;
|
|
2124
|
-
[Symbol.dispose](): void;
|
|
2125
2207
|
/**
|
|
2126
2208
|
* Time coordinate
|
|
2127
2209
|
*/
|
|
@@ -2136,7 +2218,6 @@ export class WasmTrajectoryPoint {
|
|
|
2136
2218
|
*/
|
|
2137
2219
|
export class WasmTropicalCurve {
|
|
2138
2220
|
free(): void;
|
|
2139
|
-
[Symbol.dispose](): void;
|
|
2140
2221
|
/**
|
|
2141
2222
|
* Get the degree of this tropical curve
|
|
2142
2223
|
*/
|
|
@@ -2159,7 +2240,61 @@ export class WasmTropicalCurve {
|
|
|
2159
2240
|
*/
|
|
2160
2241
|
export class WasmTropicalDualClifford {
|
|
2161
2242
|
free(): void;
|
|
2162
|
-
|
|
2243
|
+
/**
|
|
2244
|
+
* Compute similarity between two TDC objects
|
|
2245
|
+
*
|
|
2246
|
+
* Uses the proper Clifford inner product with reverse: <A B̃>₀ / (|A| |B|)
|
|
2247
|
+
* Returns a value in [-1, 1].
|
|
2248
|
+
*/
|
|
2249
|
+
similarity(other: WasmTropicalDualClifford): number;
|
|
2250
|
+
/**
|
|
2251
|
+
* Create a random unit vector TDC (grade 1 only)
|
|
2252
|
+
*
|
|
2253
|
+
* Unit vectors are guaranteed invertible and useful for
|
|
2254
|
+
* proper VSA (Vector Symbolic Architecture) operations.
|
|
2255
|
+
*/
|
|
2256
|
+
static randomVector(): WasmTropicalDualClifford;
|
|
2257
|
+
/**
|
|
2258
|
+
* Compute binding inverse
|
|
2259
|
+
*
|
|
2260
|
+
* If successful, `x.bind(x.bindingInverse()) ≈ identity`
|
|
2261
|
+
*/
|
|
2262
|
+
bindingInverse(): WasmTropicalDualClifford;
|
|
2263
|
+
/**
|
|
2264
|
+
* Get the binding identity element
|
|
2265
|
+
*
|
|
2266
|
+
* `x.bind(identity) = x` for any x
|
|
2267
|
+
*/
|
|
2268
|
+
static bindingIdentity(): WasmTropicalDualClifford;
|
|
2269
|
+
/**
|
|
2270
|
+
* Normalize the TDC to unit norm
|
|
2271
|
+
*/
|
|
2272
|
+
normalizeToUnit(): WasmTropicalDualClifford;
|
|
2273
|
+
/**
|
|
2274
|
+
* Compute Clifford similarity (proper inner product with reverse)
|
|
2275
|
+
*/
|
|
2276
|
+
cliffordSimilarity(other: WasmTropicalDualClifford): number;
|
|
2277
|
+
/**
|
|
2278
|
+
* Bind two TDC objects using geometric product (creates associations)
|
|
2279
|
+
*
|
|
2280
|
+
* The result is dissimilar to both inputs - useful for creating
|
|
2281
|
+
* key-value associations in holographic memory.
|
|
2282
|
+
*/
|
|
2283
|
+
bind(other: WasmTropicalDualClifford): WasmTropicalDualClifford;
|
|
2284
|
+
/**
|
|
2285
|
+
* Bundle two TDC objects (superposition/aggregation)
|
|
2286
|
+
*
|
|
2287
|
+
* The result is similar to both inputs - useful for storing
|
|
2288
|
+
* multiple associations in the same memory trace.
|
|
2289
|
+
* `beta` controls soft (1.0) vs hard (∞) bundling.
|
|
2290
|
+
*/
|
|
2291
|
+
bundle(other: WasmTropicalDualClifford, beta: number): WasmTropicalDualClifford;
|
|
2292
|
+
/**
|
|
2293
|
+
* Unbind: retrieve associated value
|
|
2294
|
+
*
|
|
2295
|
+
* If `bound = key.bind(value)`, then `key.unbind(bound) ≈ value`
|
|
2296
|
+
*/
|
|
2297
|
+
unbind(other: WasmTropicalDualClifford): WasmTropicalDualClifford;
|
|
2163
2298
|
/**
|
|
2164
2299
|
* Create from logits (array of log-probabilities)
|
|
2165
2300
|
*/
|
|
@@ -2182,6 +2317,8 @@ export class WasmTropicalDualClifford {
|
|
|
2182
2317
|
static randomWithScale(scale: number): WasmTropicalDualClifford;
|
|
2183
2318
|
/**
|
|
2184
2319
|
* Create from probability distribution
|
|
2320
|
+
*
|
|
2321
|
+
* Note: Converts probabilities to log space for tropical representation
|
|
2185
2322
|
*/
|
|
2186
2323
|
static fromProbabilities(probs: Float64Array): WasmTropicalDualClifford;
|
|
2187
2324
|
/**
|
|
@@ -2194,6 +2331,9 @@ export class WasmTropicalDualClifford {
|
|
|
2194
2331
|
getDualDerivatives(): Float64Array;
|
|
2195
2332
|
/**
|
|
2196
2333
|
* Perform sensitivity analysis for gradient-based optimization
|
|
2334
|
+
*
|
|
2335
|
+
* Note: This feature is not yet available in v0.12.0
|
|
2336
|
+
* TODO: Re-enable when sensitivity_analysis is added to TropicalDualClifford
|
|
2197
2337
|
*/
|
|
2198
2338
|
sensitivityAnalysis(): WasmSensitivityMap;
|
|
2199
2339
|
/**
|
|
@@ -2241,43 +2381,11 @@ export class WasmTropicalDualClifford {
|
|
|
2241
2381
|
*/
|
|
2242
2382
|
transform(transformation: WasmTropicalDualClifford): WasmTropicalDualClifford;
|
|
2243
2383
|
}
|
|
2244
|
-
/**
|
|
2245
|
-
* WASM wrapper for LLM token distributions
|
|
2246
|
-
*/
|
|
2247
|
-
export class WasmTropicalDualDistribution {
|
|
2248
|
-
free(): void;
|
|
2249
|
-
[Symbol.dispose](): void;
|
|
2250
|
-
/**
|
|
2251
|
-
* Compute KL divergence with automatic gradients
|
|
2252
|
-
*/
|
|
2253
|
-
klDivergence(other: WasmTropicalDualDistribution): any;
|
|
2254
|
-
/**
|
|
2255
|
-
* Get vocabulary size
|
|
2256
|
-
*/
|
|
2257
|
-
getVocabSize(): number;
|
|
2258
|
-
/**
|
|
2259
|
-
* Get attention pattern as tropical polytope vertices
|
|
2260
|
-
*/
|
|
2261
|
-
attentionPolytope(): Float64Array;
|
|
2262
|
-
/**
|
|
2263
|
-
* Compute geometric alignment with reference distribution
|
|
2264
|
-
*/
|
|
2265
|
-
geometricAlignment(reference: WasmTropicalDualDistribution): number;
|
|
2266
|
-
/**
|
|
2267
|
-
* Generate most likely sequence using tropical algebra (Viterbi-like)
|
|
2268
|
-
*/
|
|
2269
|
-
mostLikelySequence(length: number): Uint32Array;
|
|
2270
|
-
/**
|
|
2271
|
-
* Create from logit vector (typical LLM output)
|
|
2272
|
-
*/
|
|
2273
|
-
constructor(logits: Float64Array);
|
|
2274
|
-
}
|
|
2275
2384
|
/**
|
|
2276
2385
|
* Tropical (max-plus) algebra operations for optimization
|
|
2277
2386
|
*/
|
|
2278
2387
|
export class WasmTropicalMeasure {
|
|
2279
2388
|
free(): void;
|
|
2280
|
-
[Symbol.dispose](): void;
|
|
2281
2389
|
/**
|
|
2282
2390
|
* Tropical integration (supremum over region)
|
|
2283
2391
|
*/
|
|
@@ -2304,7 +2412,6 @@ export class WasmTropicalMeasure {
|
|
|
2304
2412
|
*/
|
|
2305
2413
|
export class WasmTropicalNetwork {
|
|
2306
2414
|
free(): void;
|
|
2307
|
-
[Symbol.dispose](): void;
|
|
2308
2415
|
/**
|
|
2309
2416
|
* Create tropical network from weight matrix
|
|
2310
2417
|
*/
|
|
@@ -2335,9 +2442,10 @@ export class WasmTropicalNetwork {
|
|
|
2335
2442
|
*/
|
|
2336
2443
|
export class WasmTropicalNumber {
|
|
2337
2444
|
free(): void;
|
|
2338
|
-
[Symbol.dispose](): void;
|
|
2339
2445
|
/**
|
|
2340
2446
|
* Check if this is infinite
|
|
2447
|
+
*
|
|
2448
|
+
* Note: Manual implementation as is_infinity() not in v0.12.0 API
|
|
2341
2449
|
*/
|
|
2342
2450
|
isInfinity(): boolean;
|
|
2343
2451
|
/**
|
|
@@ -2354,6 +2462,8 @@ export class WasmTropicalNumber {
|
|
|
2354
2462
|
tropicalPow(n: number): WasmTropicalNumber;
|
|
2355
2463
|
/**
|
|
2356
2464
|
* Create from log probability
|
|
2465
|
+
*
|
|
2466
|
+
* Note: Manual implementation as from_log_prob() not in v0.12.0 API
|
|
2357
2467
|
*/
|
|
2358
2468
|
static fromLogProb(log_p: number): WasmTropicalNumber;
|
|
2359
2469
|
/**
|
|
@@ -2366,6 +2476,8 @@ export class WasmTropicalNumber {
|
|
|
2366
2476
|
mul(other: WasmTropicalNumber): WasmTropicalNumber;
|
|
2367
2477
|
/**
|
|
2368
2478
|
* Negation
|
|
2479
|
+
*
|
|
2480
|
+
* Note: Manual implementation as Neg trait not implemented in v0.12.0 API
|
|
2369
2481
|
*/
|
|
2370
2482
|
neg(): WasmTropicalNumber;
|
|
2371
2483
|
/**
|
|
@@ -2390,6 +2502,8 @@ export class WasmTropicalNumber {
|
|
|
2390
2502
|
isZero(): boolean;
|
|
2391
2503
|
/**
|
|
2392
2504
|
* Convert to probability (via exp)
|
|
2505
|
+
*
|
|
2506
|
+
* Note: Manual implementation as to_prob() not in v0.12.0 API
|
|
2393
2507
|
*/
|
|
2394
2508
|
toProb(): number;
|
|
2395
2509
|
/**
|
|
@@ -2402,7 +2516,6 @@ export class WasmTropicalNumber {
|
|
|
2402
2516
|
*/
|
|
2403
2517
|
export class WasmTropicalPolynomial {
|
|
2404
2518
|
free(): void;
|
|
2405
|
-
[Symbol.dispose](): void;
|
|
2406
2519
|
/**
|
|
2407
2520
|
* Find tropical roots of the polynomial
|
|
2408
2521
|
*/
|
|
@@ -2425,7 +2538,6 @@ export class WasmTropicalPolynomial {
|
|
|
2425
2538
|
*/
|
|
2426
2539
|
export class WasmTropicalViterbi {
|
|
2427
2540
|
free(): void;
|
|
2428
|
-
[Symbol.dispose](): void;
|
|
2429
2541
|
/**
|
|
2430
2542
|
* Compute forward probabilities for all states
|
|
2431
2543
|
*/
|
|
@@ -2457,6 +2569,7 @@ export interface InitOutput {
|
|
|
2457
2569
|
readonly __wbg_scalarfield_free: (a: number, b: number) => void;
|
|
2458
2570
|
readonly __wbg_set_wasmtrajectorypoint_time: (a: number, b: number) => void;
|
|
2459
2571
|
readonly __wbg_wasmchowclass_free: (a: number, b: number) => void;
|
|
2572
|
+
readonly __wbg_wasmcleanupresult_free: (a: number, b: number) => void;
|
|
2460
2573
|
readonly __wbg_wasmcommunity_free: (a: number, b: number) => void;
|
|
2461
2574
|
readonly __wbg_wasmduallyflatmanifold_free: (a: number, b: number) => void;
|
|
2462
2575
|
readonly __wbg_wasmevaluationresult_free: (a: number, b: number) => void;
|
|
@@ -2466,6 +2579,7 @@ export interface InitOutput {
|
|
|
2466
2579
|
readonly __wbg_wasmgeometricca_free: (a: number, b: number) => void;
|
|
2467
2580
|
readonly __wbg_wasmgeometricnetwork_free: (a: number, b: number) => void;
|
|
2468
2581
|
readonly __wbg_wasmgrassmannian_free: (a: number, b: number) => void;
|
|
2582
|
+
readonly __wbg_wasmholographicmemory_free: (a: number, b: number) => void;
|
|
2469
2583
|
readonly __wbg_wasminversecadesigner_free: (a: number, b: number) => void;
|
|
2470
2584
|
readonly __wbg_wasmlebesguemeasure_free: (a: number, b: number) => void;
|
|
2471
2585
|
readonly __wbg_wasmmodulispace_free: (a: number, b: number) => void;
|
|
@@ -2475,12 +2589,13 @@ export interface InitOutput {
|
|
|
2475
2589
|
readonly __wbg_wasmoptimizationresult_free: (a: number, b: number) => void;
|
|
2476
2590
|
readonly __wbg_wasmpropagationanalysis_free: (a: number, b: number) => void;
|
|
2477
2591
|
readonly __wbg_wasmrelativisticparticle_free: (a: number, b: number) => void;
|
|
2592
|
+
readonly __wbg_wasmresonator_free: (a: number, b: number) => void;
|
|
2593
|
+
readonly __wbg_wasmretrievalresult_free: (a: number, b: number) => void;
|
|
2478
2594
|
readonly __wbg_wasmschwarzschildmetric_free: (a: number, b: number) => void;
|
|
2479
2595
|
readonly __wbg_wasmselfassembler_free: (a: number, b: number) => void;
|
|
2480
2596
|
readonly __wbg_wasmsensitivitymap_free: (a: number, b: number) => void;
|
|
2481
2597
|
readonly __wbg_wasmtrajectorypoint_free: (a: number, b: number) => void;
|
|
2482
2598
|
readonly __wbg_wasmtropicaldualclifford_free: (a: number, b: number) => void;
|
|
2483
|
-
readonly __wbg_wasmtropicaldualdistribution_free: (a: number, b: number) => void;
|
|
2484
2599
|
readonly __wbg_wasmtropicalnetwork_free: (a: number, b: number) => void;
|
|
2485
2600
|
readonly __wbg_wasmtropicalpolynomial_free: (a: number, b: number) => void;
|
|
2486
2601
|
readonly __wbg_wasmtropicalviterbi_free: (a: number, b: number) => void;
|
|
@@ -2526,11 +2641,11 @@ export interface InitOutput {
|
|
|
2526
2641
|
readonly infogeomutils_mutualInformation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
2527
2642
|
readonly infogeomutils_normalize: (a: number, b: number) => [number, number, number, number];
|
|
2528
2643
|
readonly infogeomutils_randomSimplex: (a: number) => [number, number];
|
|
2529
|
-
readonly infogeomutils_softmax: (a: number, b: number) => [number, number];
|
|
2530
2644
|
readonly init: () => void;
|
|
2531
2645
|
readonly initAutomata: () => void;
|
|
2532
2646
|
readonly initEnumerative: () => void;
|
|
2533
2647
|
readonly initFusion: () => void;
|
|
2648
|
+
readonly initHolographic: () => void;
|
|
2534
2649
|
readonly integrate: (a: any, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
2535
2650
|
readonly integration_integrate1D: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
2536
2651
|
readonly integration_integrate2D: (a: any, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
@@ -2590,6 +2705,10 @@ export interface InitOutput {
|
|
|
2590
2705
|
readonly wasmchowclass_new: (a: number, b: number) => number;
|
|
2591
2706
|
readonly wasmchowclass_point: () => number;
|
|
2592
2707
|
readonly wasmchowclass_power: (a: number, b: number) => number;
|
|
2708
|
+
readonly wasmcleanupresult_didConverge: (a: number) => number;
|
|
2709
|
+
readonly wasmcleanupresult_getBestMatchIndex: (a: number) => number;
|
|
2710
|
+
readonly wasmcleanupresult_getCleaned: (a: number) => number;
|
|
2711
|
+
readonly wasmcleanupresult_getIterations: (a: number) => number;
|
|
2593
2712
|
readonly wasmcommunity_centroid_coefficients: (a: number) => [number, number];
|
|
2594
2713
|
readonly wasmcommunity_nodes: (a: number) => [number, number];
|
|
2595
2714
|
readonly wasmcountingmeasure_isMeasurable: (a: number) => number;
|
|
@@ -2689,6 +2808,20 @@ export interface InitOutput {
|
|
|
2689
2808
|
readonly wasmgrassmannian_getDimension: (a: number) => number;
|
|
2690
2809
|
readonly wasmgrassmannian_getParameters: (a: number) => [number, number];
|
|
2691
2810
|
readonly wasmgrassmannian_new: (a: number, b: number) => [number, number, number];
|
|
2811
|
+
readonly wasmholographicmemory_clear: (a: number) => void;
|
|
2812
|
+
readonly wasmholographicmemory_estimatedSnr: (a: number) => number;
|
|
2813
|
+
readonly wasmholographicmemory_isNearCapacity: (a: number) => number;
|
|
2814
|
+
readonly wasmholographicmemory_itemCount: (a: number) => number;
|
|
2815
|
+
readonly wasmholographicmemory_merge: (a: number, b: number) => void;
|
|
2816
|
+
readonly wasmholographicmemory_new: () => number;
|
|
2817
|
+
readonly wasmholographicmemory_probablyContains: (a: number, b: number) => number;
|
|
2818
|
+
readonly wasmholographicmemory_retrieve: (a: number, b: number) => number;
|
|
2819
|
+
readonly wasmholographicmemory_retrieveAtTemperature: (a: number, b: number, c: number) => number;
|
|
2820
|
+
readonly wasmholographicmemory_store: (a: number, b: number, c: number) => void;
|
|
2821
|
+
readonly wasmholographicmemory_storeBatch: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
2822
|
+
readonly wasmholographicmemory_theoreticalCapacity: (a: number) => number;
|
|
2823
|
+
readonly wasmholographicmemory_withBundleTemperature: (a: number) => number;
|
|
2824
|
+
readonly wasmholographicmemory_withKeyTracking: () => number;
|
|
2692
2825
|
readonly wasminversecadesigner_evaluateFitness: (a: number, b: number, c: number) => [number, number, number];
|
|
2693
2826
|
readonly wasminversecadesigner_findSeed: (a: number, b: number, c: number) => [number, number, number, number];
|
|
2694
2827
|
readonly wasminversecadesigner_new: (a: number, b: number) => number;
|
|
@@ -2777,6 +2910,13 @@ export interface InitOutput {
|
|
|
2777
2910
|
readonly wasmrelativisticparticle_to_string: (a: number) => [number, number];
|
|
2778
2911
|
readonly wasmrelativisticparticle_total_energy: (a: number) => number;
|
|
2779
2912
|
readonly wasmrelativisticparticle_with_energy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
2913
|
+
readonly wasmresonator_cleanup: (a: number, b: number) => number;
|
|
2914
|
+
readonly wasmresonator_codebookSize: (a: number) => number;
|
|
2915
|
+
readonly wasmresonator_new: (a: number, b: number) => [number, number, number];
|
|
2916
|
+
readonly wasmresonator_withConfig: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
2917
|
+
readonly wasmretrievalresult_getAttribution: (a: number) => [number, number, number];
|
|
2918
|
+
readonly wasmretrievalresult_getConfidence: (a: number) => number;
|
|
2919
|
+
readonly wasmretrievalresult_getValue: (a: number) => number;
|
|
2780
2920
|
readonly wasmrotor_apply: (a: number, b: number) => number;
|
|
2781
2921
|
readonly wasmrotor_compose: (a: number, b: number) => number;
|
|
2782
2922
|
readonly wasmrotor_fromBivector: (a: number, b: number) => number;
|
|
@@ -2807,6 +2947,11 @@ export interface InitOutput {
|
|
|
2807
2947
|
readonly wasmtropicalcurve_getDegree: (a: number) => number;
|
|
2808
2948
|
readonly wasmtropicalcurve_new: (a: number, b: number) => number;
|
|
2809
2949
|
readonly wasmtropicaldualclifford_add: (a: number, b: number) => number;
|
|
2950
|
+
readonly wasmtropicaldualclifford_bind: (a: number, b: number) => number;
|
|
2951
|
+
readonly wasmtropicaldualclifford_bindingIdentity: () => number;
|
|
2952
|
+
readonly wasmtropicaldualclifford_bindingInverse: (a: number) => [number, number, number];
|
|
2953
|
+
readonly wasmtropicaldualclifford_bundle: (a: number, b: number, c: number) => number;
|
|
2954
|
+
readonly wasmtropicaldualclifford_cliffordSimilarity: (a: number, b: number) => number;
|
|
2810
2955
|
readonly wasmtropicaldualclifford_distance: (a: number, b: number) => number;
|
|
2811
2956
|
readonly wasmtropicaldualclifford_evaluate: (a: number, b: number) => number;
|
|
2812
2957
|
readonly wasmtropicaldualclifford_extractGeometricFeatures: (a: number) => [number, number];
|
|
@@ -2820,18 +2965,16 @@ export interface InitOutput {
|
|
|
2820
2965
|
readonly wasmtropicaldualclifford_interpolate: (a: number, b: number, c: number) => number;
|
|
2821
2966
|
readonly wasmtropicaldualclifford_isZero: (a: number) => number;
|
|
2822
2967
|
readonly wasmtropicaldualclifford_new: () => number;
|
|
2968
|
+
readonly wasmtropicaldualclifford_normalizeToUnit: (a: number) => number;
|
|
2823
2969
|
readonly wasmtropicaldualclifford_random: () => number;
|
|
2970
|
+
readonly wasmtropicaldualclifford_randomVector: () => number;
|
|
2824
2971
|
readonly wasmtropicaldualclifford_randomWithScale: (a: number) => number;
|
|
2825
2972
|
readonly wasmtropicaldualclifford_scale: (a: number, b: number) => number;
|
|
2826
2973
|
readonly wasmtropicaldualclifford_sensitivityAnalysis: (a: number) => number;
|
|
2974
|
+
readonly wasmtropicaldualclifford_similarity: (a: number, b: number) => number;
|
|
2827
2975
|
readonly wasmtropicaldualclifford_transform: (a: number, b: number) => number;
|
|
2828
2976
|
readonly wasmtropicaldualclifford_tropicalAttention: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
2829
|
-
readonly
|
|
2830
|
-
readonly wasmtropicaldualdistribution_geometricAlignment: (a: number, b: number) => number;
|
|
2831
|
-
readonly wasmtropicaldualdistribution_getVocabSize: (a: number) => number;
|
|
2832
|
-
readonly wasmtropicaldualdistribution_klDivergence: (a: number, b: number) => [number, number, number];
|
|
2833
|
-
readonly wasmtropicaldualdistribution_mostLikelySequence: (a: number, b: number) => [number, number];
|
|
2834
|
-
readonly wasmtropicaldualdistribution_new: (a: number, b: number) => number;
|
|
2977
|
+
readonly wasmtropicaldualclifford_unbind: (a: number, b: number) => number;
|
|
2835
2978
|
readonly wasmtropicalmeasure_infimum: (a: number, b: any, c: number, d: number) => [number, number, number, number];
|
|
2836
2979
|
readonly wasmtropicalmeasure_supremum: (a: number, b: any, c: number, d: number) => [number, number, number, number];
|
|
2837
2980
|
readonly wasmtropicalmeasure_tropicalIntegrate: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
@@ -2844,13 +2987,11 @@ export interface InitOutput {
|
|
|
2844
2987
|
readonly wasmtropicalnumber_fromLogProb: (a: number) => number;
|
|
2845
2988
|
readonly wasmtropicalnumber_isInfinity: (a: number) => number;
|
|
2846
2989
|
readonly wasmtropicalnumber_isOne: (a: number) => number;
|
|
2847
|
-
readonly wasmtropicalnumber_isZero: (a: number) => number;
|
|
2848
2990
|
readonly wasmtropicalnumber_mul: (a: number, b: number) => number;
|
|
2849
2991
|
readonly wasmtropicalnumber_neg: (a: number) => number;
|
|
2850
2992
|
readonly wasmtropicalnumber_one: () => number;
|
|
2851
2993
|
readonly wasmtropicalnumber_toProb: (a: number) => number;
|
|
2852
2994
|
readonly wasmtropicalnumber_tropicalPow: (a: number, b: number) => number;
|
|
2853
|
-
readonly wasmtropicalnumber_zero: () => number;
|
|
2854
2995
|
readonly wasmtropicalpolynomial_evaluate: (a: number, b: number) => number;
|
|
2855
2996
|
readonly wasmtropicalpolynomial_new: (a: number, b: number) => number;
|
|
2856
2997
|
readonly wasmtropicalpolynomial_tropical_roots: (a: number) => any;
|
|
@@ -2862,13 +3003,16 @@ export interface InitOutput {
|
|
|
2862
3003
|
readonly vectorfield_fromFunction3D: (a: any) => number;
|
|
2863
3004
|
readonly wasmmultivector_norm: (a: number) => number;
|
|
2864
3005
|
readonly wasmspacetimevector_t: (a: number) => number;
|
|
3006
|
+
readonly wasmtropicalnumber_zero: () => number;
|
|
2865
3007
|
readonly wasmtropicalnumber_tropicalMul: (a: number, b: number) => number;
|
|
2866
3008
|
readonly wasmtrajectorypoint_position: (a: number) => number;
|
|
2867
3009
|
readonly wasmtropicalpolynomial_coefficients_count: (a: number) => number;
|
|
3010
|
+
readonly infogeomutils_softmax: (a: number, b: number) => [number, number];
|
|
2868
3011
|
readonly __wbg_wasmparametricdensity_free: (a: number, b: number) => void;
|
|
2869
3012
|
readonly __wbg_wasmprobabilitymeasure_free: (a: number, b: number) => void;
|
|
2870
3013
|
readonly __wbg_vectorfield_free: (a: number, b: number) => void;
|
|
2871
3014
|
readonly vectorfield_new: (a: any, b: number) => number;
|
|
3015
|
+
readonly wasmtropicalnumber_isZero: (a: number) => number;
|
|
2872
3016
|
readonly wasmtropicalnumber_tropicalAdd: (a: number, b: number) => number;
|
|
2873
3017
|
readonly wasmcommunity_cohesion_score: (a: number) => number;
|
|
2874
3018
|
readonly wasmdualnumber_getReal: (a: number) => number;
|
|
@@ -2925,16 +3069,16 @@ export interface InitOutput {
|
|
|
2925
3069
|
readonly wasmmultiobjectiveoptimizer_new: () => number;
|
|
2926
3070
|
readonly wasmsimpleoptimizer_new: () => number;
|
|
2927
3071
|
readonly wasmtropicalmeasure_new: () => number;
|
|
2928
|
-
readonly wasm_bindgen_e07ba2a7d21574bf___convert__closures_____invoke___wasm_bindgen_e07ba2a7d21574bf___JsValue_____: (a: number, b: number, c: any) => void;
|
|
2929
|
-
readonly wasm_bindgen_e07ba2a7d21574bf___closure__destroy___dyn_core_a2b7f04d45112077___ops__function__FnMut__wasm_bindgen_e07ba2a7d21574bf___JsValue____Output_______: (a: number, b: number) => void;
|
|
2930
|
-
readonly wasm_bindgen_e07ba2a7d21574bf___convert__closures_____invoke___wasm_bindgen_e07ba2a7d21574bf___JsValue__wasm_bindgen_e07ba2a7d21574bf___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
2931
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
2932
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
2933
3072
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
2934
3073
|
readonly __externref_table_alloc: () => number;
|
|
2935
|
-
readonly
|
|
3074
|
+
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
2936
3075
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
3076
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
3077
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
3078
|
+
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
2937
3079
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
3080
|
+
readonly closure58_externref_shim: (a: number, b: number, c: any) => void;
|
|
3081
|
+
readonly closure49_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
2938
3082
|
readonly __wbindgen_start: () => void;
|
|
2939
3083
|
}
|
|
2940
3084
|
|