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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Sparse QR Factorization
//!
//! Householder QR factorization for sparse matrices: A*P = Q*R
//!
//! # Algorithm
//!
//! Column-wise left-looking Householder QR:
//!
//! ```text
//! For each column k = 0 to min(m, n) - 1:
//! 1. Apply previous reflectors to column k
//! 2. Compute Householder reflector for column k below diagonal
//! 3. Store R[0:k+1, k] and Householder vector v_k, tau_k
//! ```
//!
//! # Usage
//!
//! ```ignore
//! use numr::algorithm::sparse_linalg::qr::*;
//!
//! // Simple factorization
//! let factors = sparse_qr_simple_cpu(&matrix, &QrOptions::default())?;
//!
//! // Solve Ax = b
//! let x = sparse_qr_solve_cpu(&factors, &b)?;
//!
//! // Least-squares min ||Ax - b||
//! let x = sparse_qr_least_squares_cpu(&factors, &b)?;
//! ```
// Re-export types
pub use ;
// Re-export symbolic analysis
pub use sparse_qr_symbolic;
// Re-export CPU implementations
pub use ;
// Re-export CUDA implementations
pub use ;
// Re-export WebGPU implementations
pub use ;