krylovscope 0.1.0

GPU-resident Krylov spectral endpoint estimation for large symmetric operators
Documentation
//! # krylovscope
//!
//! Reusable spectral endpoint estimation for large symmetric operators.
//!
//! The CUDA path implements the validated RobustF64Q design: operator storage
//! may remain `f32`, while resident Lanczos recurrence vectors and scalar
//! reductions use native `f64`. The API supports generic matrix-free operators,
//! built-in CSR/PDSM32 storage, explicit cold preparation, free-DOF masks, and
//! multi-seed diagnostics.

mod spectral;
pub use spectral::RitzBounds;

#[cfg(feature = "cuda")]
pub use cubecl;
#[cfg(feature = "cuda")]
pub mod cuda;
#[cfg(feature = "cuda")]
pub mod estimator;
#[cfg(feature = "cuda")]
pub mod session;
#[cfg(feature = "cuda")]
pub mod sparse;

#[cfg(feature = "cuda")]
pub use cuda::{
    CsrF32Operator, DiagonalF32Operator, Pass64, ResidentF64Operator, RobustStats, EVENT_BREAKDOWN,
    EVENT_NONFINITE_ALPHA, EVENT_NONFINITE_BETA,
};
#[cfg(feature = "cuda")]
pub use estimator::{
    EnsembleEstimate, Estimate, EstimatorConfig, PreparationReport, SpectralEstimator, MAX_STEPS,
};
#[cfg(feature = "cuda")]
pub use session::{
    IndexConversion, SparseSession, SparseSessionConfig, SparseSessionReport, SparseView,
    ValueConversion,
};
#[cfg(feature = "cuda")]
pub use sparse::{HostSparseOperator, ValidationPolicy, ValidationReport};