Implement ROADMAP.md Phase 4: all 5 deferred features#36
Merged
gvonness-apolitical merged 1 commit intomainfrom Mar 14, 2026
Merged
Implement ROADMAP.md Phase 4: all 5 deferred features#36gvonness-apolitical merged 1 commit intomainfrom
gvonness-apolitical merged 1 commit intomainfrom
Conversation
Phase 4 items, previously deferred for lack of concrete use cases: 4.1 — Indefinite dense STDE: dense_stde_2nd_indefinite() with eigendecomposition, epsilon-clamped sign-splitting, and optimized single-pass for same-sign eigenvalues. Requires stde+nalgebra. 4.5 — GpuBackend trait method: taylor_forward_2nd_batch lifted from inherent methods into the trait. All stde_gpu functions (laplacian_gpu, hessian_diagonal_gpu, laplacian_with_control_gpu) are now generic over B: GpuBackend. Old backend-specific functions deprecated. 4.4 — Generic laplacian_with_control_gpu: works with any GpuBackend, enabling CUDA variance-reduced Laplacian without separate functions. 4.3 — Chunked GPU Taylor dispatch: taylor_forward_2nd_batch_chunked splits large batches by buffer size limits (128 MiB default) and WebGPU workgroup dispatch limits (65535×256). 4.2 — General-K GPU Taylor kernels: runtime codegen (taylor_codegen.rs) generates K-specialized WGSL and CUDA shaders for K=1..5 with fully unrolled Cauchy products and recurrences across all 43 opcodes. WgpuContext compiles K=1..5 pipelines at init; taylor_forward_kth_batch returns TaylorKthBatchResult with K coefficient vectors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dense_stde_2nd_indefinite()— eigendecomposition + sign-splitting for arbitrary symmetric C matrices, with epsilon clamping and single-pass optimization for same-sign eigenvalues (requiresstde+nalgebra)taylor_forward_2nd_batchlifted intoGpuBackendtrait; allstde_gpufunctions now generic overB: GpuBackend; old backend-specific functions deprecatedlaplacian_with_control_gpu: works with anyGpuBackend, enabling CUDA variance-reduced Laplaciantaylor_forward_2nd_batch_chunked— splits large batches by buffer size (128 MiB default) and WebGPU workgroup dispatch limits (65535×256)taylor_codegen.rs) generates K-specialized WGSL/CUDA shaders for K=1..5 with fully unrolled Cauchy products and recurrences for all 43 opcodes;taylor_forward_kth_batchreturnsTaylorKthBatchResultTest plan
cargo test --features "bytecode,taylor,laurent,stde,serde,faer,nalgebra,ndarray,parallel,diffop,gpu-wgpu"— all passcargo clippy -- -D warningscleancargo fmt --checkclean