mirror of
https://github.com/ruvnet/RuView
synced 2026-07-31 18:51:42 +00:00
4b1005524e
- Add 154 missing vendor files (gitignore was filtering them) - vendor/midstream: 564 files (was 561) - vendor/sublinear-time-solver: 1190 files (was 1039) - Add ESP32 edge processing (ADR-039): presence, vitals, fall detection - Add WASM programmable sensing (ADR-040/041) with wasm3 runtime - Add firmware CI workflow (.github/workflows/firmware-ci.yml) - Add wifi-densepose-wasm-edge crate for edge WASM modules - Update sensing server, provision.py, UI components Co-Authored-By: claude-flow <ruv@ruv.net>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
/**
|
|
* Simple, Direct O(log n) Sublinear Solver
|
|
*
|
|
* This bypasses WASM integration issues and provides true O(log n) algorithms
|
|
* implemented directly in TypeScript with Johnson-Lindenstrauss embeddings.
|
|
*/
|
|
export declare class SimpleSublinearSolver {
|
|
private config;
|
|
constructor(jlDistortion?: number, seriesTruncation?: number);
|
|
/**
|
|
* Johnson-Lindenstrauss embedding for dimension reduction
|
|
* This provides the O(log n) complexity guarantee
|
|
*/
|
|
private createJLEmbedding;
|
|
/**
|
|
* Generate Gaussian random numbers using Box-Muller transform
|
|
*/
|
|
private gaussianRandom;
|
|
/**
|
|
* Project matrix using Johnson-Lindenstrauss embedding
|
|
*/
|
|
private projectMatrix;
|
|
/**
|
|
* Project vector using Johnson-Lindenstrauss embedding
|
|
*/
|
|
private projectVector;
|
|
/**
|
|
* Solve using truncated Neumann series: x = (I + N + N² + ... + N^k) * b
|
|
* where N = I - D^(-1)A for diagonally dominant matrices
|
|
*/
|
|
private solveNeumann;
|
|
/**
|
|
* Solve linear system with guaranteed O(log n) complexity using JL embedding
|
|
*/
|
|
solveSublinear(matrix: number[][], b: number[]): Promise<any>;
|
|
/**
|
|
* Compute residual r = b - Ax
|
|
*/
|
|
private computeResidual;
|
|
}
|