1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! GPU Linear Algebra Operations
//!
//! This module implements GPU-accelerated linear algebra operations using WGPU compute shaders.
//! The implementations follow cuSOLVER patterns adapted for WGPU, providing efficient GPU
//! implementations of matrix decompositions, eigenvalue computations, and linear solvers.
//!
//! # Features
//! - LU decomposition with partial pivoting
//! - Singular Value Decomposition (SVD)
//! - QR decomposition
//! - Eigenvalue/eigenvector computation
//! - Linear system solving
//! - Matrix inversion
//!
//! # Architecture
//! The operations are designed to integrate seamlessly with the existing tenflowers-core
//! GPU infrastructure, using the same buffer management, device abstraction, and
//! error handling patterns.
//!
//! # Modules
//! - [`context`] - GPU context, metadata, and configuration management
//! - [`basic_ops`] - Basic operations like transpose and matrix multiplication
//! - [`decompositions`] - Matrix decompositions (LU, SVD, QR)
//! - [`advanced_ops`] - Advanced operations (eigenvalues, solve, inverse, determinant)
// Re-export specialized modules
// Re-export core types and functions for backward compatibility
pub use ;
pub use ;
pub use ;
// NOTE(v0.2): Commented out until advanced_ops functions are implemented
// pub use advanced_ops::{determinant, eigenvalues, inverse, solve};