egraph 6.0.0-alpha.5 → 6.0.0-alpha.7
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/package.json +1 -1
- package/pkg/egraph_wasm.d.ts +1624 -139
- package/pkg/egraph_wasm.js +6752 -2235
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +1757 -102
- package/pkg/index.js +94 -2
package/pkg/egraph_wasm.d.ts
CHANGED
|
@@ -1,6 +1,268 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Batched-RHS solution and diagnostics returned by `AmgPcgSolver.solveBatch()`.
|
|
6
|
+
*/
|
|
7
|
+
export class AmgPcgBatchResult {
|
|
8
|
+
private constructor();
|
|
9
|
+
free(): void;
|
|
10
|
+
[Symbol.dispose](): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns per-column convergence flags (`Uint8Array` with `1` for converged, `0` otherwise).
|
|
13
|
+
*/
|
|
14
|
+
convergedPerCol(): Uint8Array;
|
|
15
|
+
/**
|
|
16
|
+
* Returns per-column iteration counts (`Uint32Array`).
|
|
17
|
+
*/
|
|
18
|
+
iterationsPerCol(): Uint32Array;
|
|
19
|
+
/**
|
|
20
|
+
* Returns per-column relative residual norms (`Float64Array`).
|
|
21
|
+
*/
|
|
22
|
+
relativeResiduals(): Float64Array;
|
|
23
|
+
/**
|
|
24
|
+
* Returns per-column true residual norms (`Float64Array`).
|
|
25
|
+
*/
|
|
26
|
+
residualNorms(): Float64Array;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a flat row-major `(numNodes, ncols)` `Float64Array` copy of all solution columns.
|
|
29
|
+
*/
|
|
30
|
+
x(): Float64Array;
|
|
31
|
+
/**
|
|
32
|
+
* `true` if every column converged within tolerance.
|
|
33
|
+
*/
|
|
34
|
+
readonly allConverged: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum PCG iterations executed across all columns.
|
|
37
|
+
*/
|
|
38
|
+
readonly maxIterationsUsed: number;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum relative residual norm across all columns.
|
|
41
|
+
*/
|
|
42
|
+
readonly maxRelativeResidual: number;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum true residual norm across all columns.
|
|
45
|
+
*/
|
|
46
|
+
readonly maxResidualNorm: number;
|
|
47
|
+
/**
|
|
48
|
+
* Minimum PCG iterations executed across all columns.
|
|
49
|
+
*/
|
|
50
|
+
readonly minIterationsUsed: number;
|
|
51
|
+
/**
|
|
52
|
+
* Number of RHS columns (`ncols`).
|
|
53
|
+
*/
|
|
54
|
+
readonly ncols: number;
|
|
55
|
+
/**
|
|
56
|
+
* Number of rows (`numNodes`).
|
|
57
|
+
*/
|
|
58
|
+
readonly numNodes: number;
|
|
59
|
+
/**
|
|
60
|
+
* Sum of PCG iterations across all columns.
|
|
61
|
+
*/
|
|
62
|
+
readonly totalIterations: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Single-RHS solution and diagnostics returned by `AmgPcgSolver.solve()`.
|
|
67
|
+
*/
|
|
68
|
+
export class AmgPcgSolveResult {
|
|
69
|
+
private constructor();
|
|
70
|
+
free(): void;
|
|
71
|
+
[Symbol.dispose](): void;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a copy of the solution vector (`Float64Array`).
|
|
74
|
+
*/
|
|
75
|
+
x(): Float64Array;
|
|
76
|
+
/**
|
|
77
|
+
* `true` if the stopping tolerance was met.
|
|
78
|
+
*/
|
|
79
|
+
readonly converged: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Number of PCG iterations executed.
|
|
82
|
+
*/
|
|
83
|
+
readonly iterations: number;
|
|
84
|
+
/**
|
|
85
|
+
* Relative residual norm `||b - A x||_2 / ||b||_2`.
|
|
86
|
+
*/
|
|
87
|
+
readonly relativeResidual: number;
|
|
88
|
+
/**
|
|
89
|
+
* True Euclidean residual norm `||b - A x||_2`.
|
|
90
|
+
*/
|
|
91
|
+
readonly residualNorm: number;
|
|
92
|
+
/**
|
|
93
|
+
* Final solver lifecycle status string.
|
|
94
|
+
*/
|
|
95
|
+
readonly status: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Hardened single-threaded Algebraic Multigrid Preconditioned Conjugate Gradient (`AmgPcgSolver`)
|
|
100
|
+
* supporting symmetric CSR matrices, regularized/shifted graph Laplacians, batched RHS, and
|
|
101
|
+
* cooperative `step()` execution.
|
|
102
|
+
*/
|
|
103
|
+
export class AmgPcgSolver {
|
|
104
|
+
private constructor();
|
|
105
|
+
free(): void;
|
|
106
|
+
[Symbol.dispose](): void;
|
|
107
|
+
/**
|
|
108
|
+
* Constructs an `AmgPcgSolver` directly from an existing `CsrMatrix`.
|
|
109
|
+
*/
|
|
110
|
+
static fromCsrMatrix(matrix: CsrMatrix, options: any): AmgPcgSolver;
|
|
111
|
+
/**
|
|
112
|
+
* Constructs an `AmgPcgSolver` directly from raw symmetric CSR buffers.
|
|
113
|
+
*/
|
|
114
|
+
static fromCsr(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], values: Float64Array | number[], options: any): AmgPcgSolver;
|
|
115
|
+
/**
|
|
116
|
+
* Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`"combinatorial"` or `"symmetric_normalized"`).
|
|
117
|
+
*/
|
|
118
|
+
static fromGraphLaplacian(graph: CsrGraph, kind: string | null | undefined, shift: number | null | undefined, options: any): AmgPcgSolver;
|
|
119
|
+
/**
|
|
120
|
+
* Constructs an `AmgPcgSolver` for `I + gamma * L_sym` with exact `D^{1/2} 1` near-nullspace.
|
|
121
|
+
*/
|
|
122
|
+
static fromGraphRegularizedLaplacian(graph: CsrGraph, gamma: number | null | undefined, options: any): AmgPcgSolver;
|
|
123
|
+
/**
|
|
124
|
+
* Executes up to `steps` cooperative PCG iterations and returns the updated status string.
|
|
125
|
+
*/
|
|
126
|
+
runSteps(steps: number): string;
|
|
127
|
+
/**
|
|
128
|
+
* Runs the active cooperative solve to completion and returns the final status string.
|
|
129
|
+
*/
|
|
130
|
+
run(): string;
|
|
131
|
+
/**
|
|
132
|
+
* Returns a copy of the current solution vector (`Float64Array`).
|
|
133
|
+
*/
|
|
134
|
+
solution(): Float64Array;
|
|
135
|
+
/**
|
|
136
|
+
* Solves `A X = B` for flat row-major `(numNodes, ncols)` RHS matrix `bFlat`.
|
|
137
|
+
*/
|
|
138
|
+
solveBatch(b_flat: Float64Array | number[], ncols: number, x0_flat?: Float64Array | number[] | null): AmgPcgBatchResult;
|
|
139
|
+
/**
|
|
140
|
+
* Solves `A x = b` synchronously with optional initial guess `x0`.
|
|
141
|
+
*/
|
|
142
|
+
solve(b: Float64Array | number[], x0?: Float64Array | number[] | null): AmgPcgSolveResult;
|
|
143
|
+
/**
|
|
144
|
+
* Initializes a cooperative PCG solve for `b` and optional initial guess `x0`.
|
|
145
|
+
*/
|
|
146
|
+
startSolve(b: Float64Array | number[], x0?: Float64Array | number[] | null): string;
|
|
147
|
+
/**
|
|
148
|
+
* Executes a single cooperative PCG iteration and returns the updated status string.
|
|
149
|
+
*/
|
|
150
|
+
step(): string;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the coarsest-level matrix dimension.
|
|
153
|
+
*/
|
|
154
|
+
readonly coarsestSize: number;
|
|
155
|
+
/**
|
|
156
|
+
* Returns `true` if the active solve converged within tolerance.
|
|
157
|
+
*/
|
|
158
|
+
readonly converged: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Returns `true` when the active solve has converged or completed.
|
|
161
|
+
*/
|
|
162
|
+
readonly isFinished: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the number of PCG iterations executed in the active solve.
|
|
165
|
+
*/
|
|
166
|
+
readonly iteration: number;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the maximum CSR nonzero count across all AMG hierarchy levels.
|
|
169
|
+
*/
|
|
170
|
+
readonly maxLevelNnz: number;
|
|
171
|
+
/**
|
|
172
|
+
* Returns the number of AMG hierarchy levels.
|
|
173
|
+
*/
|
|
174
|
+
readonly numLevels: number;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the matrix dimension `numNodes`.
|
|
177
|
+
*/
|
|
178
|
+
readonly numNodes: number;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the AMG operator complexity.
|
|
181
|
+
*/
|
|
182
|
+
readonly operatorComplexity: number;
|
|
183
|
+
/**
|
|
184
|
+
* Returns the most recent relative Euclidean residual norm.
|
|
185
|
+
*/
|
|
186
|
+
readonly relativeResidual: number;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the most recent Euclidean residual norm.
|
|
189
|
+
*/
|
|
190
|
+
readonly residualNorm: number;
|
|
191
|
+
/**
|
|
192
|
+
* Returns the current solver lifecycle status string.
|
|
193
|
+
*/
|
|
194
|
+
readonly status: string;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the maximum scheduled iterations for the active solve.
|
|
197
|
+
*/
|
|
198
|
+
readonly totalIterations: number;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Output of `anisotropicLaplacian(graph, ...)`.
|
|
203
|
+
*/
|
|
204
|
+
export class AnisotropicLaplacianResult {
|
|
205
|
+
private constructor();
|
|
206
|
+
free(): void;
|
|
207
|
+
[Symbol.dispose](): void;
|
|
208
|
+
/**
|
|
209
|
+
* Returns the symmetric PSD `CsrMatrix` $S (D^{(\alpha)} - A^{(\alpha)}) S$.
|
|
210
|
+
*/
|
|
211
|
+
matrix(): CsrMatrix;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the near-nullspace vector (`Float64Array`).
|
|
214
|
+
*/
|
|
215
|
+
nullspace(): Float64Array;
|
|
216
|
+
/**
|
|
217
|
+
* Returns the outer symmetric scaling factors (`Float64Array`).
|
|
218
|
+
*/
|
|
219
|
+
outerScale(): Float64Array;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Output of `coarseBackboneInit`.
|
|
224
|
+
*/
|
|
225
|
+
export class CoarseBackboneResult {
|
|
226
|
+
private constructor();
|
|
227
|
+
free(): void;
|
|
228
|
+
[Symbol.dispose](): void;
|
|
229
|
+
/**
|
|
230
|
+
* Returns the coarsest `CsrGraph` (`f32`).
|
|
231
|
+
*/
|
|
232
|
+
coarseGraph(): CsrGraph;
|
|
233
|
+
/**
|
|
234
|
+
* Returns the coarse super-node `Layout2d` (`f32`) scaled consistently with `fineLayout`.
|
|
235
|
+
*/
|
|
236
|
+
coarseLayout(): Layout2d;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the original vertex counts per coarse cluster (`Uint32Array`).
|
|
239
|
+
*/
|
|
240
|
+
coarseSizes(): Uint32Array;
|
|
241
|
+
/**
|
|
242
|
+
* Returns the prolonged fine-level `Layout2d` (`f32`).
|
|
243
|
+
*/
|
|
244
|
+
fineLayout(): Layout2d;
|
|
245
|
+
/**
|
|
246
|
+
* Returns the original-to-coarsest cluster IDs (`Uint32Array`).
|
|
247
|
+
*/
|
|
248
|
+
nodeToCoarse(): Uint32Array;
|
|
249
|
+
/**
|
|
250
|
+
* Returns the reserved cluster radii (`Float64Array`).
|
|
251
|
+
*/
|
|
252
|
+
radii(): Float64Array;
|
|
253
|
+
readonly coarseOverlapPairsFinal: number;
|
|
254
|
+
readonly coarseOverlapPairsInitial: number;
|
|
255
|
+
readonly louvainLevels: number;
|
|
256
|
+
readonly maxClusterSize: number;
|
|
257
|
+
readonly maxRadius: number;
|
|
258
|
+
readonly meanClusterSize: number;
|
|
259
|
+
readonly medianLEdge: number;
|
|
260
|
+
readonly numCoarseEdges: number;
|
|
261
|
+
readonly numCoarseNodes: number;
|
|
262
|
+
readonly numFineNodes: number;
|
|
263
|
+
readonly scaleFactorApplied: number;
|
|
264
|
+
}
|
|
265
|
+
|
|
4
266
|
/**
|
|
5
267
|
* Output of `coarsenGraph`.
|
|
6
268
|
*/
|
|
@@ -26,6 +288,47 @@ export class CoarsenedGraphResult {
|
|
|
26
288
|
readonly numClusters: number;
|
|
27
289
|
}
|
|
28
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Output of `louvainCoarsen`.
|
|
293
|
+
*/
|
|
294
|
+
export class CoarsenedHierarchyResult {
|
|
295
|
+
private constructor();
|
|
296
|
+
free(): void;
|
|
297
|
+
[Symbol.dispose](): void;
|
|
298
|
+
/**
|
|
299
|
+
* Returns a cloned handle to the coarsest super-graph `CsrGraph`.
|
|
300
|
+
*/
|
|
301
|
+
coarseGraph(): CsrGraph;
|
|
302
|
+
/**
|
|
303
|
+
* Returns the original vertex counts per coarsest cluster (`Uint32Array`).
|
|
304
|
+
*/
|
|
305
|
+
coarseSizes(): Uint32Array;
|
|
306
|
+
/**
|
|
307
|
+
* Returns the modularity $Q_\gamma$ achieved at each contraction level.
|
|
308
|
+
*/
|
|
309
|
+
levelModularities(): Float64Array;
|
|
310
|
+
/**
|
|
311
|
+
* Returns the number of clusters at each contraction level.
|
|
312
|
+
*/
|
|
313
|
+
levelNumClusters(): Uint32Array;
|
|
314
|
+
/**
|
|
315
|
+
* Returns the resolution parameter used at each contraction level.
|
|
316
|
+
*/
|
|
317
|
+
levelResolutions(): Float64Array;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the original-to-coarsest cluster assignment (`Uint32Array`).
|
|
320
|
+
*/
|
|
321
|
+
nodeToCoarse(): Uint32Array;
|
|
322
|
+
/**
|
|
323
|
+
* Returns the number of coarsest super-nodes.
|
|
324
|
+
*/
|
|
325
|
+
readonly numClusters: number;
|
|
326
|
+
/**
|
|
327
|
+
* Returns the number of outer Louvain contraction levels.
|
|
328
|
+
*/
|
|
329
|
+
readonly numLevels: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
29
332
|
/**
|
|
30
333
|
* Non-adjacent crossing edge pair details returned by `crossingEdges`.
|
|
31
334
|
*/
|
|
@@ -125,6 +428,76 @@ export class CsrGraph {
|
|
|
125
428
|
weights(): Float32Array | undefined;
|
|
126
429
|
}
|
|
127
430
|
|
|
431
|
+
/**
|
|
432
|
+
* Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
|
|
433
|
+
* and matrix-vector operations.
|
|
434
|
+
*/
|
|
435
|
+
export class CsrMatrix {
|
|
436
|
+
private constructor();
|
|
437
|
+
free(): void;
|
|
438
|
+
[Symbol.dispose](): void;
|
|
439
|
+
/**
|
|
440
|
+
* Returns a copy of the main diagonal entries (`Float64Array`, length `numNodes`).
|
|
441
|
+
*/
|
|
442
|
+
diagonal(): Float64Array;
|
|
443
|
+
/**
|
|
444
|
+
* Estimates `lambdaMax` via deterministic Lanczos tridiagonalization clamped by Gershgorin.
|
|
445
|
+
*/
|
|
446
|
+
estimateLambdaMaxLanczos(num_steps?: number | null, safety_factor?: number | null, seed?: number | null): number;
|
|
447
|
+
/**
|
|
448
|
+
* Estimates `lambdaMax` via deterministic Rademacher power iteration clamped by Gershgorin.
|
|
449
|
+
*/
|
|
450
|
+
estimateLambdaMax(num_iters?: number | null, safety_factor?: number | null, seed?: number | null): number;
|
|
451
|
+
/**
|
|
452
|
+
* Constructs a validated `CsrMatrix` from CSR `numNodes`, `indptr`, `indices`, and `values`.
|
|
453
|
+
*/
|
|
454
|
+
static fromCsr(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], values: Float64Array | number[]): CsrMatrix;
|
|
455
|
+
/**
|
|
456
|
+
* Returns the symmetric Gershgorin upper spectral bound `max_i (|A_ii| + sum_{j!=i} |A_ij|)`.
|
|
457
|
+
*/
|
|
458
|
+
gershgorinSpectralBound(): number;
|
|
459
|
+
/**
|
|
460
|
+
* Returns a copy of sorted CSR column `indices` (`Uint32Array`, length `nnz`).
|
|
461
|
+
*/
|
|
462
|
+
indices(): Uint32Array;
|
|
463
|
+
/**
|
|
464
|
+
* Returns a copy of CSR `indptr` (`Uint32Array`, length `numNodes + 1`).
|
|
465
|
+
*/
|
|
466
|
+
indptr(): Uint32Array;
|
|
467
|
+
/**
|
|
468
|
+
* Returns `true` if `|A_ij - A_ji| <= tol` for all entries.
|
|
469
|
+
*/
|
|
470
|
+
isSymmetric(tol?: number | null): boolean;
|
|
471
|
+
/**
|
|
472
|
+
* Returns `scale * A + shift * I`.
|
|
473
|
+
*/
|
|
474
|
+
scaleAndShift(scale: number, shift: number): CsrMatrix;
|
|
475
|
+
/**
|
|
476
|
+
* Computes sparse matrix-vector product `y = A * x`.
|
|
477
|
+
*/
|
|
478
|
+
spmv(x: Float64Array | number[]): Float64Array;
|
|
479
|
+
/**
|
|
480
|
+
* Converts to a flat row-major `(numNodes, numNodes)` `Float64Array`.
|
|
481
|
+
*/
|
|
482
|
+
toDense(): Float64Array;
|
|
483
|
+
/**
|
|
484
|
+
* Returns the matrix trace `sum(diagonal)`.
|
|
485
|
+
*/
|
|
486
|
+
trace(): number;
|
|
487
|
+
/**
|
|
488
|
+
* Returns a copy of CSR `values` (`Float64Array`, length `nnz`).
|
|
489
|
+
*/
|
|
490
|
+
values(): Float64Array;
|
|
491
|
+
/**
|
|
492
|
+
* Returns the number of stored non-zero entries.
|
|
493
|
+
*/
|
|
494
|
+
readonly nnz: number;
|
|
495
|
+
/**
|
|
496
|
+
* Returns the matrix dimension `numNodes`.
|
|
497
|
+
*/
|
|
498
|
+
readonly numNodes: number;
|
|
499
|
+
}
|
|
500
|
+
|
|
128
501
|
/**
|
|
129
502
|
* Deterministic 2D Delaunay triangulation result returned by `delaunayTriangulation`.
|
|
130
503
|
*/
|
|
@@ -204,6 +577,10 @@ export class DogVaradhanLandmarks {
|
|
|
204
577
|
* Returns the effective rank-1 positivity floor `betaEff`.
|
|
205
578
|
*/
|
|
206
579
|
readonly betaEff: number;
|
|
580
|
+
/**
|
|
581
|
+
* Returns the Chebyshev polynomial degree used for the DoG filter.
|
|
582
|
+
*/
|
|
583
|
+
readonly degree: number;
|
|
207
584
|
/**
|
|
208
585
|
* Returns the R2 PSD projection shift $\delta_{\mathrm{psd}}$.
|
|
209
586
|
*/
|
|
@@ -231,61 +608,130 @@ export class DogVaradhanLandmarks {
|
|
|
231
608
|
}
|
|
232
609
|
|
|
233
610
|
/**
|
|
234
|
-
*
|
|
611
|
+
* Effective edge resistances and Foster's theorem diagnostics for canonical simple undirected edges.
|
|
235
612
|
*/
|
|
236
|
-
export class
|
|
613
|
+
export class EffectiveResistanceResult {
|
|
237
614
|
private constructor();
|
|
238
615
|
free(): void;
|
|
239
616
|
[Symbol.dispose](): void;
|
|
240
617
|
/**
|
|
241
|
-
* Returns
|
|
618
|
+
* Returns canonical edge conductances `w_e = 1 / l_e` (`Float64Array`).
|
|
242
619
|
*/
|
|
243
|
-
|
|
620
|
+
conductances(): Float64Array;
|
|
244
621
|
/**
|
|
245
|
-
* Returns
|
|
622
|
+
* Returns canonical edge lengths `l_e` (`Float64Array`).
|
|
246
623
|
*/
|
|
247
|
-
|
|
624
|
+
edgeLengths(): Float64Array;
|
|
248
625
|
/**
|
|
249
|
-
* Returns
|
|
626
|
+
* Returns canonical edge source endpoints `u < v` (`Uint32Array`).
|
|
250
627
|
*/
|
|
251
|
-
|
|
628
|
+
edgeU(): Uint32Array;
|
|
252
629
|
/**
|
|
253
|
-
* Returns
|
|
630
|
+
* Returns canonical edge target endpoints `v > u` (`Uint32Array`).
|
|
254
631
|
*/
|
|
255
|
-
|
|
632
|
+
edgeV(): Uint32Array;
|
|
256
633
|
/**
|
|
257
|
-
* Returns
|
|
634
|
+
* Returns effective resistances `R_e` (`Float64Array`).
|
|
258
635
|
*/
|
|
259
|
-
|
|
636
|
+
effectiveResistances(): Float64Array;
|
|
260
637
|
/**
|
|
261
|
-
* Returns `true`
|
|
638
|
+
* Returns `true` if every JL PCG column converged within tolerance.
|
|
262
639
|
*/
|
|
263
|
-
readonly
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) storing flat edge
|
|
268
|
-
* polyline buffers without `serde` or consuming input `Layout2d` handles.
|
|
269
|
-
*/
|
|
270
|
-
export class FdebSolver {
|
|
271
|
-
free(): void;
|
|
272
|
-
[Symbol.dispose](): void;
|
|
640
|
+
readonly amgAllConverged: boolean;
|
|
273
641
|
/**
|
|
274
|
-
* Returns
|
|
642
|
+
* Returns maximum relative PCG residual across all JL RHS columns.
|
|
275
643
|
*/
|
|
276
|
-
|
|
644
|
+
readonly amgMaxRelativeResidual: number;
|
|
277
645
|
/**
|
|
278
|
-
*
|
|
646
|
+
* Returns total AMG-PCG iterations executed across all JL RHS columns.
|
|
279
647
|
*/
|
|
280
|
-
|
|
648
|
+
readonly amgTotalIterations: number;
|
|
281
649
|
/**
|
|
282
|
-
* Returns
|
|
650
|
+
* Returns the exact theoretical Foster sum `numNodes - numComponents`.
|
|
283
651
|
*/
|
|
284
|
-
|
|
652
|
+
readonly expectedFoster: number;
|
|
285
653
|
/**
|
|
286
|
-
*
|
|
654
|
+
* Returns the relative Foster error.
|
|
287
655
|
*/
|
|
288
|
-
|
|
656
|
+
readonly fosterRelErr: number;
|
|
657
|
+
/**
|
|
658
|
+
* Returns the observed Foster sum `sum_e w_e * R_e`.
|
|
659
|
+
*/
|
|
660
|
+
readonly fosterSum: number;
|
|
661
|
+
/**
|
|
662
|
+
* Returns the number of connected components (including isolated vertices).
|
|
663
|
+
*/
|
|
664
|
+
readonly numComponents: number;
|
|
665
|
+
/**
|
|
666
|
+
* Returns the number of canonical undirected simple edges (`u < v`).
|
|
667
|
+
*/
|
|
668
|
+
readonly numEdges: number;
|
|
669
|
+
/**
|
|
670
|
+
* Returns the number of vertices in the graph.
|
|
671
|
+
*/
|
|
672
|
+
readonly numNodes: number;
|
|
673
|
+
/**
|
|
674
|
+
* Returns `true` if the exact dense pseudoinverse solver path was used.
|
|
675
|
+
*/
|
|
676
|
+
readonly usedExact: boolean;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Smallest nontrivial eigenpairs of the symmetric normalized Laplacian $L_{\mathrm{sym}}$.
|
|
681
|
+
*/
|
|
682
|
+
export class EigenResult {
|
|
683
|
+
private constructor();
|
|
684
|
+
free(): void;
|
|
685
|
+
[Symbol.dispose](): void;
|
|
686
|
+
/**
|
|
687
|
+
* Returns the $D^{-1/2}$ inverse square-root degree vector (`length === numNodes`).
|
|
688
|
+
*/
|
|
689
|
+
invSqrtDeg(): Float64Array;
|
|
690
|
+
/**
|
|
691
|
+
* Returns the ascending nontrivial eigenvalues (`length === numModes`).
|
|
692
|
+
*/
|
|
693
|
+
lambdas(): Float64Array;
|
|
694
|
+
/**
|
|
695
|
+
* Returns the flat row-major `(numNodes, numModes)` orthonormal eigenvectors.
|
|
696
|
+
*/
|
|
697
|
+
vectors(): Float64Array;
|
|
698
|
+
/**
|
|
699
|
+
* Returns the number of returned nontrivial eigenmodes.
|
|
700
|
+
*/
|
|
701
|
+
readonly numModes: number;
|
|
702
|
+
/**
|
|
703
|
+
* Returns the number of vertices in the graph.
|
|
704
|
+
*/
|
|
705
|
+
readonly numNodes: number;
|
|
706
|
+
/**
|
|
707
|
+
* Returns `true` when the dense Jacobi eigensolver fallback path was used.
|
|
708
|
+
*/
|
|
709
|
+
readonly usedDenseFallback: boolean;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) storing flat edge
|
|
714
|
+
* polyline buffers without `serde` or consuming input `Layout2d` handles.
|
|
715
|
+
*/
|
|
716
|
+
export class FdebSolver {
|
|
717
|
+
free(): void;
|
|
718
|
+
[Symbol.dispose](): void;
|
|
719
|
+
/**
|
|
720
|
+
* Returns CSR-style polyline point offsets of length `numEdges + 1` (`Uint32Array`).
|
|
721
|
+
*/
|
|
722
|
+
edgeOffsets(): Uint32Array;
|
|
723
|
+
/**
|
|
724
|
+
* Constructs an `FdebSolver` from `graph` and `layout` by shared reference.
|
|
725
|
+
*/
|
|
726
|
+
constructor(graph: CsrGraph, layout: Layout2d, options: any);
|
|
727
|
+
/**
|
|
728
|
+
* Returns all bundled polyline control points packed as flat interleaved `[x0, y0, ...]` (`Float32Array`).
|
|
729
|
+
*/
|
|
730
|
+
points(): Float32Array;
|
|
731
|
+
/**
|
|
732
|
+
* Executes up to `steps` FDEB iterations and returns the updated solver status string.
|
|
733
|
+
*/
|
|
734
|
+
runSteps(steps: number): string;
|
|
289
735
|
/**
|
|
290
736
|
* Runs FDEB edge bundling to completion and returns the final solver status string.
|
|
291
737
|
*/
|
|
@@ -404,6 +850,10 @@ export class GuMapSolver {
|
|
|
404
850
|
* Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
|
|
405
851
|
*/
|
|
406
852
|
static fromKnn(knn: KnnGraph, n_epochs_or_options: any, negative_sample_rate?: number | null, learning_rate?: number | null, min_dist?: number | null, spread?: number | null, a?: number | null, b?: number | null, sigma_iters?: number | null, sigma_tolerance?: number | null, seed?: number | null): GuMapSolver;
|
|
853
|
+
/**
|
|
854
|
+
* Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
|
|
855
|
+
*/
|
|
856
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): GuMapSolver;
|
|
407
857
|
/**
|
|
408
858
|
* Executes up to `steps` epochs on `layout` in place.
|
|
409
859
|
*/
|
|
@@ -506,6 +956,10 @@ export class IbUmapSolver {
|
|
|
506
956
|
* Constructs an `IbUmapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
|
|
507
957
|
*/
|
|
508
958
|
static fromKnn(knn: KnnGraph, options: any): IbUmapSolver;
|
|
959
|
+
/**
|
|
960
|
+
* Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
|
|
961
|
+
*/
|
|
962
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
|
|
509
963
|
/**
|
|
510
964
|
* Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
|
|
511
965
|
* regularized DoG Varadhan landmark ALT distances.
|
|
@@ -779,6 +1233,27 @@ export class Layout2d {
|
|
|
779
1233
|
readonly numNodes: number;
|
|
780
1234
|
}
|
|
781
1235
|
|
|
1236
|
+
/**
|
|
1237
|
+
* Coordinate-collapse and zero-length edge degeneracy diagnostics returned by `layoutDegeneracy`.
|
|
1238
|
+
*/
|
|
1239
|
+
export class LayoutDegeneracy {
|
|
1240
|
+
private constructor();
|
|
1241
|
+
free(): void;
|
|
1242
|
+
[Symbol.dispose](): void;
|
|
1243
|
+
toRecord(): object;
|
|
1244
|
+
readonly bboxHeight: number;
|
|
1245
|
+
readonly bboxWidth: number;
|
|
1246
|
+
readonly duplicateNodesF32: number;
|
|
1247
|
+
readonly duplicateNodesF64: number;
|
|
1248
|
+
readonly duplicateRatioF32: number;
|
|
1249
|
+
readonly duplicateRatioF64: number;
|
|
1250
|
+
readonly isBboxDegenerate: boolean;
|
|
1251
|
+
readonly numEdges: number;
|
|
1252
|
+
readonly numNodes: number;
|
|
1253
|
+
readonly zeroLengthEdgeRatio: number;
|
|
1254
|
+
readonly zeroLengthEdges: number;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
782
1257
|
/**
|
|
783
1258
|
* Contiguous row-major `(numNodes * dim)` $d$-dimensional node coordinate buffer (`f32`)
|
|
784
1259
|
* suitable for zero-copy `Float32Array` linear-memory views via `coordsView()`.
|
|
@@ -865,6 +1340,10 @@ export class ManifoldLayout2d {
|
|
|
865
1340
|
* Advances vertex `i` along the geodesic defined by tangent vector `(vx, vy)`.
|
|
866
1341
|
*/
|
|
867
1342
|
applyTangentStep(i: number, vx: number, vy: number): void;
|
|
1343
|
+
/**
|
|
1344
|
+
* Isometrically recenters the Poincaré disk layout so its Einstein midpoint lies at `(0, 0)`.
|
|
1345
|
+
*/
|
|
1346
|
+
centerPoincareCentroid(): void;
|
|
868
1347
|
/**
|
|
869
1348
|
* Returns a flat interleaved `[x0, y0, ...]` `Float32Array` copy of all coordinates.
|
|
870
1349
|
*/
|
|
@@ -873,6 +1352,10 @@ export class ManifoldLayout2d {
|
|
|
873
1352
|
* Creates a `ManifoldLayout2d` from flat interleaved `[x0, y0, ...]` coordinates, projecting onto `kind`.
|
|
874
1353
|
*/
|
|
875
1354
|
static fromCoords(kind: string, coords: Float32Array | number[]): ManifoldLayout2d;
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates a `ManifoldLayout2d` from a Euclidean `Layout2d` scaled safely inside `maxRadius` (default `0.7`).
|
|
1357
|
+
*/
|
|
1358
|
+
static fromLayoutScaled(kind: string, layout: Layout2d, max_radius?: number | null): ManifoldLayout2d;
|
|
876
1359
|
/**
|
|
877
1360
|
* Creates a `ManifoldLayout2d` from a Euclidean `Layout2d`, projecting points onto `kind`.
|
|
878
1361
|
*/
|
|
@@ -897,199 +1380,684 @@ export class ManifoldLayout2d {
|
|
|
897
1380
|
* Returns the number of vertices in the manifold layout.
|
|
898
1381
|
*/
|
|
899
1382
|
len(): number;
|
|
1383
|
+
/**
|
|
1384
|
+
* Computes the closed-form Möbius-equivariant Einstein midpoint `[cx, cy]` on the Poincaré disk.
|
|
1385
|
+
*/
|
|
1386
|
+
poincareCentroid(): Float64Array;
|
|
900
1387
|
/**
|
|
901
1388
|
* Re-projects all coordinates onto the manifold's canonical domain after checking finiteness.
|
|
902
1389
|
*/
|
|
903
|
-
projectAll(): void;
|
|
1390
|
+
projectAll(): void;
|
|
1391
|
+
/**
|
|
1392
|
+
* Creates a deterministically seeded safe random initialization on `kind`.
|
|
1393
|
+
*/
|
|
1394
|
+
static randomInit(kind: string, n: number, scale?: number | null, seed?: number | null): ManifoldLayout2d;
|
|
1395
|
+
/**
|
|
1396
|
+
* Isometrically recenters the Poincaré disk layout so vertex `index` moves to `(0, 0)`.
|
|
1397
|
+
*/
|
|
1398
|
+
recenterPoincareAt(index: number): void;
|
|
1399
|
+
/**
|
|
1400
|
+
* Isometrically recenters all Poincaré disk points at `(cx, cy)` via Möbius automorphism.
|
|
1401
|
+
*/
|
|
1402
|
+
recenterPoincare(cx: number, cy: number): void;
|
|
1403
|
+
/**
|
|
1404
|
+
* Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
|
|
1405
|
+
*/
|
|
1406
|
+
setPoint(index: number, x: number, y: number): void;
|
|
1407
|
+
/**
|
|
1408
|
+
* Creates a zero-initialized spherical `ManifoldLayout2d` for `n` vertices.
|
|
1409
|
+
*/
|
|
1410
|
+
static spherical(n: number): ManifoldLayout2d;
|
|
1411
|
+
/**
|
|
1412
|
+
* Computes the Riemannian logarithmic map `[vx, vy]` at vertex `i` pointing toward `j`.
|
|
1413
|
+
*/
|
|
1414
|
+
tangentDelta(i: number, j: number): Float32Array;
|
|
1415
|
+
/**
|
|
1416
|
+
* Converts this manifold layout to a `Layout2d` copy.
|
|
1417
|
+
*/
|
|
1418
|
+
toLayout(): Layout2d;
|
|
1419
|
+
/**
|
|
1420
|
+
* Creates a zero-initialized flat unit torus `ManifoldLayout2d` for `n` vertices.
|
|
1421
|
+
*/
|
|
1422
|
+
static torus2d(n: number): ManifoldLayout2d;
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns the first coordinate (`x` or `lon`) of vertex `index`.
|
|
1425
|
+
*/
|
|
1426
|
+
x(index: number): number;
|
|
1427
|
+
/**
|
|
1428
|
+
* Returns the second coordinate (`y` or `colat`) of vertex `index`.
|
|
1429
|
+
*/
|
|
1430
|
+
y(index: number): number;
|
|
1431
|
+
/**
|
|
1432
|
+
* Creates a zero-initialized `ManifoldLayout2d` for `n` vertices on geometry `kind`.
|
|
1433
|
+
*/
|
|
1434
|
+
static zeros(kind: string, n: number): ManifoldLayout2d;
|
|
1435
|
+
/**
|
|
1436
|
+
* Returns the canonical manifold kind string: `"hyperbolic"`, `"spherical"`, or `"torus"`.
|
|
1437
|
+
*/
|
|
1438
|
+
readonly kind: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* Alias for `kind` matching `ManifoldLayout2d.manifold`.
|
|
1441
|
+
*/
|
|
1442
|
+
readonly manifold: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* Returns the number of vertices in the manifold layout.
|
|
1445
|
+
*/
|
|
1446
|
+
readonly numNodes: number;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Selective quality metric report returned by `evaluateMetrics`.
|
|
1451
|
+
*
|
|
1452
|
+
* Unrequested metrics return `undefined` without requiring `serde` in minimal builds.
|
|
1453
|
+
*/
|
|
1454
|
+
export class MetricReport {
|
|
1455
|
+
private constructor();
|
|
1456
|
+
free(): void;
|
|
1457
|
+
[Symbol.dispose](): void;
|
|
1458
|
+
/**
|
|
1459
|
+
* Converts requested metrics into a plain JavaScript object without requiring `serde`.
|
|
1460
|
+
*/
|
|
1461
|
+
toRecord(): object;
|
|
1462
|
+
/**
|
|
1463
|
+
* Returns Adjusted Patch-NIG score, or `undefined` if not requested.
|
|
1464
|
+
*/
|
|
1465
|
+
readonly adjustedPatchNig: number | undefined;
|
|
1466
|
+
/**
|
|
1467
|
+
* Returns exponential angular-resolution penalty sum, or `undefined` if not requested.
|
|
1468
|
+
*/
|
|
1469
|
+
readonly angularResolution: number | undefined;
|
|
1470
|
+
/**
|
|
1471
|
+
* Returns PCA aspect ratio, or `undefined` if not requested.
|
|
1472
|
+
*/
|
|
1473
|
+
readonly aspectRatio: number | undefined;
|
|
1474
|
+
/**
|
|
1475
|
+
* Returns exact sweep-line edge crossing-angle penalty sum, or `undefined` if not requested.
|
|
1476
|
+
*/
|
|
1477
|
+
readonly crossingAngle: number | undefined;
|
|
1478
|
+
/**
|
|
1479
|
+
* Returns exact sweep-line edge crossing count, or `undefined` if not requested.
|
|
1480
|
+
*/
|
|
1481
|
+
readonly crossingNumber: number | undefined;
|
|
1482
|
+
/**
|
|
1483
|
+
* Returns exact DRGraph Eq. (17) crosslessness, or `undefined` if not requested.
|
|
1484
|
+
*/
|
|
1485
|
+
readonly crosslessness: number | undefined;
|
|
1486
|
+
/**
|
|
1487
|
+
* Returns shape-based Gabriel Graph preservation (`dGG`), or `undefined` if not requested.
|
|
1488
|
+
*/
|
|
1489
|
+
readonly gabrielGraphPreservation: number | undefined;
|
|
1490
|
+
/**
|
|
1491
|
+
* Returns Gabriel graph property violation sum, or `undefined` if not requested.
|
|
1492
|
+
*/
|
|
1493
|
+
readonly gabrielGraphProperty: number | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* Returns ideal edge-length preservation error sum, or `undefined` if not requested.
|
|
1496
|
+
*/
|
|
1497
|
+
readonly idealEdgeLengths: number | undefined;
|
|
1498
|
+
/**
|
|
1499
|
+
* Returns Landmark-Stratified Random Triplet Accuracy (`L-Stratified-RTA`), or `undefined` if not requested.
|
|
1500
|
+
*/
|
|
1501
|
+
readonly landmarkStratifiedRta: number | undefined;
|
|
1502
|
+
/**
|
|
1503
|
+
* Returns scalar layout-degeneracy summary, or `undefined` if not requested.
|
|
1504
|
+
*/
|
|
1505
|
+
readonly layoutDegeneracy: number | undefined;
|
|
1506
|
+
/**
|
|
1507
|
+
* Returns DRGraph Eq. (19) minimum-angle resolution (`A1`), or `undefined` if not requested.
|
|
1508
|
+
*/
|
|
1509
|
+
readonly minimumAngleA1: number | undefined;
|
|
1510
|
+
/**
|
|
1511
|
+
* Returns DRGraph Eq. (19) strict minimum-angle resolution (`A2`), or `undefined` if not requested.
|
|
1512
|
+
*/
|
|
1513
|
+
readonly minimumAngle: number | undefined;
|
|
1514
|
+
/**
|
|
1515
|
+
* Returns 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1516
|
+
*/
|
|
1517
|
+
readonly neighborhoodPreservation1Hop: number | undefined;
|
|
1518
|
+
/**
|
|
1519
|
+
* Returns 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1520
|
+
*/
|
|
1521
|
+
readonly neighborhoodPreservation2Hop: number | undefined;
|
|
1522
|
+
/**
|
|
1523
|
+
* Returns one-sided hinge node-resolution violation sum, or `undefined` if not requested.
|
|
1524
|
+
*/
|
|
1525
|
+
readonly nodeResolution: number | undefined;
|
|
1526
|
+
/**
|
|
1527
|
+
* Returns shape-based Relative Neighborhood Graph preservation (`dRNG`), or `undefined` if not requested.
|
|
1528
|
+
*/
|
|
1529
|
+
readonly relativeNeighborhoodPreservation: number | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* Returns deterministic sampled crossing estimate, or `undefined` if not requested.
|
|
1532
|
+
*/
|
|
1533
|
+
readonly sampledCrossingNumber: number | undefined;
|
|
1534
|
+
/**
|
|
1535
|
+
* Returns sampled DRGraph Eq. (17) crosslessness, or `undefined` if not requested.
|
|
1536
|
+
*/
|
|
1537
|
+
readonly sampledCrosslessness: number | undefined;
|
|
1538
|
+
/**
|
|
1539
|
+
* Returns deterministic vertex-sampled 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1540
|
+
*/
|
|
1541
|
+
readonly sampledNp1: number | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* Returns deterministic vertex-sampled 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly sampledNp2: number | undefined;
|
|
1546
|
+
/**
|
|
1547
|
+
* Returns pivot-sampled Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1548
|
+
*/
|
|
1549
|
+
readonly sampledScaleNormalizedStress: number | undefined;
|
|
1550
|
+
/**
|
|
1551
|
+
* Returns closed-form Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1552
|
+
*/
|
|
1553
|
+
readonly scaleNormalizedStress: number | undefined;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
|
|
1558
|
+
*/
|
|
1559
|
+
export class MinimumAngleSummary {
|
|
1560
|
+
private constructor();
|
|
1561
|
+
free(): void;
|
|
1562
|
+
[Symbol.dispose](): void;
|
|
1563
|
+
toRecord(): object;
|
|
1564
|
+
readonly a1: number;
|
|
1565
|
+
readonly a2: number;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Output of `SgdSolver.pacmapGraphWithBackbone`.
|
|
1570
|
+
*/
|
|
1571
|
+
export class PacmapBackboneResult {
|
|
1572
|
+
private constructor();
|
|
1573
|
+
free(): void;
|
|
1574
|
+
[Symbol.dispose](): void;
|
|
1575
|
+
/**
|
|
1576
|
+
* Returns the underlying `CoarseBackboneResult` handle.
|
|
1577
|
+
*/
|
|
1578
|
+
backbone(): CoarseBackboneResult;
|
|
1579
|
+
/**
|
|
1580
|
+
* Returns the coarse-backbone initial `Layout2d` (`f32`).
|
|
1581
|
+
*/
|
|
1582
|
+
fineLayout(): Layout2d;
|
|
1583
|
+
/**
|
|
1584
|
+
* Returns the initialized cooperative `SgdSolver` (`PaCMAP-Graph` mode).
|
|
1585
|
+
*/
|
|
1586
|
+
solver(): SgdSolver;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
|
|
1591
|
+
*/
|
|
1592
|
+
export class PrismDistortion {
|
|
1593
|
+
private constructor();
|
|
1594
|
+
free(): void;
|
|
1595
|
+
[Symbol.dispose](): void;
|
|
1596
|
+
/**
|
|
1597
|
+
* Returns the scale-, translation-, and rotation-invariant Procrustes disparity (`sigma_disp`)
|
|
1598
|
+
* lying in `[0.0, 1.0]`.
|
|
1599
|
+
*/
|
|
1600
|
+
readonly sigmaDisp: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* Returns the proximity edge-length ratio coefficient of variation (`sigma_dist`).
|
|
1603
|
+
*/
|
|
1604
|
+
readonly sigmaDist: number;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Cooperative Gansner-Hu (2010) PRISM proximity-stress overlap removal solver (`f32`).
|
|
1609
|
+
*
|
|
1610
|
+
* Uses `Delaunay2d` when compiled with `delaunay` and falls back automatically to
|
|
1611
|
+
* `StaticKdTree` $k$-NN proximity + `RectangleOverlapSweep` under `--no-default-features`.
|
|
1612
|
+
*/
|
|
1613
|
+
export class PrismOverlapRemoval {
|
|
1614
|
+
free(): void;
|
|
1615
|
+
[Symbol.dispose](): void;
|
|
1616
|
+
/**
|
|
1617
|
+
* Constructs a `PrismOverlapRemoval` solver for circular/square nodes with equal
|
|
1618
|
+
* half-width and half-height given by `radii`.
|
|
1619
|
+
*/
|
|
1620
|
+
static fromRadii(radii: Float32Array | number[], options: any): PrismOverlapRemoval;
|
|
1621
|
+
/**
|
|
1622
|
+
* Constructs a `PrismOverlapRemoval` solver from per-node `halfWidths` and `halfHeights`.
|
|
1623
|
+
*/
|
|
1624
|
+
constructor(half_widths: Float32Array | number[], half_heights: Float32Array | number[], options: any);
|
|
1625
|
+
/**
|
|
1626
|
+
* Executes up to `steps` PRISM rounds on `layout` in place.
|
|
1627
|
+
*/
|
|
1628
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
1629
|
+
/**
|
|
1630
|
+
* Runs PRISM overlap removal until `0` overlaps remain or `maxIterations` is reached.
|
|
1631
|
+
*/
|
|
1632
|
+
run(layout: Layout2d): string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Executes one PRISM proximity-stress round on `layout` in place.
|
|
1635
|
+
*/
|
|
1636
|
+
step(layout: Layout2d): string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Returns `true` when the solver has converged (`0` overlaps) or completed.
|
|
1639
|
+
*/
|
|
1640
|
+
readonly isFinished: boolean;
|
|
1641
|
+
/**
|
|
1642
|
+
* Returns the number of PRISM rounds executed so far.
|
|
1643
|
+
*/
|
|
1644
|
+
readonly iteration: number;
|
|
1645
|
+
/**
|
|
1646
|
+
* Returns the number of overlapping rectangle pairs remaining after the most recent step.
|
|
1647
|
+
*/
|
|
1648
|
+
readonly lastOverlapCount: number;
|
|
1649
|
+
/**
|
|
1650
|
+
* Returns the expected vertex count.
|
|
1651
|
+
*/
|
|
1652
|
+
readonly numNodes: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* Returns the solver lifecycle status string.
|
|
1655
|
+
*/
|
|
1656
|
+
readonly status: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Returns the maximum scheduled PRISM rounds (`maxIterations`).
|
|
1659
|
+
*/
|
|
1660
|
+
readonly totalIterations: number;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Devriendt-Lambiotte resistance curvature flow result with reweighted graphs and geometry classification.
|
|
1665
|
+
*/
|
|
1666
|
+
export class ResistanceCurvatureFlowResult {
|
|
1667
|
+
private constructor();
|
|
1668
|
+
free(): void;
|
|
1669
|
+
[Symbol.dispose](): void;
|
|
1670
|
+
/**
|
|
1671
|
+
* Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
|
|
1672
|
+
*/
|
|
1673
|
+
conductanceGraph(): CsrGraph;
|
|
1674
|
+
/**
|
|
1675
|
+
* Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
|
|
1676
|
+
*/
|
|
1677
|
+
conductances(): Float64Array;
|
|
1678
|
+
/**
|
|
1679
|
+
* Returns final normalized edge lengths `l_e` (`Float64Array`).
|
|
1680
|
+
*/
|
|
1681
|
+
edgeLengths(): Float64Array;
|
|
1682
|
+
/**
|
|
1683
|
+
* Returns canonical edge source endpoints `u < v` (`Uint32Array`).
|
|
1684
|
+
*/
|
|
1685
|
+
edgeU(): Uint32Array;
|
|
1686
|
+
/**
|
|
1687
|
+
* Returns canonical edge target endpoints `v > u` (`Uint32Array`).
|
|
1688
|
+
*/
|
|
1689
|
+
edgeV(): Uint32Array;
|
|
1690
|
+
/**
|
|
1691
|
+
* Returns final effective resistances `R_e` (`Float64Array`).
|
|
1692
|
+
*/
|
|
1693
|
+
effectiveResistances(): Float64Array;
|
|
1694
|
+
/**
|
|
1695
|
+
* Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
|
|
1696
|
+
*/
|
|
1697
|
+
lengthGraph(): CsrGraph;
|
|
1698
|
+
/**
|
|
1699
|
+
* Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
|
|
1700
|
+
*/
|
|
1701
|
+
linkCurvatures(): Float64Array;
|
|
1702
|
+
/**
|
|
1703
|
+
* Returns per-step diagnostics across `0..=steps`.
|
|
1704
|
+
*/
|
|
1705
|
+
stepHistory(): ResistanceCurvatureStep[];
|
|
1706
|
+
/**
|
|
1707
|
+
* Returns final vertex resistance curvatures `p_i` (`Float64Array`).
|
|
1708
|
+
*/
|
|
1709
|
+
vertexCurvatures(): Float64Array;
|
|
1710
|
+
/**
|
|
1711
|
+
* Returns `true` if every JL PCG column converged in the final evaluation.
|
|
1712
|
+
*/
|
|
1713
|
+
readonly amgAllConverged: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Returns maximum relative PCG residual in the final evaluation.
|
|
1716
|
+
*/
|
|
1717
|
+
readonly amgMaxRelativeResidual: number;
|
|
1718
|
+
/**
|
|
1719
|
+
* Returns total AMG-PCG iterations executed in the final evaluation.
|
|
1720
|
+
*/
|
|
1721
|
+
readonly amgTotalIterations: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* Returns the exact theoretical Foster sum `numNodes - numComponents`.
|
|
1724
|
+
*/
|
|
1725
|
+
readonly expectedFoster: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* Returns the final relative Foster error.
|
|
1728
|
+
*/
|
|
1729
|
+
readonly fosterRelErr: number;
|
|
1730
|
+
/**
|
|
1731
|
+
* Returns the final Foster sum `sum_e w_e * R_e`.
|
|
1732
|
+
*/
|
|
1733
|
+
readonly fosterSum: number;
|
|
1734
|
+
/**
|
|
1735
|
+
* Returns maximum final link resistance curvature.
|
|
1736
|
+
*/
|
|
1737
|
+
readonly maxLinkCurvature: number;
|
|
1738
|
+
/**
|
|
1739
|
+
* Returns maximum final vertex resistance curvature.
|
|
1740
|
+
*/
|
|
1741
|
+
readonly maxVertexCurvature: number;
|
|
1742
|
+
/**
|
|
1743
|
+
* Returns mean final link resistance curvature.
|
|
1744
|
+
*/
|
|
1745
|
+
readonly meanLinkCurvature: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* Returns mean final vertex resistance curvature.
|
|
1748
|
+
*/
|
|
1749
|
+
readonly meanVertexCurvature: number;
|
|
1750
|
+
/**
|
|
1751
|
+
* Returns minimum final link resistance curvature.
|
|
1752
|
+
*/
|
|
1753
|
+
readonly minLinkCurvature: number;
|
|
1754
|
+
/**
|
|
1755
|
+
* Returns minimum final vertex resistance curvature.
|
|
1756
|
+
*/
|
|
1757
|
+
readonly minVertexCurvature: number;
|
|
1758
|
+
/**
|
|
1759
|
+
* Returns the number of connected components (including isolated vertices).
|
|
1760
|
+
*/
|
|
1761
|
+
readonly numComponents: number;
|
|
1762
|
+
/**
|
|
1763
|
+
* Returns the number of canonical undirected simple edges (`u < v`).
|
|
1764
|
+
*/
|
|
1765
|
+
readonly numEdges: number;
|
|
1766
|
+
/**
|
|
1767
|
+
* Returns the number of vertices in the graph.
|
|
1768
|
+
*/
|
|
1769
|
+
readonly numNodes: number;
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns population standard deviation of final link resistance curvatures.
|
|
1772
|
+
*/
|
|
1773
|
+
readonly stdLinkCurvature: number;
|
|
1774
|
+
/**
|
|
1775
|
+
* Returns the suggested 2D geometry (`"hyperbolic"`, `"spherical"`, `"torus"`, or `"euclidean"`).
|
|
1776
|
+
*/
|
|
1777
|
+
readonly suggestedGeometry: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Returns the suggested `ManifoldKind` (`"hyperbolic"`, `"spherical"`, `"torus"`), or `undefined`.
|
|
1780
|
+
*/
|
|
1781
|
+
readonly suggestedManifold: string | undefined;
|
|
1782
|
+
/**
|
|
1783
|
+
* Returns `true` if the final evaluation used the exact dense pseudoinverse solver.
|
|
1784
|
+
*/
|
|
1785
|
+
readonly usedExact: boolean;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Per-iteration summary recorded during `resistanceCurvatureFlow()`.
|
|
1790
|
+
*/
|
|
1791
|
+
export class ResistanceCurvatureStep {
|
|
1792
|
+
private constructor();
|
|
1793
|
+
free(): void;
|
|
1794
|
+
[Symbol.dispose](): void;
|
|
1795
|
+
/**
|
|
1796
|
+
* Maximum relative PCG residual in this step.
|
|
1797
|
+
*/
|
|
1798
|
+
readonly amgMaxRelativeResidual: number;
|
|
1799
|
+
/**
|
|
1800
|
+
* Total AMG-PCG iterations executed in this step.
|
|
1801
|
+
*/
|
|
1802
|
+
readonly amgTotalIterations: number;
|
|
1803
|
+
/**
|
|
1804
|
+
* Exact theoretical Foster sum `numNodes - numComponents`.
|
|
1805
|
+
*/
|
|
1806
|
+
readonly expectedFoster: number;
|
|
1807
|
+
/**
|
|
1808
|
+
* Relative Foster error.
|
|
1809
|
+
*/
|
|
1810
|
+
readonly fosterRelErr: number;
|
|
1811
|
+
/**
|
|
1812
|
+
* Observed Foster sum `sum_e w_e * R_e`.
|
|
1813
|
+
*/
|
|
1814
|
+
readonly fosterSum: number;
|
|
1815
|
+
/**
|
|
1816
|
+
* Maximum link resistance curvature.
|
|
1817
|
+
*/
|
|
1818
|
+
readonly maxLinkCurvature: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* Maximum vertex resistance curvature.
|
|
1821
|
+
*/
|
|
1822
|
+
readonly maxVertexCurvature: number;
|
|
1823
|
+
/**
|
|
1824
|
+
* Mean link resistance curvature.
|
|
1825
|
+
*/
|
|
1826
|
+
readonly meanLinkCurvature: number;
|
|
1827
|
+
/**
|
|
1828
|
+
* Mean vertex resistance curvature.
|
|
1829
|
+
*/
|
|
1830
|
+
readonly meanVertexCurvature: number;
|
|
1831
|
+
/**
|
|
1832
|
+
* Minimum link resistance curvature.
|
|
1833
|
+
*/
|
|
1834
|
+
readonly minLinkCurvature: number;
|
|
1835
|
+
/**
|
|
1836
|
+
* Minimum vertex resistance curvature.
|
|
1837
|
+
*/
|
|
1838
|
+
readonly minVertexCurvature: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* Population standard deviation of link resistance curvatures.
|
|
1841
|
+
*/
|
|
1842
|
+
readonly stdLinkCurvature: number;
|
|
904
1843
|
/**
|
|
905
|
-
*
|
|
1844
|
+
* Flow step index (`0..steps`, plus final evaluation step `steps`).
|
|
906
1845
|
*/
|
|
907
|
-
|
|
1846
|
+
readonly step: number;
|
|
908
1847
|
/**
|
|
909
|
-
*
|
|
1848
|
+
* Whether the exact dense pseudoinverse solver was used.
|
|
910
1849
|
*/
|
|
911
|
-
|
|
1850
|
+
readonly usedExact: boolean;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Output of `computePivotedRhghLandmarks`.
|
|
1855
|
+
*/
|
|
1856
|
+
export class RhghLandmarksResult {
|
|
1857
|
+
private constructor();
|
|
1858
|
+
free(): void;
|
|
1859
|
+
[Symbol.dispose](): void;
|
|
912
1860
|
/**
|
|
913
|
-
*
|
|
1861
|
+
* Returns the `DogVaradhanLandmarks` handle usable with `SgdSolver` and `GuMapSolver`.
|
|
914
1862
|
*/
|
|
915
|
-
|
|
1863
|
+
landmarks(): DogVaradhanLandmarks;
|
|
1864
|
+
readonly allConverged: boolean;
|
|
1865
|
+
readonly degCv: number;
|
|
1866
|
+
readonly edgeMedScale: number;
|
|
1867
|
+
readonly exp2: number;
|
|
1868
|
+
readonly gamma: number;
|
|
1869
|
+
readonly leafFraction: number;
|
|
1870
|
+
readonly maxPcgIters: number;
|
|
1871
|
+
readonly meanDegree: number;
|
|
1872
|
+
readonly numLandmarks: number;
|
|
1873
|
+
readonly numProbes: number;
|
|
1874
|
+
readonly pExp: number;
|
|
1875
|
+
readonly sSw: number;
|
|
1876
|
+
readonly totalPcgIters: number;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Detailed result returned by `landmarkStratifiedRtaDetail` and `landmarkStratifiedRtaFromLandmarks`.
|
|
1881
|
+
*/
|
|
1882
|
+
export class RtaEvaluation {
|
|
1883
|
+
private constructor();
|
|
1884
|
+
free(): void;
|
|
1885
|
+
[Symbol.dispose](): void;
|
|
1886
|
+
toRecord(): object;
|
|
1887
|
+
readonly isExact: boolean;
|
|
1888
|
+
readonly numLandmarks: number;
|
|
1889
|
+
readonly numStrata: number;
|
|
1890
|
+
readonly numTriplets: number;
|
|
1891
|
+
readonly rta: number;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Reusable `f32` R2C-FFT Screened Poisson unilateral upper-bound 2D density field evaluator.
|
|
1896
|
+
*/
|
|
1897
|
+
export class ScreenedPoissonField2d {
|
|
1898
|
+
free(): void;
|
|
1899
|
+
[Symbol.dispose](): void;
|
|
916
1900
|
/**
|
|
917
|
-
*
|
|
1901
|
+
* Evaluates unilateral density energy and descent forces inside explicit `[minX, maxX, minY, maxY]`.
|
|
918
1902
|
*/
|
|
919
|
-
|
|
1903
|
+
evaluateInBounds(layout: Layout2d, bounds: Float64Array | number[]): ScreenedPoissonResult;
|
|
920
1904
|
/**
|
|
921
|
-
*
|
|
1905
|
+
* Evaluates unilateral density energy and descent forces over `layout`'s adaptive bounding box.
|
|
922
1906
|
*/
|
|
923
|
-
|
|
1907
|
+
evaluate(layout: Layout2d): ScreenedPoissonResult;
|
|
924
1908
|
/**
|
|
925
|
-
*
|
|
1909
|
+
* Allocates a `ScreenedPoissonField2d` evaluator workspace (`f32`-backed).
|
|
926
1910
|
*/
|
|
927
|
-
|
|
1911
|
+
constructor(options: any);
|
|
928
1912
|
/**
|
|
929
|
-
* Returns
|
|
1913
|
+
* Returns total heap bytes allocated by internal `f32` grids, bitmasks, and FFT tables.
|
|
930
1914
|
*/
|
|
931
|
-
|
|
1915
|
+
workspaceMemoryBytes(): number;
|
|
932
1916
|
/**
|
|
933
|
-
*
|
|
1917
|
+
* Returns whether exact variational adjoint masking is enabled.
|
|
934
1918
|
*/
|
|
935
|
-
|
|
1919
|
+
readonly exactAdjoint: boolean;
|
|
936
1920
|
/**
|
|
937
|
-
* Returns the
|
|
1921
|
+
* Returns the active interior grid dimension $G$.
|
|
938
1922
|
*/
|
|
939
|
-
readonly
|
|
1923
|
+
readonly gridSize: number;
|
|
940
1924
|
/**
|
|
941
|
-
*
|
|
1925
|
+
* Returns the active kernel name (`"screenedPoisson"` or `"singleGaussian"`).
|
|
942
1926
|
*/
|
|
943
|
-
readonly
|
|
1927
|
+
readonly kernel: string;
|
|
944
1928
|
/**
|
|
945
|
-
* Returns the
|
|
1929
|
+
* Returns the zero-padding multiplier (`1` or `2`).
|
|
946
1930
|
*/
|
|
947
|
-
readonly
|
|
1931
|
+
readonly paddingFactor: number;
|
|
948
1932
|
}
|
|
949
1933
|
|
|
950
1934
|
/**
|
|
951
|
-
*
|
|
952
|
-
*
|
|
953
|
-
* Unrequested metrics return `undefined` without requiring `serde` in minimal builds.
|
|
1935
|
+
* Cooperative Screened Poisson unilateral upper-bound density field refiner (`f32`-backed).
|
|
954
1936
|
*/
|
|
955
|
-
export class
|
|
956
|
-
private constructor();
|
|
1937
|
+
export class ScreenedPoissonRefiner {
|
|
957
1938
|
free(): void;
|
|
958
1939
|
[Symbol.dispose](): void;
|
|
959
1940
|
/**
|
|
960
|
-
*
|
|
1941
|
+
* Executes a single decoupled epoch-boundary density step on `layout` in place and returns stats.
|
|
961
1942
|
*/
|
|
962
|
-
|
|
1943
|
+
applyEpochStep(layout: Layout2d): ScreenedPoissonResult;
|
|
963
1944
|
/**
|
|
964
|
-
*
|
|
1945
|
+
* Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
|
|
965
1946
|
*/
|
|
966
|
-
|
|
1947
|
+
static fromGraph(graph: CsrGraph, options: any): ScreenedPoissonRefiner;
|
|
967
1948
|
/**
|
|
968
|
-
* Returns
|
|
1949
|
+
* Returns telemetry from the most recent density field evaluation.
|
|
969
1950
|
*/
|
|
970
|
-
|
|
1951
|
+
lastStats(): ScreenedPoissonResult;
|
|
971
1952
|
/**
|
|
972
|
-
*
|
|
1953
|
+
* Creates a standalone `ScreenedPoissonRefiner` for `numNodes` vertices.
|
|
973
1954
|
*/
|
|
974
|
-
|
|
1955
|
+
constructor(num_nodes: number, options: any);
|
|
975
1956
|
/**
|
|
976
|
-
*
|
|
1957
|
+
* Executes up to `steps` density refinement steps on `layout` in place.
|
|
977
1958
|
*/
|
|
978
|
-
|
|
1959
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
979
1960
|
/**
|
|
980
|
-
*
|
|
1961
|
+
* Runs density refinement to completion or early convergence on `layout` in place.
|
|
981
1962
|
*/
|
|
982
|
-
|
|
1963
|
+
run(layout: Layout2d): string;
|
|
983
1964
|
/**
|
|
984
|
-
*
|
|
1965
|
+
* Attaches or replaces a coarse-level cluster centroid tether (`alignClusteredCentroids`).
|
|
985
1966
|
*/
|
|
986
|
-
|
|
1967
|
+
setCoarseTether(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[]): void;
|
|
987
1968
|
/**
|
|
988
|
-
*
|
|
1969
|
+
* Executes one density refinement step on `layout` in place.
|
|
989
1970
|
*/
|
|
990
|
-
|
|
1971
|
+
step(layout: Layout2d): string;
|
|
991
1972
|
/**
|
|
992
|
-
* Returns
|
|
1973
|
+
* Returns total heap bytes allocated by the underlying density field workspace.
|
|
993
1974
|
*/
|
|
994
|
-
|
|
1975
|
+
workspaceMemoryBytes(): number;
|
|
995
1976
|
/**
|
|
996
|
-
* Returns
|
|
1977
|
+
* Returns `true` when the solver reached `"converged"` or `"completed"`.
|
|
997
1978
|
*/
|
|
998
|
-
readonly
|
|
1979
|
+
readonly isFinished: boolean;
|
|
999
1980
|
/**
|
|
1000
|
-
* Returns
|
|
1981
|
+
* Returns the number of refinement iterations completed so far.
|
|
1001
1982
|
*/
|
|
1002
|
-
readonly
|
|
1983
|
+
readonly iteration: number;
|
|
1003
1984
|
/**
|
|
1004
|
-
*
|
|
1985
|
+
* Most recently evaluated variational density energy.
|
|
1005
1986
|
*/
|
|
1006
|
-
readonly
|
|
1987
|
+
readonly lastEnergy: number;
|
|
1007
1988
|
/**
|
|
1008
|
-
* Returns
|
|
1989
|
+
* Returns the expected number of vertices in `Layout2d`.
|
|
1009
1990
|
*/
|
|
1010
|
-
readonly
|
|
1991
|
+
readonly numNodes: number;
|
|
1011
1992
|
/**
|
|
1012
|
-
* Returns
|
|
1993
|
+
* Returns the solver lifecycle status string.
|
|
1013
1994
|
*/
|
|
1014
|
-
readonly
|
|
1995
|
+
readonly status: string;
|
|
1015
1996
|
/**
|
|
1016
|
-
* Returns
|
|
1997
|
+
* Returns the configured maximum number of refinement iterations.
|
|
1017
1998
|
*/
|
|
1018
|
-
readonly
|
|
1999
|
+
readonly totalIterations: number;
|
|
1019
2000
|
}
|
|
1020
2001
|
|
|
1021
2002
|
/**
|
|
1022
|
-
*
|
|
2003
|
+
* Output forces and telemetry produced by `ScreenedPoissonField2d` and `ScreenedPoissonRefiner`.
|
|
1023
2004
|
*/
|
|
1024
|
-
export class
|
|
2005
|
+
export class ScreenedPoissonResult {
|
|
1025
2006
|
private constructor();
|
|
1026
2007
|
free(): void;
|
|
1027
2008
|
[Symbol.dispose](): void;
|
|
1028
2009
|
/**
|
|
1029
|
-
* Returns the
|
|
1030
|
-
* lying in `[0.0, 1.0]`.
|
|
2010
|
+
* Returns the per-node $x$-component descent forces (`Float32Array`).
|
|
1031
2011
|
*/
|
|
1032
|
-
|
|
2012
|
+
forceX(): Float32Array;
|
|
1033
2013
|
/**
|
|
1034
|
-
* Returns the
|
|
2014
|
+
* Returns the per-node $y$-component descent forces (`Float32Array`).
|
|
1035
2015
|
*/
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Cooperative Gansner-Hu (2010) PRISM proximity-stress overlap removal solver (`f32`).
|
|
1041
|
-
*
|
|
1042
|
-
* Uses `Delaunay2d` when compiled with `delaunay` and falls back automatically to
|
|
1043
|
-
* `StaticKdTree` $k$-NN proximity + `RectangleOverlapSweep` under `--no-default-features`.
|
|
1044
|
-
*/
|
|
1045
|
-
export class PrismOverlapRemoval {
|
|
1046
|
-
free(): void;
|
|
1047
|
-
[Symbol.dispose](): void;
|
|
2016
|
+
forceY(): Float32Array;
|
|
1048
2017
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
* half-width and half-height given by `radii`.
|
|
2018
|
+
* `true` when zero grid cells exceeded $\rho_{\max}$ and the solve exited early.
|
|
1051
2019
|
*/
|
|
1052
|
-
|
|
2020
|
+
readonly earlyExitNoExcess: boolean;
|
|
1053
2021
|
/**
|
|
1054
|
-
*
|
|
2022
|
+
* Discrete Parseval variational energy $\mathcal{L}_{\mathrm{dens}} \ge 0$.
|
|
1055
2023
|
*/
|
|
1056
|
-
|
|
2024
|
+
readonly energy: number;
|
|
1057
2025
|
/**
|
|
1058
|
-
*
|
|
2026
|
+
* Fraction of active interior grid cells where $\rho_V > \rho_{\max}$.
|
|
1059
2027
|
*/
|
|
1060
|
-
|
|
2028
|
+
readonly excessFraction: number;
|
|
1061
2029
|
/**
|
|
1062
|
-
*
|
|
2030
|
+
* Integrated excess density mass $\int \delta\rho(p)\,dp \in [0, 1]$.
|
|
1063
2031
|
*/
|
|
1064
|
-
|
|
2032
|
+
readonly excessMass: number;
|
|
1065
2033
|
/**
|
|
1066
|
-
*
|
|
2034
|
+
* Number of 2D R2C/C2R FFT calls executed (`0`, `2`, `4`, or `6`).
|
|
1067
2035
|
*/
|
|
1068
|
-
|
|
2036
|
+
readonly fft2dCalls: number;
|
|
1069
2037
|
/**
|
|
1070
|
-
*
|
|
2038
|
+
* Active interior grid dimension $G$.
|
|
1071
2039
|
*/
|
|
1072
|
-
readonly
|
|
2040
|
+
readonly gridDim: number;
|
|
1073
2041
|
/**
|
|
1074
|
-
*
|
|
2042
|
+
* Effective screening wavenumber $\kappa_0$ used.
|
|
1075
2043
|
*/
|
|
1076
|
-
readonly
|
|
2044
|
+
readonly kappaUsed: number;
|
|
1077
2045
|
/**
|
|
1078
|
-
*
|
|
2046
|
+
* Peak smoothed density $\max_p \rho_V(p)$ on the grid.
|
|
1079
2047
|
*/
|
|
1080
|
-
readonly
|
|
2048
|
+
readonly maxDensity: number;
|
|
1081
2049
|
/**
|
|
1082
|
-
*
|
|
2050
|
+
* Padded FFT dimension $G_{\mathrm{pad}}$.
|
|
1083
2051
|
*/
|
|
1084
|
-
readonly
|
|
2052
|
+
readonly padDim: number;
|
|
1085
2053
|
/**
|
|
1086
|
-
*
|
|
2054
|
+
* Effective upper density threshold $\rho_{\max}$ used.
|
|
1087
2055
|
*/
|
|
1088
|
-
readonly
|
|
2056
|
+
readonly rhoMaxUsed: number;
|
|
1089
2057
|
/**
|
|
1090
|
-
*
|
|
2058
|
+
* Effective Gaussian smoothing width $\sigma_0$ used.
|
|
1091
2059
|
*/
|
|
1092
|
-
readonly
|
|
2060
|
+
readonly sigmaUsed: number;
|
|
1093
2061
|
}
|
|
1094
2062
|
|
|
1095
2063
|
/**
|
|
@@ -1147,6 +2115,20 @@ export class SgdSolver {
|
|
|
1147
2115
|
* Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
|
|
1148
2116
|
*/
|
|
1149
2117
|
static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, k_or_options: any, min_dist: number | null | undefined, t_max_or_options: any, eps?: number | null, kind?: string | null, step_scale?: number | null, seed?: number | null): SgdSolver;
|
|
2118
|
+
/**
|
|
2119
|
+
* Constructs a 3-tier `PaCMAP-Graph` solver coupled with a coarse Louvain area-reserved
|
|
2120
|
+
* backbone initialization and pure-Rust pivoted `RHGH` landmarks.
|
|
2121
|
+
*/
|
|
2122
|
+
static pacmapGraphWithBackbone(graph: CsrGraph, options: any): PacmapBackboneResult;
|
|
2123
|
+
/**
|
|
2124
|
+
* Constructs a 3-tier `PaCMAP-Graph` Adam layout solver using a flat row-major
|
|
2125
|
+
* `(num_nodes, num_landmarks)` landmark distance table.
|
|
2126
|
+
*/
|
|
2127
|
+
static pacmapGraphWithLandmarkDistances(graph: CsrGraph, landmark_distances: Float64Array | number[], num_landmarks: number, options: any): SgdSolver;
|
|
2128
|
+
/**
|
|
2129
|
+
* Constructs a 3-tier `PaCMAP-Graph` Adam layout solver using precomputed `DogVaradhanLandmarks`.
|
|
2130
|
+
*/
|
|
2131
|
+
static pacmapGraphWithLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
|
|
1150
2132
|
/**
|
|
1151
2133
|
* Constructs a 3-tier `PaCMAP-Graph` (`NB` / `MN` / `FP`) Adam layout solver.
|
|
1152
2134
|
*/
|
|
@@ -1238,6 +2220,39 @@ export class SgdSolver {
|
|
|
1238
2220
|
readonly totalIterations: number;
|
|
1239
2221
|
}
|
|
1240
2222
|
|
|
2223
|
+
/**
|
|
2224
|
+
* Extracted canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays (`u < v`).
|
|
2225
|
+
*/
|
|
2226
|
+
export class Sparse12HopPairs {
|
|
2227
|
+
private constructor();
|
|
2228
|
+
free(): void;
|
|
2229
|
+
[Symbol.dispose](): void;
|
|
2230
|
+
/**
|
|
2231
|
+
* Returns the number of unique undirected 1-hop pairs (`u1 < v1`).
|
|
2232
|
+
*/
|
|
2233
|
+
readonly num1hop: number;
|
|
2234
|
+
/**
|
|
2235
|
+
* Returns the number of unique undirected 2-hop pairs (`u2 < v2`).
|
|
2236
|
+
*/
|
|
2237
|
+
readonly num2hop: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Returns a copy of 1-hop source vertex indices (`Uint32Array`).
|
|
2240
|
+
*/
|
|
2241
|
+
readonly u1: Uint32Array;
|
|
2242
|
+
/**
|
|
2243
|
+
* Returns a copy of 2-hop source vertex indices (`Uint32Array`).
|
|
2244
|
+
*/
|
|
2245
|
+
readonly u2: Uint32Array;
|
|
2246
|
+
/**
|
|
2247
|
+
* Returns a copy of 1-hop target vertex indices (`Uint32Array`).
|
|
2248
|
+
*/
|
|
2249
|
+
readonly v1: Uint32Array;
|
|
2250
|
+
/**
|
|
2251
|
+
* Returns a copy of 2-hop target vertex indices (`Uint32Array`).
|
|
2252
|
+
*/
|
|
2253
|
+
readonly v2: Uint32Array;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
1241
2256
|
/**
|
|
1242
2257
|
* Diagnostics emitted by `SgdSolver.sparseBarrierFromLandmarks` and `SgdSolver.sparseBarrierDog`.
|
|
1243
2258
|
*/
|
|
@@ -1325,7 +2340,7 @@ export class SpatialIntruderRefiner {
|
|
|
1325
2340
|
/**
|
|
1326
2341
|
* Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
|
|
1327
2342
|
*/
|
|
1328
|
-
constructor(graph: CsrGraph, rounds_or_options: any, k_cap?: number | null, margin_scale?: number | null, w_anchor?: number | null, w_fn?: number | null, w_fp?: number | null, fn_shrink?: number | null, round_decay?: number | null, t_max?: number | null, eps?: number | null, hinge_fp?: boolean | null, seed?: number | null);
|
|
2343
|
+
constructor(graph: CsrGraph, rounds_or_options: any, k_cap?: number | null, margin_scale?: number | null, w_anchor?: number | null, w_fn?: number | null, w_fp?: number | null, fn_shrink?: number | null, round_decay?: number | null, t_max?: number | null, eps?: number | null, hinge_fp?: boolean | null, seed?: number | null, w_anchor2?: number | null, k_cap_decay?: number | null, k_cap_min?: number | null, min_sep_ratio?: number | null, w_sep?: number | null);
|
|
1329
2344
|
/**
|
|
1330
2345
|
* Executes up to `steps` refinement rounds on `layout` in place.
|
|
1331
2346
|
*/
|
|
@@ -1334,6 +2349,10 @@ export class SpatialIntruderRefiner {
|
|
|
1334
2349
|
* Runs refinement rounds to completion or early convergence on `layout` in place.
|
|
1335
2350
|
*/
|
|
1336
2351
|
run(layout: Layout2d): string;
|
|
2352
|
+
/**
|
|
2353
|
+
* Updates the active-set neighborhood cap `kCap` for subsequent refinement rounds.
|
|
2354
|
+
*/
|
|
2355
|
+
setKCap(k_cap: number): void;
|
|
1337
2356
|
/**
|
|
1338
2357
|
* Returns cumulative and per-round diagnostic statistics.
|
|
1339
2358
|
*/
|
|
@@ -1342,6 +2361,10 @@ export class SpatialIntruderRefiner {
|
|
|
1342
2361
|
* Executes one active-set refinement round on `layout` in place.
|
|
1343
2362
|
*/
|
|
1344
2363
|
step(layout: Layout2d): string;
|
|
2364
|
+
/**
|
|
2365
|
+
* Returns the current dynamic active-set neighborhood cap `kCap`.
|
|
2366
|
+
*/
|
|
2367
|
+
readonly currentKCap: number;
|
|
1345
2368
|
/**
|
|
1346
2369
|
* Returns `true` when refinement has converged or completed.
|
|
1347
2370
|
*/
|
|
@@ -1387,6 +2410,10 @@ export class SpatialRefinerRoundStats {
|
|
|
1387
2410
|
* Returns the total active pair count passed to the inner SGD pass.
|
|
1388
2411
|
*/
|
|
1389
2412
|
readonly nPairsTotal: number;
|
|
2413
|
+
/**
|
|
2414
|
+
* Returns the count of active short-range separation hinge pairs.
|
|
2415
|
+
*/
|
|
2416
|
+
readonly nSep: number;
|
|
1390
2417
|
/**
|
|
1391
2418
|
* Returns the 1-indexed refinement round number.
|
|
1392
2419
|
*/
|
|
@@ -1440,6 +2467,10 @@ export class SpatialRefinerStats {
|
|
|
1440
2467
|
* Returns cumulative total active pairs across executed rounds.
|
|
1441
2468
|
*/
|
|
1442
2469
|
readonly nPairsTotal: number;
|
|
2470
|
+
/**
|
|
2471
|
+
* Returns cumulative short-range separation hinge pairs across executed rounds.
|
|
2472
|
+
*/
|
|
2473
|
+
readonly nSepTotal: number;
|
|
1443
2474
|
/**
|
|
1444
2475
|
* Returns the number of active refinement rounds executed.
|
|
1445
2476
|
*/
|
|
@@ -1662,6 +2693,10 @@ export class TsNetSolver {
|
|
|
1662
2693
|
* Constructs a `TsNetSolver` from a `CsrGraph` using Partial BFS $k$-NN and a uniform perplexity.
|
|
1663
2694
|
*/
|
|
1664
2695
|
static fromGraphPartialBfs(graph: CsrGraph, k: number | null | undefined, uniform_perplexity: number | null | undefined, backend_or_options: any, iterations_stage1: number | null | undefined, iterations_stage2: number | null | undefined, iterations_stage3: number | null | undefined, learning_rate: number | null | undefined, exaggeration: number | null | undefined, lambda_c_stage1: number | null | undefined, lambda_c_stage2: number | null | undefined, lambda_c_stage3: number | null | undefined, lambda_r_stage3: number | null | undefined, momentum: number | null | undefined, epsilon_r: number | null | undefined, theta: number | null | undefined, power: number | null | undefined, sigma_iters: number | null | undefined, sigma_tolerance: number | null | undefined, row_normalize: boolean | null | undefined, seed: number | null | undefined, intervals: number | null | undefined, interpolation_order: any, min_grid_dim?: number | null, max_grid_dim?: number | null): TsNetSolver;
|
|
2696
|
+
/**
|
|
2697
|
+
* Constructs a `TsNetSolver` from a `CsrGraph` using direct row-normalized `A1 + w2 * A2` affinity.
|
|
2698
|
+
*/
|
|
2699
|
+
static fromGraphRowNormalized(graph: CsrGraph, w2_or_options: any, max_2hop_per_node: number | null | undefined, backend_or_options: any, iterations_stage1: number | null | undefined, iterations_stage2: number | null | undefined, iterations_stage3: number | null | undefined, learning_rate: number | null | undefined, exaggeration: number | null | undefined, lambda_c_stage1: number | null | undefined, lambda_c_stage2: number | null | undefined, lambda_c_stage3: number | null | undefined, lambda_r_stage3: number | null | undefined, momentum: number | null | undefined, epsilon_r: number | null | undefined, theta: number | null | undefined, seed: number | null | undefined, intervals: number | null | undefined, interpolation_order: any, min_grid_dim?: number | null, max_grid_dim?: number | null, degree_beta?: number | null): TsNetSolver;
|
|
1665
2700
|
/**
|
|
1666
2701
|
* Constructs a `TsNetSolver` from a `KnnGraph` and optional per-node `perplexities`.
|
|
1667
2702
|
*/
|
|
@@ -1764,6 +2799,18 @@ export class TwoHopKnnResult {
|
|
|
1764
2799
|
* Returns the mean 1+2-hop neighborhood size across all vertices.
|
|
1765
2800
|
*/
|
|
1766
2801
|
readonly avgDeg2: number;
|
|
2802
|
+
/**
|
|
2803
|
+
* Returns the number of stored 1-hop directed neighbor entries.
|
|
2804
|
+
*/
|
|
2805
|
+
readonly n1hop: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* Returns the number of stored 2-hop directed neighbor entries.
|
|
2808
|
+
*/
|
|
2809
|
+
readonly n2hop: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* Returns the number of vertices whose 2-hop expansion was truncated by `max2hopPerNode`.
|
|
2812
|
+
*/
|
|
2813
|
+
readonly nTruncated2hop: number;
|
|
1767
2814
|
/**
|
|
1768
2815
|
* Returns the total number of stored neighbor entries.
|
|
1769
2816
|
*/
|
|
@@ -1822,6 +2869,22 @@ export class YifanHuSolver {
|
|
|
1822
2869
|
readonly totalIterations: number;
|
|
1823
2870
|
}
|
|
1824
2871
|
|
|
2872
|
+
/**
|
|
2873
|
+
* Computes Adjusted Patch Normalized Information Gain (`Adjusted Patch-NIG`).
|
|
2874
|
+
*/
|
|
2875
|
+
export function adjustedPatchNig(layout: Layout2d, community_labels: Uint32Array | number[], patch_radius?: number | null, canvas_size?: number | null, pad_frac?: number | null, seed?: number | null): number;
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* Computes multi-scale Adjusted Patch-NIG across `radii` (default `[2, 8, 32]`).
|
|
2879
|
+
*/
|
|
2880
|
+
export function adjustedPatchNigMultiscale(layout: Layout2d, community_labels: Uint32Array | number[], radii?: Uint32Array | number[] | null, canvas_size?: number | null, pad_frac?: number | null, seed?: number | null): Float64Array;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Aligns fine-level cluster centroids toward `coarseLayout` via rigid per-cluster translation
|
|
2884
|
+
* in place without rigid disk containment.
|
|
2885
|
+
*/
|
|
2886
|
+
export function alignClusteredCentroids(fine_layout: Layout2d, coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], gamma_tether?: number | null): void;
|
|
2887
|
+
|
|
1825
2888
|
/**
|
|
1826
2889
|
* Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
|
|
1827
2890
|
*/
|
|
@@ -1832,6 +2895,11 @@ export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null):
|
|
|
1832
2895
|
*/
|
|
1833
2896
|
export function angularResolutionV6(graph: CsrGraph, layout: Layout2d): number;
|
|
1834
2897
|
|
|
2898
|
+
/**
|
|
2899
|
+
* 5b. Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
|
|
2900
|
+
*/
|
|
2901
|
+
export function anisotropicLaplacian(graph: CsrGraph, alpha?: number | null, beta?: number | null, degree_reg?: number | null, degree_cap?: number | null, reweighted_degree_norm?: boolean | null): AnisotropicLaplacianResult;
|
|
2902
|
+
|
|
1835
2903
|
/**
|
|
1836
2904
|
* 30. Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
|
|
1837
2905
|
* returning the applied distance floor.
|
|
@@ -1853,6 +2921,11 @@ export function assignLayers(graph: CsrGraph, method?: string | null): Uint32Arr
|
|
|
1853
2921
|
*/
|
|
1854
2922
|
export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
|
|
1855
2923
|
|
|
2924
|
+
/**
|
|
2925
|
+
* 9b. Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
|
|
2926
|
+
*/
|
|
2927
|
+
export function buildCapped12hopKnn(graph: CsrGraph, max_2hop_per_node?: number | null, seed?: number | null): TwoHopKnnResult;
|
|
2928
|
+
|
|
1856
2929
|
/**
|
|
1857
2930
|
* 29. Builds a sorted symmetric CSR `KnnGraph` from 1-hop and 2-hop pair distances enforcing
|
|
1858
2931
|
* strict 1-hop priority ($d_1 < \mathrm{tier2Margin} \cdot d_2$ and $d_1 < d_2$).
|
|
@@ -1880,16 +2953,33 @@ export function buildRerankKnn(coords: Float64Array | number[], num_nodes: numbe
|
|
|
1880
2953
|
*/
|
|
1881
2954
|
export function chebyshevDogJlEmbedding(graph: CsrGraph, jl_dim?: number | null, degree?: number | null, seed?: number | null, degree_normalize?: boolean | null, eps_psd?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null): Float64Array;
|
|
1882
2955
|
|
|
2956
|
+
/**
|
|
2957
|
+
* 7b. Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
|
|
2958
|
+
* on an arbitrary symmetric PSD `CsrMatrix` with dynamic `[0, lambdaMax]` scaling.
|
|
2959
|
+
*/
|
|
2960
|
+
export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, jl_dim?: number | null, degree?: number | null, seed?: number | null, eps_psd?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, lambda_max?: number | null, lanczos_steps?: number | null, safety_factor?: number | null, scale_vec?: Float64Array | number[] | null): Float64Array;
|
|
2961
|
+
|
|
1883
2962
|
/**
|
|
1884
2963
|
* 6. Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
|
|
1885
2964
|
*/
|
|
1886
2965
|
export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], num_cols: number, t: number, degree?: number | null, lambda_max?: number | null): Float64Array;
|
|
1887
2966
|
|
|
2967
|
+
/**
|
|
2968
|
+
* 6b. Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
|
|
2969
|
+
* for an arbitrary symmetric PSD `CsrMatrix` with dynamic `[0, lambdaMax]` scaling.
|
|
2970
|
+
*/
|
|
2971
|
+
export function chebyshevHeatSpmvMatrix(matrix: CsrMatrix, vectors: Float64Array | number[], num_cols: number, t: number, degree?: number | null, lambda_max?: number | null, lanczos_steps?: number | null, safety_factor?: number | null, seed?: number | null): Float64Array;
|
|
2972
|
+
|
|
1888
2973
|
/**
|
|
1889
2974
|
* 20. Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
|
|
1890
2975
|
*/
|
|
1891
2976
|
export function classicalMds2d(graph: CsrGraph): Layout2d;
|
|
1892
2977
|
|
|
2978
|
+
/**
|
|
2979
|
+
* Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
|
|
2980
|
+
*/
|
|
2981
|
+
export function coarseBackboneInit(graph: CsrGraph, options: any): CoarseBackboneResult;
|
|
2982
|
+
|
|
1893
2983
|
/**
|
|
1894
2984
|
* Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
|
|
1895
2985
|
*/
|
|
@@ -1905,6 +2995,12 @@ export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
|
|
|
1905
2995
|
*/
|
|
1906
2996
|
export function computeDiffusionEmbedding(graph: CsrGraph, dim?: number | null, p?: number | null, t?: number | null, tol?: number | null, max_iters?: number | null, seed?: number | null): SpectralEmbeddingResult;
|
|
1907
2997
|
|
|
2998
|
+
/**
|
|
2999
|
+
* Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
|
|
3000
|
+
* (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
|
|
3001
|
+
*/
|
|
3002
|
+
export function computeEffectiveResistances(graph: CsrGraph, options: any): EffectiveResistanceResult;
|
|
3003
|
+
|
|
1908
3004
|
/**
|
|
1909
3005
|
* 16. Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
|
|
1910
3006
|
*/
|
|
@@ -1930,11 +3026,22 @@ export function computeMedian2hopPerplexity(graph: CsrGraph, c?: number | null,
|
|
|
1930
3026
|
*/
|
|
1931
3027
|
export function computeNodewise2hopPerplexities(graph: CsrGraph, c?: number | null, min_perplexity?: number | null, max_perplexity?: number | null): Float64Array;
|
|
1932
3028
|
|
|
3029
|
+
/**
|
|
3030
|
+
* Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
|
|
3031
|
+
*/
|
|
3032
|
+
export function computePivotedRhghLandmarks(graph: CsrGraph, options: any): RhghLandmarksResult;
|
|
3033
|
+
|
|
1933
3034
|
/**
|
|
1934
3035
|
* 19. Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
|
|
1935
3036
|
*/
|
|
1936
3037
|
export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, degree?: number | null, num_landmarks?: number | null, seed?: number | null, degree_normalize?: boolean | null, p_exp?: number | null, eps_psd?: number | null, t_coarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, beta_floor?: number | null): DogVaradhanLandmarks;
|
|
1937
3038
|
|
|
3039
|
+
/**
|
|
3040
|
+
* 19b. Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
|
|
3041
|
+
* with dynamic `[0, lambdaMax]` spectrum scaling.
|
|
3042
|
+
*/
|
|
3043
|
+
export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, lambda_max?: number | null, degree?: number | null, num_landmarks?: number | null, min_degree?: number | null, jl_dim?: number | null, seed?: number | null, degree_normalize?: boolean | null, p_exp?: number | null, eps_psd?: number | null, t_coarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, beta_floor?: number | null): DogVaradhanLandmarks;
|
|
3044
|
+
|
|
1938
3045
|
/**
|
|
1939
3046
|
* 24. Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
|
|
1940
3047
|
*/
|
|
@@ -1955,6 +3062,11 @@ export function crossingEdgesTorus(graph: CsrGraph, layout: Layout2d): TorusCros
|
|
|
1955
3062
|
*/
|
|
1956
3063
|
export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
|
|
1957
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
|
|
3067
|
+
*/
|
|
3068
|
+
export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
|
|
3069
|
+
|
|
1958
3070
|
/**
|
|
1959
3071
|
* Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
|
|
1960
3072
|
* returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
|
|
@@ -1990,13 +3102,18 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
|
|
|
1990
3102
|
/**
|
|
1991
3103
|
* Selectively evaluates only the quality metrics listed in `targets`, skipping unrequested work.
|
|
1992
3104
|
*/
|
|
1993
|
-
export function evaluateMetrics(graph: CsrGraph, layout: Layout2d, targets: any, num_pivots?: number | null, num_samples?: number | null, seed?: number | null, ideal_edge_length?: number | null): MetricReport;
|
|
3105
|
+
export function evaluateMetrics(graph: CsrGraph, layout: Layout2d, targets: any, num_pivots?: number | null, num_samples?: number | null, seed?: number | null, ideal_edge_length?: number | null, community_labels?: Uint32Array | number[] | null, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, patch_radius?: number | null, canvas_size?: number | null, pad_frac?: number | null): MetricReport;
|
|
1994
3106
|
|
|
1995
3107
|
/**
|
|
1996
3108
|
* 8. Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
|
|
1997
3109
|
*/
|
|
1998
3110
|
export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
|
|
1999
3111
|
|
|
3112
|
+
/**
|
|
3113
|
+
* 8b. Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
|
|
3114
|
+
*/
|
|
3115
|
+
export function extractSparse1hop2hopPairs(graph: CsrGraph, max_2hop_per_node?: number | null, seed?: number | null): Sparse12HopPairs;
|
|
3116
|
+
|
|
2000
3117
|
/**
|
|
2001
3118
|
* 17. Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
|
|
2002
3119
|
*/
|
|
@@ -2018,6 +3135,11 @@ export function gabrielGraphPropertyV6(graph: CsrGraph, layout: Layout2d): numbe
|
|
|
2018
3135
|
*/
|
|
2019
3136
|
export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
|
|
2020
3137
|
|
|
3138
|
+
/**
|
|
3139
|
+
* 27b. Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
|
|
3140
|
+
*/
|
|
3141
|
+
export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, w2?: number | null, max_2hop_per_node?: number | null, degree_beta?: number | null, seed?: number | null): SparseProbabilities;
|
|
3142
|
+
|
|
2021
3143
|
/**
|
|
2022
3144
|
* 27. Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
|
|
2023
3145
|
*/
|
|
@@ -2052,16 +3174,45 @@ export function korenSpectralInit(graph: CsrGraph, target_std: any, tol?: number
|
|
|
2052
3174
|
export function labelPropagation(graph: CsrGraph, max_iters?: number | null, seed?: number | null): Uint32Array;
|
|
2053
3175
|
|
|
2054
3176
|
/**
|
|
2055
|
-
*
|
|
2056
|
-
|
|
3177
|
+
* Computes Landmark-Stratified Random Triplet Accuracy (`L-Stratified-RTA`) in `[0.0, 1.0]`.
|
|
3178
|
+
*/
|
|
3179
|
+
export function landmarkStratifiedRta(graph: CsrGraph, layout: Layout2d, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, seed?: number | null): number;
|
|
3180
|
+
|
|
3181
|
+
/**
|
|
3182
|
+
* Computes Landmark-Stratified Random Triplet Accuracy with detailed metadata ([`RtaEvaluation`]).
|
|
3183
|
+
*/
|
|
3184
|
+
export function landmarkStratifiedRtaDetail(graph: CsrGraph, layout: Layout2d, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, seed?: number | null): RtaEvaluation;
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* Computes Landmark-Stratified RTA from a flat row-major `(numLandmarks * N)` `Uint32Array` hop table.
|
|
3188
|
+
*/
|
|
3189
|
+
export function landmarkStratifiedRtaFromLandmarks(layout: Layout2d, landmark_ids: Uint32Array | number[], landmark_dists: Uint32Array | number[], num_triplets?: number | null, seed?: number | null): RtaEvaluation;
|
|
3190
|
+
|
|
3191
|
+
/**
|
|
3192
|
+
* Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
|
|
3193
|
+
*/
|
|
3194
|
+
export function layoutDegeneracy(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
|
|
2057
3198
|
*/
|
|
2058
|
-
export function
|
|
3199
|
+
export function louvainCoarsen(graph: CsrGraph, options: any): CoarsenedHierarchyResult;
|
|
2059
3200
|
|
|
2060
3201
|
/**
|
|
2061
3202
|
* Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
|
|
2062
3203
|
*/
|
|
2063
3204
|
export function louvainCommunities(graph: CsrGraph, max_passes?: number | null, resolution?: number | null, min_modularity_gain?: number | null, seed?: number | null): LouvainResult;
|
|
2064
3205
|
|
|
3206
|
+
/**
|
|
3207
|
+
* Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
|
|
3208
|
+
*/
|
|
3209
|
+
export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
|
|
3213
|
+
*/
|
|
3214
|
+
export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
|
|
3215
|
+
|
|
2065
3216
|
/**
|
|
2066
3217
|
* Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
|
|
2067
3218
|
*/
|
|
@@ -2105,6 +3256,11 @@ export function pivotMdsInit(graph: CsrGraph, num_pivots: number | null | undefi
|
|
|
2105
3256
|
*/
|
|
2106
3257
|
export function poincareDistance(x1: number, y1: number, x2: number, y2: number): number;
|
|
2107
3258
|
|
|
3259
|
+
/**
|
|
3260
|
+
* Computes Poincaré disk Möbius addition `(x1, y1) (+) (x2, y2)` inside the open unit disk, returning `[x, y]`.
|
|
3261
|
+
*/
|
|
3262
|
+
export function poincareMobiusAdd(x1: number, y1: number, x2: number, y2: number): Float64Array;
|
|
3263
|
+
|
|
2108
3264
|
/**
|
|
2109
3265
|
* Computes PRISM layout-preservation distortion (`sigmaDist`, `sigmaDisp`) comparing `originalLayout`
|
|
2110
3266
|
* and `adjustedLayout`.
|
|
@@ -2127,6 +3283,11 @@ export function project1d(coords: Float32Array, constraints: any): Float32Array;
|
|
|
2127
3283
|
*/
|
|
2128
3284
|
export function projectClusteredLayout(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], spread_radius?: number | null, seed?: number | null): Layout2d;
|
|
2129
3285
|
|
|
3286
|
+
/**
|
|
3287
|
+
* Projects a coarse 2D `Layout2d` (`f32`) onto fine vertices using per-cluster `clusterRadii`.
|
|
3288
|
+
*/
|
|
3289
|
+
export function projectClusteredLayoutWithRadii(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], cluster_radii: Float64Array | number[], jitter_scale?: number | null, seed?: number | null): Layout2d;
|
|
3290
|
+
|
|
2130
3291
|
/**
|
|
2131
3292
|
* Eliminates overlaps between axis-aligned cluster bounding boxes in `layout` in place while
|
|
2132
3293
|
* rigidly preserving relative coordinates within each cluster.
|
|
@@ -2172,10 +3333,36 @@ export function removeCycles(graph: CsrGraph): CsrGraph;
|
|
|
2172
3333
|
export function representativeMds(distances_to_reps: Float64Array | number[], num_nodes: number, num_reps: number, dims: number): LayoutNd;
|
|
2173
3334
|
|
|
2174
3335
|
/**
|
|
2175
|
-
*
|
|
3336
|
+
* Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
|
|
3337
|
+
*/
|
|
3338
|
+
export function resistanceCurvatureFlow(graph: CsrGraph, options: any): ResistanceCurvatureFlowResult;
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* 22b. Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
|
|
3342
|
+
*/
|
|
3343
|
+
export function robustNormalizeLayout2d(layout: Layout2d, target_std?: number | null, quantile?: number | null, seed?: number | null): void;
|
|
3344
|
+
|
|
3345
|
+
/**
|
|
3346
|
+
* Estimates edge crossings in $O(\text{numSamples})$ time (`numSamples` default `4096`, `seed` default `42`).
|
|
2176
3347
|
*/
|
|
2177
3348
|
export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
2178
3349
|
|
|
3350
|
+
/**
|
|
3351
|
+
* Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
|
|
3352
|
+
* (`numSamples` default `4096`, `seed` default `42`).
|
|
3353
|
+
*/
|
|
3354
|
+
export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* Estimates 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]` via deterministic vertex sampling (`numSamples` default `4096`, `seed` default `42`).
|
|
3358
|
+
*/
|
|
3359
|
+
export function sampledNp1(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
3360
|
+
|
|
3361
|
+
/**
|
|
3362
|
+
* Estimates 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]` via deterministic vertex sampling (`numSamples` default `4096`, `seed` default `42`).
|
|
3363
|
+
*/
|
|
3364
|
+
export function sampledNp2(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
3365
|
+
|
|
2179
3366
|
/**
|
|
2180
3367
|
* Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) from `numPivots` (default `64`)
|
|
2181
3368
|
* deterministic BFS sources with optional safe-integer `seed` (default `42`).
|
|
@@ -2268,13 +3455,21 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
2268
3455
|
|
|
2269
3456
|
export interface InitOutput {
|
|
2270
3457
|
readonly memory: WebAssembly.Memory;
|
|
3458
|
+
readonly __wbg_amgpcgbatchresult_free: (a: number, b: number) => void;
|
|
3459
|
+
readonly __wbg_amgpcgsolver_free: (a: number, b: number) => void;
|
|
3460
|
+
readonly __wbg_amgpcgsolveresult_free: (a: number, b: number) => void;
|
|
3461
|
+
readonly __wbg_anisotropiclaplacianresult_free: (a: number, b: number) => void;
|
|
3462
|
+
readonly __wbg_coarsebackboneresult_free: (a: number, b: number) => void;
|
|
2271
3463
|
readonly __wbg_coarsenedgraphresult_free: (a: number, b: number) => void;
|
|
3464
|
+
readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
|
|
2272
3465
|
readonly __wbg_crossingpair_free: (a: number, b: number) => void;
|
|
2273
3466
|
readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
|
|
2274
3467
|
readonly __wbg_csrgraph_free: (a: number, b: number) => void;
|
|
3468
|
+
readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
|
|
2275
3469
|
readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
|
|
2276
3470
|
readonly __wbg_dogstats_free: (a: number, b: number) => void;
|
|
2277
3471
|
readonly __wbg_dogvaradhanlandmarks_free: (a: number, b: number) => void;
|
|
3472
|
+
readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
|
|
2278
3473
|
readonly __wbg_eigenresult_free: (a: number, b: number) => void;
|
|
2279
3474
|
readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
|
|
2280
3475
|
readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
|
|
@@ -2287,14 +3482,25 @@ export interface InitOutput {
|
|
|
2287
3482
|
readonly __wbg_knngraph_free: (a: number, b: number) => void;
|
|
2288
3483
|
readonly __wbg_largestconnectedcomponentresult_free: (a: number, b: number) => void;
|
|
2289
3484
|
readonly __wbg_layout2d_free: (a: number, b: number) => void;
|
|
3485
|
+
readonly __wbg_layoutdegeneracy_free: (a: number, b: number) => void;
|
|
2290
3486
|
readonly __wbg_layoutnd_free: (a: number, b: number) => void;
|
|
2291
3487
|
readonly __wbg_louvainresult_free: (a: number, b: number) => void;
|
|
2292
3488
|
readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
|
|
2293
3489
|
readonly __wbg_metricreport_free: (a: number, b: number) => void;
|
|
3490
|
+
readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
|
|
3491
|
+
readonly __wbg_pacmapbackboneresult_free: (a: number, b: number) => void;
|
|
2294
3492
|
readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
|
|
2295
3493
|
readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
|
|
3494
|
+
readonly __wbg_resistancecurvatureflowresult_free: (a: number, b: number) => void;
|
|
3495
|
+
readonly __wbg_resistancecurvaturestep_free: (a: number, b: number) => void;
|
|
3496
|
+
readonly __wbg_rhghlandmarksresult_free: (a: number, b: number) => void;
|
|
3497
|
+
readonly __wbg_rtaevaluation_free: (a: number, b: number) => void;
|
|
3498
|
+
readonly __wbg_screenedpoissonfield2d_free: (a: number, b: number) => void;
|
|
3499
|
+
readonly __wbg_screenedpoissonrefiner_free: (a: number, b: number) => void;
|
|
3500
|
+
readonly __wbg_screenedpoissonresult_free: (a: number, b: number) => void;
|
|
2296
3501
|
readonly __wbg_separationconstraint_free: (a: number, b: number) => void;
|
|
2297
3502
|
readonly __wbg_sgdsolver_free: (a: number, b: number) => void;
|
|
3503
|
+
readonly __wbg_sparse12hoppairs_free: (a: number, b: number) => void;
|
|
2298
3504
|
readonly __wbg_sparsebarrierstats_free: (a: number, b: number) => void;
|
|
2299
3505
|
readonly __wbg_sparseprobabilities_free: (a: number, b: number) => void;
|
|
2300
3506
|
readonly __wbg_spatialintruderrefiner_free: (a: number, b: number) => void;
|
|
@@ -2309,32 +3515,113 @@ export interface InitOutput {
|
|
|
2309
3515
|
readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
|
|
2310
3516
|
readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
|
|
2311
3517
|
readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
|
|
3518
|
+
readonly adjustedPatchNig: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
3519
|
+
readonly adjustedPatchNigMultiscale: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
3520
|
+
readonly alignClusteredCentroids: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2312
3521
|
readonly allPairsBfs: (a: number, b: number, c: number, d: number) => void;
|
|
3522
|
+
readonly amgpcgbatchresult_allConverged: (a: number) => number;
|
|
3523
|
+
readonly amgpcgbatchresult_convergedPerCol: (a: number, b: number) => void;
|
|
3524
|
+
readonly amgpcgbatchresult_iterationsPerCol: (a: number, b: number) => void;
|
|
3525
|
+
readonly amgpcgbatchresult_maxIterationsUsed: (a: number) => number;
|
|
3526
|
+
readonly amgpcgbatchresult_maxRelativeResidual: (a: number) => number;
|
|
3527
|
+
readonly amgpcgbatchresult_maxResidualNorm: (a: number) => number;
|
|
3528
|
+
readonly amgpcgbatchresult_minIterationsUsed: (a: number) => number;
|
|
3529
|
+
readonly amgpcgbatchresult_ncols: (a: number) => number;
|
|
3530
|
+
readonly amgpcgbatchresult_numNodes: (a: number) => number;
|
|
3531
|
+
readonly amgpcgbatchresult_relativeResiduals: (a: number, b: number) => void;
|
|
3532
|
+
readonly amgpcgbatchresult_residualNorms: (a: number, b: number) => void;
|
|
3533
|
+
readonly amgpcgbatchresult_totalIterations: (a: number) => number;
|
|
3534
|
+
readonly amgpcgbatchresult_x: (a: number, b: number) => void;
|
|
3535
|
+
readonly amgpcgsolver_coarsestSize: (a: number) => number;
|
|
3536
|
+
readonly amgpcgsolver_converged: (a: number) => number;
|
|
3537
|
+
readonly amgpcgsolver_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: any) => void;
|
|
3538
|
+
readonly amgpcgsolver_fromCsrMatrix: (a: number, b: number, c: any) => void;
|
|
3539
|
+
readonly amgpcgsolver_fromGraphLaplacian: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
|
|
3540
|
+
readonly amgpcgsolver_fromGraphRegularizedLaplacian: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
3541
|
+
readonly amgpcgsolver_isFinished: (a: number) => number;
|
|
3542
|
+
readonly amgpcgsolver_iteration: (a: number) => number;
|
|
3543
|
+
readonly amgpcgsolver_maxLevelNnz: (a: number) => number;
|
|
3544
|
+
readonly amgpcgsolver_numLevels: (a: number) => number;
|
|
3545
|
+
readonly amgpcgsolver_numNodes: (a: number) => number;
|
|
3546
|
+
readonly amgpcgsolver_operatorComplexity: (a: number) => number;
|
|
3547
|
+
readonly amgpcgsolver_relativeResidual: (a: number) => number;
|
|
3548
|
+
readonly amgpcgsolver_residualNorm: (a: number) => number;
|
|
3549
|
+
readonly amgpcgsolver_run: (a: number, b: number) => void;
|
|
3550
|
+
readonly amgpcgsolver_runSteps: (a: number, b: number, c: number) => void;
|
|
3551
|
+
readonly amgpcgsolver_solution: (a: number, b: number) => void;
|
|
3552
|
+
readonly amgpcgsolver_solve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3553
|
+
readonly amgpcgsolver_solveBatch: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3554
|
+
readonly amgpcgsolver_startSolve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3555
|
+
readonly amgpcgsolver_status: (a: number, b: number) => void;
|
|
3556
|
+
readonly amgpcgsolver_step: (a: number, b: number) => void;
|
|
3557
|
+
readonly amgpcgsolver_totalIterations: (a: number) => number;
|
|
3558
|
+
readonly amgpcgsolveresult_converged: (a: number) => number;
|
|
3559
|
+
readonly amgpcgsolveresult_iterations: (a: number) => number;
|
|
3560
|
+
readonly amgpcgsolveresult_relativeResidual: (a: number) => number;
|
|
3561
|
+
readonly amgpcgsolveresult_residualNorm: (a: number) => number;
|
|
3562
|
+
readonly amgpcgsolveresult_status: (a: number, b: number) => void;
|
|
3563
|
+
readonly amgpcgsolveresult_x: (a: number, b: number) => void;
|
|
2313
3564
|
readonly angularResolutionV6: (a: number, b: number, c: number) => void;
|
|
3565
|
+
readonly anisotropicLaplacian: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3566
|
+
readonly anisotropiclaplacianresult_matrix: (a: number) => number;
|
|
3567
|
+
readonly anisotropiclaplacianresult_nullspace: (a: number, b: number) => void;
|
|
3568
|
+
readonly anisotropiclaplacianresult_outerScale: (a: number, b: number) => void;
|
|
2314
3569
|
readonly applyRelativeDistanceFloor: (a: number, b: number, c: number, d: any, e: number, f: number, g: any, h: number, i: number, j: any, k: number, l: number, m: number, n: number) => void;
|
|
2315
3570
|
readonly aspectRatioV6: (a: number, b: number) => void;
|
|
2316
3571
|
readonly assignLayers: (a: number, b: number, c: number, d: number) => void;
|
|
2317
3572
|
readonly bfsSingleSource: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3573
|
+
readonly buildCapped12hopKnn: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2318
3574
|
readonly buildGumap12hopPriorityCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
2319
3575
|
readonly buildHybridAdaptiveKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => void;
|
|
2320
3576
|
readonly buildPure2hopKnn: (a: number, b: number) => void;
|
|
2321
3577
|
readonly buildRerankKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2322
3578
|
readonly chebyshevDogJlEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => void;
|
|
3579
|
+
readonly chebyshevDogJlEmbeddingMatrix: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number) => void;
|
|
2323
3580
|
readonly chebyshevHeatSpmv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
3581
|
+
readonly chebyshevHeatSpmvMatrix: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
2324
3582
|
readonly classicalMds2d: (a: number, b: number) => void;
|
|
3583
|
+
readonly coarseBackboneInit: (a: number, b: number, c: any) => void;
|
|
3584
|
+
readonly coarsebackboneresult_coarseGraph: (a: number) => number;
|
|
3585
|
+
readonly coarsebackboneresult_coarseLayout: (a: number) => number;
|
|
3586
|
+
readonly coarsebackboneresult_coarseOverlapPairsFinal: (a: number) => number;
|
|
3587
|
+
readonly coarsebackboneresult_coarseOverlapPairsInitial: (a: number) => number;
|
|
3588
|
+
readonly coarsebackboneresult_coarseSizes: (a: number, b: number) => void;
|
|
3589
|
+
readonly coarsebackboneresult_fineLayout: (a: number) => number;
|
|
3590
|
+
readonly coarsebackboneresult_louvainLevels: (a: number) => number;
|
|
3591
|
+
readonly coarsebackboneresult_maxClusterSize: (a: number) => number;
|
|
3592
|
+
readonly coarsebackboneresult_maxRadius: (a: number) => number;
|
|
3593
|
+
readonly coarsebackboneresult_meanClusterSize: (a: number) => number;
|
|
3594
|
+
readonly coarsebackboneresult_medianLEdge: (a: number) => number;
|
|
3595
|
+
readonly coarsebackboneresult_nodeToCoarse: (a: number, b: number) => void;
|
|
3596
|
+
readonly coarsebackboneresult_numCoarseEdges: (a: number) => number;
|
|
3597
|
+
readonly coarsebackboneresult_numCoarseNodes: (a: number) => number;
|
|
3598
|
+
readonly coarsebackboneresult_numFineNodes: (a: number) => number;
|
|
3599
|
+
readonly coarsebackboneresult_radii: (a: number, b: number) => void;
|
|
3600
|
+
readonly coarsebackboneresult_scaleFactorApplied: (a: number) => number;
|
|
2325
3601
|
readonly coarsenGraph: (a: number, b: number, c: number, d: number) => void;
|
|
2326
3602
|
readonly coarsenedgraphresult_coarseSizes: (a: number, b: number) => void;
|
|
2327
3603
|
readonly coarsenedgraphresult_graph: (a: number) => number;
|
|
2328
3604
|
readonly coarsenedgraphresult_nodeToCoarse: (a: number, b: number) => void;
|
|
2329
3605
|
readonly coarsenedgraphresult_numClusters: (a: number) => number;
|
|
3606
|
+
readonly coarsenedhierarchyresult_coarseGraph: (a: number) => number;
|
|
3607
|
+
readonly coarsenedhierarchyresult_coarseSizes: (a: number, b: number) => void;
|
|
3608
|
+
readonly coarsenedhierarchyresult_levelModularities: (a: number, b: number) => void;
|
|
3609
|
+
readonly coarsenedhierarchyresult_levelNumClusters: (a: number, b: number) => void;
|
|
3610
|
+
readonly coarsenedhierarchyresult_levelResolutions: (a: number, b: number) => void;
|
|
3611
|
+
readonly coarsenedhierarchyresult_nodeToCoarse: (a: number, b: number) => void;
|
|
3612
|
+
readonly coarsenedhierarchyresult_numClusters: (a: number) => number;
|
|
3613
|
+
readonly coarsenedhierarchyresult_numLevels: (a: number) => number;
|
|
2330
3614
|
readonly compute2hopNeighborhoodSizes: (a: number, b: number) => void;
|
|
2331
3615
|
readonly computeDiffusionEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
3616
|
+
readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
|
|
2332
3617
|
readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2333
3618
|
readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
|
|
2334
3619
|
readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
2335
3620
|
readonly computeMedian2hopPerplexity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2336
3621
|
readonly computeNodewise2hopPerplexities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3622
|
+
readonly computePivotedRhghLandmarks: (a: number, b: number, c: any) => void;
|
|
2337
3623
|
readonly computeRegularizedDogVaradhanLandmarks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number) => void;
|
|
3624
|
+
readonly computeRegularizedDogVaradhanLandmarksFromMatrix: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number) => void;
|
|
2338
3625
|
readonly computeResistanceEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
2339
3626
|
readonly crossingEdges: (a: number, b: number, c: number) => void;
|
|
2340
3627
|
readonly crossingEdgesTorus: (a: number, b: number, c: number) => void;
|
|
@@ -2350,6 +3637,7 @@ export interface InitOutput {
|
|
|
2350
3637
|
readonly crossingsummary_angleCosSqSum: (a: number) => number;
|
|
2351
3638
|
readonly crossingsummary_count: (a: number) => number;
|
|
2352
3639
|
readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
|
|
3640
|
+
readonly crosslessness: (a: number, b: number, c: number) => void;
|
|
2353
3641
|
readonly csrgraph_degree: (a: number, b: number, c: number) => void;
|
|
2354
3642
|
readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
|
|
2355
3643
|
readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
|
|
@@ -2364,6 +3652,21 @@ export interface InitOutput {
|
|
|
2364
3652
|
readonly csrgraph_numEdges: (a: number) => number;
|
|
2365
3653
|
readonly csrgraph_numNodes: (a: number) => number;
|
|
2366
3654
|
readonly csrgraph_weights: (a: number, b: number) => void;
|
|
3655
|
+
readonly csrmatrix_diagonal: (a: number, b: number) => void;
|
|
3656
|
+
readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3657
|
+
readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3658
|
+
readonly csrmatrix_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3659
|
+
readonly csrmatrix_gershgorinSpectralBound: (a: number) => number;
|
|
3660
|
+
readonly csrmatrix_indices: (a: number, b: number) => void;
|
|
3661
|
+
readonly csrmatrix_indptr: (a: number, b: number) => void;
|
|
3662
|
+
readonly csrmatrix_isSymmetric: (a: number, b: number, c: number) => number;
|
|
3663
|
+
readonly csrmatrix_nnz: (a: number) => number;
|
|
3664
|
+
readonly csrmatrix_numNodes: (a: number) => number;
|
|
3665
|
+
readonly csrmatrix_scaleAndShift: (a: number, b: number, c: number, d: number) => void;
|
|
3666
|
+
readonly csrmatrix_spmv: (a: number, b: number, c: number, d: number) => void;
|
|
3667
|
+
readonly csrmatrix_toDense: (a: number, b: number) => void;
|
|
3668
|
+
readonly csrmatrix_trace: (a: number) => number;
|
|
3669
|
+
readonly csrmatrix_values: (a: number, b: number) => void;
|
|
2367
3670
|
readonly cycleEdges: (a: number, b: number) => void;
|
|
2368
3671
|
readonly delaunayToCsr: (a: number, b: number) => void;
|
|
2369
3672
|
readonly delaunayTriangulation: (a: number, b: number) => void;
|
|
@@ -2390,6 +3693,7 @@ export interface InitOutput {
|
|
|
2390
3693
|
readonly dogvaradhanlandmarks_betaAuto: (a: number) => number;
|
|
2391
3694
|
readonly dogvaradhanlandmarks_betaEff: (a: number) => number;
|
|
2392
3695
|
readonly dogvaradhanlandmarks_coarseTable: (a: number, b: number) => void;
|
|
3696
|
+
readonly dogvaradhanlandmarks_degree: (a: number) => number;
|
|
2393
3697
|
readonly dogvaradhanlandmarks_deltaPsd: (a: number) => number;
|
|
2394
3698
|
readonly dogvaradhanlandmarks_landmarks: (a: number, b: number) => void;
|
|
2395
3699
|
readonly dogvaradhanlandmarks_numLandmarks: (a: number) => number;
|
|
@@ -2400,14 +3704,30 @@ export interface InitOutput {
|
|
|
2400
3704
|
readonly dogvaradhanlandmarks_usedCoarseScaffold: (a: number) => number;
|
|
2401
3705
|
readonly drngPreservation: (a: number, b: number, c: number) => void;
|
|
2402
3706
|
readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3707
|
+
readonly effectiveresistanceresult_amgAllConverged: (a: number) => number;
|
|
3708
|
+
readonly effectiveresistanceresult_amgMaxRelativeResidual: (a: number) => number;
|
|
3709
|
+
readonly effectiveresistanceresult_amgTotalIterations: (a: number) => number;
|
|
3710
|
+
readonly effectiveresistanceresult_conductances: (a: number, b: number) => void;
|
|
3711
|
+
readonly effectiveresistanceresult_edgeLengths: (a: number, b: number) => void;
|
|
3712
|
+
readonly effectiveresistanceresult_edgeU: (a: number, b: number) => void;
|
|
3713
|
+
readonly effectiveresistanceresult_edgeV: (a: number, b: number) => void;
|
|
3714
|
+
readonly effectiveresistanceresult_effectiveResistances: (a: number, b: number) => void;
|
|
3715
|
+
readonly effectiveresistanceresult_expectedFoster: (a: number) => number;
|
|
3716
|
+
readonly effectiveresistanceresult_fosterRelErr: (a: number) => number;
|
|
3717
|
+
readonly effectiveresistanceresult_fosterSum: (a: number) => number;
|
|
3718
|
+
readonly effectiveresistanceresult_numComponents: (a: number) => number;
|
|
3719
|
+
readonly effectiveresistanceresult_numEdges: (a: number) => number;
|
|
3720
|
+
readonly effectiveresistanceresult_numNodes: (a: number) => number;
|
|
3721
|
+
readonly effectiveresistanceresult_usedExact: (a: number) => number;
|
|
2403
3722
|
readonly eigenresult_invSqrtDeg: (a: number, b: number) => void;
|
|
2404
3723
|
readonly eigenresult_lambdas: (a: number, b: number) => void;
|
|
2405
3724
|
readonly eigenresult_numModes: (a: number) => number;
|
|
2406
3725
|
readonly eigenresult_numNodes: (a: number) => number;
|
|
2407
3726
|
readonly eigenresult_usedDenseFallback: (a: number) => number;
|
|
2408
3727
|
readonly eigenresult_vectors: (a: number, b: number) => void;
|
|
2409
|
-
readonly evaluateMetrics: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
3728
|
+
readonly evaluateMetrics: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number) => void;
|
|
2410
3729
|
readonly extract1hop2hopCsr: (a: number, b: number) => void;
|
|
3730
|
+
readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2411
3731
|
readonly fdebsolver_edgeOffsets: (a: number, b: number) => void;
|
|
2412
3732
|
readonly fdebsolver_isFinished: (a: number) => number;
|
|
2413
3733
|
readonly fdebsolver_iteration: (a: number) => number;
|
|
@@ -2436,6 +3756,7 @@ export interface InitOutput {
|
|
|
2436
3756
|
readonly gabrielGraphEdges: (a: number, b: number) => void;
|
|
2437
3757
|
readonly gabrielGraphPropertyV6: (a: number, b: number, c: number) => void;
|
|
2438
3758
|
readonly generateLayeredConstraints: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3759
|
+
readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2439
3760
|
readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
|
|
2440
3761
|
readonly gumapsolver_a: (a: number) => number;
|
|
2441
3762
|
readonly gumapsolver_ab: (a: number, b: number) => void;
|
|
@@ -2443,6 +3764,7 @@ export interface InitOutput {
|
|
|
2443
3764
|
readonly gumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
|
|
2444
3765
|
readonly gumapsolver_fromGraphDog: (a: number, b: number, c: any, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number) => void;
|
|
2445
3766
|
readonly gumapsolver_fromKnn: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
|
|
3767
|
+
readonly gumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2446
3768
|
readonly gumapsolver_isFinished: (a: number) => number;
|
|
2447
3769
|
readonly gumapsolver_iteration: (a: number) => number;
|
|
2448
3770
|
readonly gumapsolver_numEdges: (a: number) => number;
|
|
@@ -2465,6 +3787,7 @@ export interface InitOutput {
|
|
|
2465
3787
|
readonly ibumapsolver_currentRho: (a: number) => number;
|
|
2466
3788
|
readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
|
|
2467
3789
|
readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
|
|
3790
|
+
readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2468
3791
|
readonly ibumapsolver_isFinished: (a: number) => number;
|
|
2469
3792
|
readonly ibumapsolver_iteration: (a: number) => number;
|
|
2470
3793
|
readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
|
|
@@ -2504,6 +3827,9 @@ export interface InitOutput {
|
|
|
2504
3827
|
readonly knngraph_numNodes: (a: number) => number;
|
|
2505
3828
|
readonly korenSpectralInit: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2506
3829
|
readonly labelPropagation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3830
|
+
readonly landmarkStratifiedRta: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3831
|
+
readonly landmarkStratifiedRtaDetail: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3832
|
+
readonly landmarkStratifiedRtaFromLandmarks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2507
3833
|
readonly largestconnectedcomponentresult_graph: (a: number) => number;
|
|
2508
3834
|
readonly largestconnectedcomponentresult_nodeIds: (a: number, b: number) => void;
|
|
2509
3835
|
readonly largestconnectedcomponentresult_originalNodeIds: (a: number, b: number) => void;
|
|
@@ -2522,6 +3848,19 @@ export interface InitOutput {
|
|
|
2522
3848
|
readonly layout2d_x: (a: number, b: number, c: number) => void;
|
|
2523
3849
|
readonly layout2d_y: (a: number, b: number, c: number) => void;
|
|
2524
3850
|
readonly layout2d_zeros: (a: number, b: number) => void;
|
|
3851
|
+
readonly layoutDegeneracy: (a: number, b: number, c: number) => void;
|
|
3852
|
+
readonly layoutdegeneracy_bboxHeight: (a: number) => number;
|
|
3853
|
+
readonly layoutdegeneracy_bboxWidth: (a: number) => number;
|
|
3854
|
+
readonly layoutdegeneracy_duplicateNodesF32: (a: number) => number;
|
|
3855
|
+
readonly layoutdegeneracy_duplicateNodesF64: (a: number) => number;
|
|
3856
|
+
readonly layoutdegeneracy_duplicateRatioF32: (a: number) => number;
|
|
3857
|
+
readonly layoutdegeneracy_duplicateRatioF64: (a: number) => number;
|
|
3858
|
+
readonly layoutdegeneracy_isBboxDegenerate: (a: number) => number;
|
|
3859
|
+
readonly layoutdegeneracy_numEdges: (a: number) => number;
|
|
3860
|
+
readonly layoutdegeneracy_numNodes: (a: number) => number;
|
|
3861
|
+
readonly layoutdegeneracy_toRecord: (a: number, b: number) => void;
|
|
3862
|
+
readonly layoutdegeneracy_zeroLengthEdgeRatio: (a: number) => number;
|
|
3863
|
+
readonly layoutdegeneracy_zeroLengthEdges: (a: number) => number;
|
|
2525
3864
|
readonly layoutnd_coordsLen: (a: number) => number;
|
|
2526
3865
|
readonly layoutnd_coordsPtr: (a: number) => number;
|
|
2527
3866
|
readonly layoutnd_copyCoords: (a: number, b: number) => void;
|
|
@@ -2532,16 +3871,18 @@ export interface InitOutput {
|
|
|
2532
3871
|
readonly layoutnd_len: (a: number) => number;
|
|
2533
3872
|
readonly layoutnd_numNodes: (a: number) => number;
|
|
2534
3873
|
readonly layoutnd_zeros: (a: number, b: number, c: number) => void;
|
|
2535
|
-
readonly
|
|
3874
|
+
readonly louvainCoarsen: (a: number, b: number, c: any) => void;
|
|
2536
3875
|
readonly louvainCommunities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2537
3876
|
readonly louvainresult_labels: (a: number, b: number) => void;
|
|
2538
3877
|
readonly louvainresult_modularity: (a: number) => number;
|
|
2539
3878
|
readonly louvainresult_numCommunities: (a: number) => number;
|
|
2540
3879
|
readonly louvainresult_passes: (a: number) => number;
|
|
2541
3880
|
readonly manifoldlayout2d_applyTangentStep: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3881
|
+
readonly manifoldlayout2d_centerPoincareCentroid: (a: number, b: number) => void;
|
|
2542
3882
|
readonly manifoldlayout2d_coords: (a: number, b: number) => void;
|
|
2543
3883
|
readonly manifoldlayout2d_fromCoords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2544
3884
|
readonly manifoldlayout2d_fromLayout: (a: number, b: number, c: number, d: number) => void;
|
|
3885
|
+
readonly manifoldlayout2d_fromLayoutScaled: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2545
3886
|
readonly manifoldlayout2d_geodesicDistance: (a: number, b: number, c: number, d: number) => void;
|
|
2546
3887
|
readonly manifoldlayout2d_hyperbolicPoincare: (a: number, b: number) => void;
|
|
2547
3888
|
readonly manifoldlayout2d_isAllFinite: (a: number) => number;
|
|
@@ -2550,7 +3891,11 @@ export interface InitOutput {
|
|
|
2550
3891
|
readonly manifoldlayout2d_len: (a: number) => number;
|
|
2551
3892
|
readonly manifoldlayout2d_manifold: (a: number, b: number) => void;
|
|
2552
3893
|
readonly manifoldlayout2d_numNodes: (a: number) => number;
|
|
3894
|
+
readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
|
|
2553
3895
|
readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
|
|
3896
|
+
readonly manifoldlayout2d_randomInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3897
|
+
readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
|
|
3898
|
+
readonly manifoldlayout2d_recenterPoincareAt: (a: number, b: number, c: number) => void;
|
|
2554
3899
|
readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2555
3900
|
readonly manifoldlayout2d_spherical: (a: number, b: number) => void;
|
|
2556
3901
|
readonly manifoldlayout2d_tangentDelta: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -2559,29 +3904,47 @@ export interface InitOutput {
|
|
|
2559
3904
|
readonly manifoldlayout2d_x: (a: number, b: number, c: number) => void;
|
|
2560
3905
|
readonly manifoldlayout2d_y: (a: number, b: number, c: number) => void;
|
|
2561
3906
|
readonly manifoldlayout2d_zeros: (a: number, b: number, c: number, d: number) => void;
|
|
3907
|
+
readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
|
|
2562
3908
|
readonly metricreport_angularResolution: (a: number, b: number) => void;
|
|
2563
3909
|
readonly metricreport_aspectRatio: (a: number, b: number) => void;
|
|
2564
3910
|
readonly metricreport_crossingAngle: (a: number, b: number) => void;
|
|
2565
3911
|
readonly metricreport_crossingNumber: (a: number) => number;
|
|
3912
|
+
readonly metricreport_crosslessness: (a: number, b: number) => void;
|
|
2566
3913
|
readonly metricreport_gabrielGraphPreservation: (a: number, b: number) => void;
|
|
2567
3914
|
readonly metricreport_gabrielGraphProperty: (a: number, b: number) => void;
|
|
2568
3915
|
readonly metricreport_idealEdgeLengths: (a: number, b: number) => void;
|
|
3916
|
+
readonly metricreport_landmarkStratifiedRta: (a: number, b: number) => void;
|
|
3917
|
+
readonly metricreport_layoutDegeneracy: (a: number, b: number) => void;
|
|
3918
|
+
readonly metricreport_minimumAngle: (a: number, b: number) => void;
|
|
3919
|
+
readonly metricreport_minimumAngleA1: (a: number, b: number) => void;
|
|
2569
3920
|
readonly metricreport_neighborhoodPreservation1Hop: (a: number, b: number) => void;
|
|
2570
3921
|
readonly metricreport_neighborhoodPreservation2Hop: (a: number, b: number) => void;
|
|
2571
3922
|
readonly metricreport_nodeResolution: (a: number, b: number) => void;
|
|
2572
3923
|
readonly metricreport_relativeNeighborhoodPreservation: (a: number, b: number) => void;
|
|
2573
3924
|
readonly metricreport_sampledCrossingNumber: (a: number, b: number) => void;
|
|
3925
|
+
readonly metricreport_sampledCrosslessness: (a: number, b: number) => void;
|
|
3926
|
+
readonly metricreport_sampledNp1: (a: number, b: number) => void;
|
|
3927
|
+
readonly metricreport_sampledNp2: (a: number, b: number) => void;
|
|
2574
3928
|
readonly metricreport_sampledScaleNormalizedStress: (a: number, b: number) => void;
|
|
2575
3929
|
readonly metricreport_scaleNormalizedStress: (a: number, b: number) => void;
|
|
2576
3930
|
readonly metricreport_toRecord: (a: number, b: number) => void;
|
|
3931
|
+
readonly minimumAngle: (a: number, b: number, c: number) => void;
|
|
3932
|
+
readonly minimumAngleSummary: (a: number, b: number, c: number) => void;
|
|
3933
|
+
readonly minimumanglesummary_a1: (a: number) => number;
|
|
3934
|
+
readonly minimumanglesummary_a2: (a: number) => number;
|
|
3935
|
+
readonly minimumanglesummary_toRecord: (a: number, b: number) => void;
|
|
2577
3936
|
readonly neighborhoodPreservation1Hop: (a: number, b: number, c: number) => void;
|
|
2578
3937
|
readonly neighborhoodPreservation2HopV6: (a: number, b: number, c: number) => void;
|
|
2579
3938
|
readonly nodeResolutionV6: (a: number, b: number) => void;
|
|
2580
3939
|
readonly normalizeLayout2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3940
|
+
readonly pacmapbackboneresult_backbone: (a: number) => number;
|
|
3941
|
+
readonly pacmapbackboneresult_fineLayout: (a: number) => number;
|
|
3942
|
+
readonly pacmapbackboneresult_solver: (a: number) => number;
|
|
2581
3943
|
readonly parseCsrCsv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2582
3944
|
readonly partialBfsKnn: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2583
3945
|
readonly pivotMdsInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: any) => void;
|
|
2584
3946
|
readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
|
|
3947
|
+
readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2585
3948
|
readonly prismDistortion: (a: number, b: number, c: number) => void;
|
|
2586
3949
|
readonly prismDistortionWithEdges: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2587
3950
|
readonly prismdistortion_sigmaDisp: (a: number) => number;
|
|
@@ -2599,6 +3962,7 @@ export interface InitOutput {
|
|
|
2599
3962
|
readonly prismoverlapremoval_totalIterations: (a: number) => number;
|
|
2600
3963
|
readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2601
3964
|
readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3965
|
+
readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2602
3966
|
readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2603
3967
|
readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
|
|
2604
3968
|
readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -2607,10 +3971,114 @@ export interface InitOutput {
|
|
|
2607
3971
|
readonly relativeNeighborhoodEdges: (a: number, b: number) => void;
|
|
2608
3972
|
readonly removeCycles: (a: number, b: number) => void;
|
|
2609
3973
|
readonly representativeMds: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3974
|
+
readonly resistanceCurvatureFlow: (a: number, b: number, c: any) => void;
|
|
3975
|
+
readonly resistancecurvatureflowresult_amgAllConverged: (a: number) => number;
|
|
3976
|
+
readonly resistancecurvatureflowresult_amgMaxRelativeResidual: (a: number) => number;
|
|
3977
|
+
readonly resistancecurvatureflowresult_amgTotalIterations: (a: number) => number;
|
|
3978
|
+
readonly resistancecurvatureflowresult_conductanceGraph: (a: number, b: number) => void;
|
|
3979
|
+
readonly resistancecurvatureflowresult_conductances: (a: number, b: number) => void;
|
|
3980
|
+
readonly resistancecurvatureflowresult_edgeLengths: (a: number, b: number) => void;
|
|
3981
|
+
readonly resistancecurvatureflowresult_edgeU: (a: number, b: number) => void;
|
|
3982
|
+
readonly resistancecurvatureflowresult_edgeV: (a: number, b: number) => void;
|
|
3983
|
+
readonly resistancecurvatureflowresult_effectiveResistances: (a: number, b: number) => void;
|
|
3984
|
+
readonly resistancecurvatureflowresult_expectedFoster: (a: number) => number;
|
|
3985
|
+
readonly resistancecurvatureflowresult_fosterRelErr: (a: number) => number;
|
|
3986
|
+
readonly resistancecurvatureflowresult_fosterSum: (a: number) => number;
|
|
3987
|
+
readonly resistancecurvatureflowresult_lengthGraph: (a: number, b: number) => void;
|
|
3988
|
+
readonly resistancecurvatureflowresult_linkCurvatures: (a: number, b: number) => void;
|
|
3989
|
+
readonly resistancecurvatureflowresult_maxLinkCurvature: (a: number) => number;
|
|
3990
|
+
readonly resistancecurvatureflowresult_maxVertexCurvature: (a: number) => number;
|
|
3991
|
+
readonly resistancecurvatureflowresult_meanLinkCurvature: (a: number) => number;
|
|
3992
|
+
readonly resistancecurvatureflowresult_meanVertexCurvature: (a: number) => number;
|
|
3993
|
+
readonly resistancecurvatureflowresult_minLinkCurvature: (a: number) => number;
|
|
3994
|
+
readonly resistancecurvatureflowresult_minVertexCurvature: (a: number) => number;
|
|
3995
|
+
readonly resistancecurvatureflowresult_numComponents: (a: number) => number;
|
|
3996
|
+
readonly resistancecurvatureflowresult_numEdges: (a: number) => number;
|
|
3997
|
+
readonly resistancecurvatureflowresult_numNodes: (a: number) => number;
|
|
3998
|
+
readonly resistancecurvatureflowresult_stdLinkCurvature: (a: number) => number;
|
|
3999
|
+
readonly resistancecurvatureflowresult_stepHistory: (a: number, b: number) => void;
|
|
4000
|
+
readonly resistancecurvatureflowresult_suggestedGeometry: (a: number, b: number) => void;
|
|
4001
|
+
readonly resistancecurvatureflowresult_suggestedManifold: (a: number, b: number) => void;
|
|
4002
|
+
readonly resistancecurvatureflowresult_usedExact: (a: number) => number;
|
|
4003
|
+
readonly resistancecurvatureflowresult_vertexCurvatures: (a: number, b: number) => void;
|
|
4004
|
+
readonly resistancecurvaturestep_amgMaxRelativeResidual: (a: number) => number;
|
|
4005
|
+
readonly resistancecurvaturestep_amgTotalIterations: (a: number) => number;
|
|
4006
|
+
readonly resistancecurvaturestep_expectedFoster: (a: number) => number;
|
|
4007
|
+
readonly resistancecurvaturestep_fosterRelErr: (a: number) => number;
|
|
4008
|
+
readonly resistancecurvaturestep_fosterSum: (a: number) => number;
|
|
4009
|
+
readonly resistancecurvaturestep_maxLinkCurvature: (a: number) => number;
|
|
4010
|
+
readonly resistancecurvaturestep_maxVertexCurvature: (a: number) => number;
|
|
4011
|
+
readonly resistancecurvaturestep_meanLinkCurvature: (a: number) => number;
|
|
4012
|
+
readonly resistancecurvaturestep_meanVertexCurvature: (a: number) => number;
|
|
4013
|
+
readonly resistancecurvaturestep_minLinkCurvature: (a: number) => number;
|
|
4014
|
+
readonly resistancecurvaturestep_minVertexCurvature: (a: number) => number;
|
|
4015
|
+
readonly resistancecurvaturestep_stdLinkCurvature: (a: number) => number;
|
|
4016
|
+
readonly resistancecurvaturestep_step: (a: number) => number;
|
|
4017
|
+
readonly resistancecurvaturestep_usedExact: (a: number) => number;
|
|
4018
|
+
readonly rhghlandmarksresult_allConverged: (a: number) => number;
|
|
4019
|
+
readonly rhghlandmarksresult_degCv: (a: number) => number;
|
|
4020
|
+
readonly rhghlandmarksresult_edgeMedScale: (a: number) => number;
|
|
4021
|
+
readonly rhghlandmarksresult_exp2: (a: number) => number;
|
|
4022
|
+
readonly rhghlandmarksresult_gamma: (a: number) => number;
|
|
4023
|
+
readonly rhghlandmarksresult_landmarks: (a: number) => number;
|
|
4024
|
+
readonly rhghlandmarksresult_leafFraction: (a: number) => number;
|
|
4025
|
+
readonly rhghlandmarksresult_maxPcgIters: (a: number) => number;
|
|
4026
|
+
readonly rhghlandmarksresult_meanDegree: (a: number) => number;
|
|
4027
|
+
readonly rhghlandmarksresult_numLandmarks: (a: number) => number;
|
|
4028
|
+
readonly rhghlandmarksresult_numProbes: (a: number) => number;
|
|
4029
|
+
readonly rhghlandmarksresult_pExp: (a: number) => number;
|
|
4030
|
+
readonly rhghlandmarksresult_sSw: (a: number) => number;
|
|
4031
|
+
readonly rhghlandmarksresult_totalPcgIters: (a: number) => number;
|
|
4032
|
+
readonly robustNormalizeLayout2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
4033
|
+
readonly rtaevaluation_isExact: (a: number) => number;
|
|
4034
|
+
readonly rtaevaluation_numLandmarks: (a: number) => number;
|
|
4035
|
+
readonly rtaevaluation_numStrata: (a: number) => number;
|
|
4036
|
+
readonly rtaevaluation_numTriplets: (a: number) => number;
|
|
4037
|
+
readonly rtaevaluation_rta: (a: number) => number;
|
|
4038
|
+
readonly rtaevaluation_toRecord: (a: number, b: number) => void;
|
|
2610
4039
|
readonly sampledCrossingNumber: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
4040
|
+
readonly sampledCrosslessness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
4041
|
+
readonly sampledNp1: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
4042
|
+
readonly sampledNp2: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2611
4043
|
readonly sampledScaleNormalizedStress: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2612
4044
|
readonly scaleNormalizedStress: (a: number, b: number, c: number) => void;
|
|
2613
4045
|
readonly scaleNormalizedStressFromDistances: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
4046
|
+
readonly screenedpoissonfield2d_evaluate: (a: number, b: number, c: number) => void;
|
|
4047
|
+
readonly screenedpoissonfield2d_evaluateInBounds: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4048
|
+
readonly screenedpoissonfield2d_exactAdjoint: (a: number) => number;
|
|
4049
|
+
readonly screenedpoissonfield2d_gridSize: (a: number) => number;
|
|
4050
|
+
readonly screenedpoissonfield2d_kernel: (a: number, b: number) => void;
|
|
4051
|
+
readonly screenedpoissonfield2d_new: (a: number, b: any) => void;
|
|
4052
|
+
readonly screenedpoissonfield2d_paddingFactor: (a: number) => number;
|
|
4053
|
+
readonly screenedpoissonfield2d_workspaceMemoryBytes: (a: number) => number;
|
|
4054
|
+
readonly screenedpoissonrefiner_applyEpochStep: (a: number, b: number, c: number) => void;
|
|
4055
|
+
readonly screenedpoissonrefiner_fromGraph: (a: number, b: number, c: any) => void;
|
|
4056
|
+
readonly screenedpoissonrefiner_isFinished: (a: number) => number;
|
|
4057
|
+
readonly screenedpoissonrefiner_iteration: (a: number) => number;
|
|
4058
|
+
readonly screenedpoissonrefiner_lastEnergy: (a: number) => number;
|
|
4059
|
+
readonly screenedpoissonrefiner_lastStats: (a: number) => number;
|
|
4060
|
+
readonly screenedpoissonrefiner_new: (a: number, b: number, c: any) => void;
|
|
4061
|
+
readonly screenedpoissonrefiner_numNodes: (a: number) => number;
|
|
4062
|
+
readonly screenedpoissonrefiner_run: (a: number, b: number, c: number) => void;
|
|
4063
|
+
readonly screenedpoissonrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
4064
|
+
readonly screenedpoissonrefiner_setCoarseTether: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4065
|
+
readonly screenedpoissonrefiner_status: (a: number, b: number) => void;
|
|
4066
|
+
readonly screenedpoissonrefiner_step: (a: number, b: number, c: number) => void;
|
|
4067
|
+
readonly screenedpoissonrefiner_totalIterations: (a: number) => number;
|
|
4068
|
+
readonly screenedpoissonrefiner_workspaceMemoryBytes: (a: number) => number;
|
|
4069
|
+
readonly screenedpoissonresult_earlyExitNoExcess: (a: number) => number;
|
|
4070
|
+
readonly screenedpoissonresult_energy: (a: number) => number;
|
|
4071
|
+
readonly screenedpoissonresult_excessFraction: (a: number) => number;
|
|
4072
|
+
readonly screenedpoissonresult_excessMass: (a: number) => number;
|
|
4073
|
+
readonly screenedpoissonresult_fft2dCalls: (a: number) => number;
|
|
4074
|
+
readonly screenedpoissonresult_forceX: (a: number, b: number) => void;
|
|
4075
|
+
readonly screenedpoissonresult_forceY: (a: number, b: number) => void;
|
|
4076
|
+
readonly screenedpoissonresult_gridDim: (a: number) => number;
|
|
4077
|
+
readonly screenedpoissonresult_kappaUsed: (a: number) => number;
|
|
4078
|
+
readonly screenedpoissonresult_maxDensity: (a: number) => number;
|
|
4079
|
+
readonly screenedpoissonresult_padDim: (a: number) => number;
|
|
4080
|
+
readonly screenedpoissonresult_rhoMaxUsed: (a: number) => number;
|
|
4081
|
+
readonly screenedpoissonresult_sigmaUsed: (a: number) => number;
|
|
2614
4082
|
readonly selectMaxminSpPivots: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2615
4083
|
readonly separationconstraint_gap: (a: number) => number;
|
|
2616
4084
|
readonly separationconstraint_left: (a: number) => number;
|
|
@@ -2629,6 +4097,9 @@ export interface InitOutput {
|
|
|
2629
4097
|
readonly sgdsolver_numSprings: (a: number) => number;
|
|
2630
4098
|
readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number, i: any, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => void;
|
|
2631
4099
|
readonly sgdsolver_pacmapGraph: (a: number, b: number, c: any) => void;
|
|
4100
|
+
readonly sgdsolver_pacmapGraphWithBackbone: (a: number, b: number, c: any) => void;
|
|
4101
|
+
readonly sgdsolver_pacmapGraphWithLandmarkDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
4102
|
+
readonly sgdsolver_pacmapGraphWithLandmarks: (a: number, b: number, c: number, d: any) => void;
|
|
2632
4103
|
readonly sgdsolver_randomPair: (a: number, b: number, c: any, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
2633
4104
|
readonly sgdsolver_run: (a: number, b: number, c: number) => void;
|
|
2634
4105
|
readonly sgdsolver_runManifold: (a: number, b: number, c: number) => void;
|
|
@@ -2645,6 +4116,12 @@ export interface InitOutput {
|
|
|
2645
4116
|
readonly sgdsolver_streamingNegatives: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => void;
|
|
2646
4117
|
readonly sgdsolver_totalIterations: (a: number) => number;
|
|
2647
4118
|
readonly smallestLaplacianEigenpairs: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
4119
|
+
readonly sparse12hoppairs_num1hop: (a: number) => number;
|
|
4120
|
+
readonly sparse12hoppairs_num2hop: (a: number) => number;
|
|
4121
|
+
readonly sparse12hoppairs_u1: (a: number, b: number) => void;
|
|
4122
|
+
readonly sparse12hoppairs_u2: (a: number, b: number) => void;
|
|
4123
|
+
readonly sparse12hoppairs_v1: (a: number, b: number) => void;
|
|
4124
|
+
readonly sparse12hoppairs_v2: (a: number, b: number) => void;
|
|
2648
4125
|
readonly sparsebarrierstats_dFloor: (a: number) => number;
|
|
2649
4126
|
readonly sparsebarrierstats_gammaEff: (a: number) => number;
|
|
2650
4127
|
readonly sparsebarrierstats_nPairs1hop: (a: number) => number;
|
|
@@ -2660,12 +4137,14 @@ export interface InitOutput {
|
|
|
2660
4137
|
readonly sparseprobabilities_nnz: (a: number) => number;
|
|
2661
4138
|
readonly sparseprobabilities_numNodes: (a: number) => number;
|
|
2662
4139
|
readonly sparseprobabilities_values: (a: number, b: number) => void;
|
|
4140
|
+
readonly spatialintruderrefiner_currentKCap: (a: number) => number;
|
|
2663
4141
|
readonly spatialintruderrefiner_isFinished: (a: number) => number;
|
|
2664
4142
|
readonly spatialintruderrefiner_iteration: (a: number) => number;
|
|
2665
|
-
readonly spatialintruderrefiner_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number) => void;
|
|
4143
|
+
readonly spatialintruderrefiner_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number) => void;
|
|
2666
4144
|
readonly spatialintruderrefiner_numNodes: (a: number) => number;
|
|
2667
4145
|
readonly spatialintruderrefiner_run: (a: number, b: number, c: number) => void;
|
|
2668
4146
|
readonly spatialintruderrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
4147
|
+
readonly spatialintruderrefiner_setKCap: (a: number, b: number, c: number) => void;
|
|
2669
4148
|
readonly spatialintruderrefiner_stats: (a: number) => number;
|
|
2670
4149
|
readonly spatialintruderrefiner_status: (a: number, b: number) => void;
|
|
2671
4150
|
readonly spatialintruderrefiner_step: (a: number, b: number, c: number) => void;
|
|
@@ -2674,6 +4153,7 @@ export interface InitOutput {
|
|
|
2674
4153
|
readonly spatialrefinerroundstats_nFn: (a: number) => number;
|
|
2675
4154
|
readonly spatialrefinerroundstats_nFp: (a: number) => number;
|
|
2676
4155
|
readonly spatialrefinerroundstats_nPairsTotal: (a: number) => number;
|
|
4156
|
+
readonly spatialrefinerroundstats_nSep: (a: number) => number;
|
|
2677
4157
|
readonly spatialrefinerroundstats_round: (a: number) => number;
|
|
2678
4158
|
readonly spatialrefinerroundstats_skipped: (a: number) => number;
|
|
2679
4159
|
readonly spatialrefinerstats_dFloor: (a: number) => number;
|
|
@@ -2684,6 +4164,7 @@ export interface InitOutput {
|
|
|
2684
4164
|
readonly spatialrefinerstats_nFnTotal: (a: number) => number;
|
|
2685
4165
|
readonly spatialrefinerstats_nFpTotal: (a: number) => number;
|
|
2686
4166
|
readonly spatialrefinerstats_nPairsTotal: (a: number) => number;
|
|
4167
|
+
readonly spatialrefinerstats_nSepTotal: (a: number) => number;
|
|
2687
4168
|
readonly spatialrefinerstats_roundStats: (a: number, b: number) => void;
|
|
2688
4169
|
readonly spatialrefinerstats_roundsExecuted: (a: number) => number;
|
|
2689
4170
|
readonly spatialrefinerstats_scaleRatio: (a: number) => number;
|
|
@@ -2737,6 +4218,7 @@ export interface InitOutput {
|
|
|
2737
4218
|
readonly toruscrossing_segB: (a: number, b: number) => void;
|
|
2738
4219
|
readonly tsnetsolver_currentStageLr: (a: number) => number;
|
|
2739
4220
|
readonly tsnetsolver_fromGraphPartialBfs: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: any, r1: number, s1: number, t1: number, u1: number) => void;
|
|
4221
|
+
readonly tsnetsolver_fromGraphRowNormalized: (a: number, b: number, c: any, d: number, e: number, f: any, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: any, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number) => void;
|
|
2740
4222
|
readonly tsnetsolver_fromKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: any, r1: number, s1: number, t1: number, u1: number) => void;
|
|
2741
4223
|
readonly tsnetsolver_fromProbabilities: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: any, g1: number, h1: number, i1: number, j1: number) => void;
|
|
2742
4224
|
readonly tsnetsolver_isFinished: (a: number) => number;
|
|
@@ -2757,6 +4239,9 @@ export interface InitOutput {
|
|
|
2757
4239
|
readonly twohopknnresult_avgDeg2: (a: number) => number;
|
|
2758
4240
|
readonly twohopknnresult_k2Deg: (a: number, b: number) => void;
|
|
2759
4241
|
readonly twohopknnresult_knn: (a: number) => number;
|
|
4242
|
+
readonly twohopknnresult_n1hop: (a: number) => number;
|
|
4243
|
+
readonly twohopknnresult_n2hop: (a: number) => number;
|
|
4244
|
+
readonly twohopknnresult_nTruncated2hop: (a: number) => number;
|
|
2760
4245
|
readonly twohopknnresult_nnz: (a: number) => number;
|
|
2761
4246
|
readonly wasmMemory: () => any;
|
|
2762
4247
|
readonly wasm_start: () => void;
|