Skip to main content

sparse_ir_sve/
unstable.rs

1//! Items the other `sparse-ir` crates build on, outside the semver
2//! guarantees of this crate
3//!
4//! These are the machinery of the SVE (its strategies, the discretized
5//! kernel matrices, the truncated SVD), the FPU guard and the thread pool.
6//! Any release may change or remove them; a program that only computes
7//! SVEs does not need them. `sparse-ir-basis` and `sparse-ir` re-export
8//! some of them under their own paths (`sparse_ir::tsvd`,
9//! `sparse_ir::sve::compute_sve_dense`, ...), where they follow the semver
10//! of those crates; the crates of the workspace require each other at the
11//! same exact version, so such a change reaches them in a release of their
12//! own.
13
14/// The strategies [`compute_sve`](crate::compute_sve) decomposes a kernel
15/// with, and the dense reference path
16pub mod sve {
17    pub use crate::sve::compute::compute_sve_dense;
18    pub use crate::sve::strategy::{
19        CentrosymmSVE, KernelBlock, NonCentrosymmSVE, SVEStrategy, SamplingSVE,
20    };
21    pub use crate::sve::utils::{half_domain_segments, mirror_segments_to_full_domain};
22}
23
24/// Kernel matrices on the Gauss points of the SVE
25pub mod kernelmatrix {
26    pub use crate::kernelmatrix::*;
27}
28
29/// Truncated SVD in `f64` and double-double, by nalgebra
30pub mod tsvd {
31    pub use crate::tsvd::*;
32}
33
34/// FPU state checking for Intel Fortran compatibility
35pub mod fpu_check {
36    pub use crate::fpu_check::*;
37}
38
39/// Parallel execution on the rayon pool
40pub mod parallel {
41    pub use crate::parallel::*;
42}
43
44pub use crate::checks::*;