mirror of
https://github.com/ruvnet/RuView
synced 2026-07-26 18:01:48 +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>
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
/**
|
|
* Real WASM Integration for Sublinear Time Solver
|
|
*
|
|
* This module properly integrates our Rust WASM components:
|
|
* - GraphReasoner: Fast PageRank and graph algorithms
|
|
* - TemporalNeuralSolver: Neural network accelerated matrix operations
|
|
* - StrangeLoop: Quantum-enhanced solving with nanosecond precision
|
|
* - NanoScheduler: Ultra-low latency task scheduling
|
|
*/
|
|
import { Matrix, Vector } from './types.js';
|
|
/**
|
|
* GraphReasoner WASM for PageRank and graph algorithms
|
|
*/
|
|
export declare class GraphReasonerWASM {
|
|
private instance;
|
|
private reasoner;
|
|
initialize(): Promise<boolean>;
|
|
/**
|
|
* Compute PageRank using WASM acceleration
|
|
*/
|
|
computePageRank(adjacencyMatrix: Matrix, damping?: number, iterations?: number): Float64Array;
|
|
private pageRankJS;
|
|
}
|
|
/**
|
|
* TemporalNeuralSolver WASM for ultra-fast matrix operations
|
|
*/
|
|
export declare class TemporalNeuralWASM {
|
|
private instance;
|
|
private solver;
|
|
initialize(): Promise<boolean>;
|
|
/**
|
|
* Ultra-fast matrix-vector multiplication
|
|
*/
|
|
multiplyMatrixVector(matrix: Float64Array, vector: Float64Array, rows: number, cols: number): Float64Array;
|
|
private multiplyMatrixVectorJS;
|
|
/**
|
|
* Predict solution with temporal advantage
|
|
*/
|
|
predictWithTemporalAdvantage(matrix: Matrix, vector: Vector, distanceKm?: number): Promise<{
|
|
solution: Vector;
|
|
temporalAdvantageMs: number;
|
|
lightTravelTimeMs: number;
|
|
computeTimeMs: number;
|
|
}>;
|
|
}
|
|
/**
|
|
* Main WASM integration manager
|
|
*/
|
|
export declare class WASMAccelerator {
|
|
private graphReasoner;
|
|
private temporalNeural;
|
|
private initialized;
|
|
constructor();
|
|
initialize(): Promise<boolean>;
|
|
get isInitialized(): boolean;
|
|
getGraphReasoner(): GraphReasonerWASM;
|
|
getTemporalNeural(): TemporalNeuralWASM;
|
|
}
|
|
export declare const wasmAccelerator: WASMAccelerator;
|