Skip to main content

sparse_ir/
lib.rs

1#![doc = include_str!("../README.md")]
2
3//! # sparse-ir: Rust implementation of SparseIR functionality
4//!
5//! A high-performance implementation of the SparseIR (Sparse Intermediate Representation)
6//! library in Rust, providing analytical continuation and sparse representation
7//! functionality for quantum many-body physics calculations.
8//!
9//! This crate re-exports the crates it is made of, under their usual paths:
10//! - `sparse-ir-core`: statistics, errors, GEMM, fitters, the [`Basis`] trait
11//!   and sparse sampling;
12//! - `sparse-ir-basis`: kernels, the SVE and the IR basis [`FiniteTempBasis`];
13//! - `sparse-ir-dlr`: the discrete Lehmann representation;
14//! - `sparse-ir-minipole`: ESPRIT and minimal pole representations.
15
16pub use sparse_ir_core::debug_warn;
17pub use sparse_ir_core::{
18    ArrayRole, Basis, Bosonic, BosonicFreq, DynRank, Error, ErrorKind, Fermionic, FermionicFreq,
19    InplaceFitter, Matrix, MatsubaraFreq, MatsubaraSampling, MatsubaraSamplingPositiveOnly, Rank,
20    Result, Statistics, StatisticsMarker, StatisticsType, TauSampling, TensorScalar, TypedTensor,
21    TypedTensorView, TypedTensorViewMut, is_debug_enabled,
22};
23pub use sparse_ir_core::{
24    basis_trait, error, fitters, fpu_check, freq, gemm, matrix, matsubara_sampling, sampling,
25    taufuncs, traits,
26};
27
28pub use sparse_ir_dlr::dlr;
29pub use sparse_ir_dlr::{
30    DiscreteLehmannRepresentation, DlrBuilder, IrDlrTransform, bosonic_single_pole,
31    fermionic_single_pole, giwn_single_pole, gtau_single_pole,
32};
33
34pub use sparse_ir_minipole::{esprit, minipole};
35
36pub use sparse_ir_basis::{
37    AbstractKernel, BosonicBasis, BosonicPiecewiseLegendreFT, BosonicPiecewiseLegendreFTVector,
38    CentrosymmKernel, CentrosymmSVE, CustomNumeric, Df64, DiscretizedKernel, DlrFromIr,
39    FermionicBasis, FermionicPiecewiseLegendreFT, FermionicPiecewiseLegendreFTVector,
40    FiniteTempBasis, IrBasis, KernelProperties, LogisticKernel, LogisticSVEHints,
41    PiecewiseLegendreFT, PiecewiseLegendreFTVector, PiecewiseLegendrePoly,
42    PiecewiseLegendrePolyVector, PowerModel, RegularizedBoseKernel, RegularizedBoseSVEHints, Rule,
43    SVDResult, SVDStrategy, SVEHints, SVEResult, SVEStrategy, SamplingSVE, SymmetryType,
44    TSVDConfig, TworkType, compute_logistic_kernel, compute_sve, legendre, legendre_custom,
45    legendre_twofloat, matrix_from_gauss, matrix_from_gauss_noncentrosymmetric,
46    matrix_from_gauss_with_segments, svd_decompose, tsvd_df64, tsvd_df64_from_f64, tsvd_f64,
47};
48pub use sparse_ir_basis::{
49    basis, gauss, ir_dlr, kernel, kernelmatrix, numeric, poly, polyfourier, special_functions, sve,
50    tsvd,
51};