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
//! ML-guided preconditioner selection.
//!
//! This module provides automatic selection of sparse-matrix preconditioners
//! based on extracted matrix features and a classification pipeline (heuristic
//! rules or a trained random-forest model). A cost model estimates the total
//! solve cost to further refine the recommendation.
//!
//! # Quick start
//!
//! ```
//! use scirs2_sparse::ml_preconditioner::{select_preconditioner, SelectionConfig};
//!
//! // 3×3 tridiagonal SPD matrix in CSR format
//! let values = vec![4.0, -1.0, -1.0, 4.0, -1.0, -1.0, 4.0];
//! let col_idx = vec![0, 1, 0, 1, 2, 1, 2];
//! let row_ptr = vec![0, 2, 5, 7];
//!
//! let result = select_preconditioner(&values, &row_ptr, &col_idx, 3, &SelectionConfig::default())
//! .expect("selection");
//! println!("Recommended: {}", result.recommended);
//! ```
/// Types and configuration.
/// Feature extraction from raw CSR data.
/// Classification models (heuristic + random forest).
/// Cost estimation and ranking.
// Re-exports
pub use ;
pub use ;
pub use ;
pub use ;