sparse-ir-basis 0.12.0

The IR basis of sparse-ir: kernels, the singular value expansion and FiniteTempBasis
Documentation
//! # sparse-ir-basis
//!
//! The intermediate representation (IR) basis: kernels, the singular value
//! expansion in extended precision, piecewise Legendre polynomials and their
//! Fourier transforms, and [`FiniteTempBasis`]. Also the DLR built from an IR
//! basis ([`DlrFromIr`]) and the IR <-> DLR transform.
//!
//! Most users depend on the `sparse-ir` crate, which re-exports this crate.

#[macro_use]
extern crate sparse_ir_core;

// Modules and items of the core and the DLR, under the paths the code uses
#[allow(unused_imports)]
use sparse_ir_core::{
    ArrayRole, Matrix, MatsubaraFreq, StatisticsType, TypedTensor, basis_trait, error, fitters,
    fpu_check, freq, matrix, matsubara_sampling, sampling, taufuncs, traits,
};
#[allow(unused_imports)]
use sparse_ir_dlr::{dlr, fermionic_single_pole, giwn_single_pole, gtau_single_pole};
// Names the tests of this crate use at the crate root
#[cfg(test)]
#[allow(unused_imports)]
use sparse_ir_core::{
    Basis, Bosonic, Error, Fermionic, MatsubaraSampling, MatsubaraSamplingPositiveOnly, Statistics,
    TauSampling,
};
#[cfg(test)]
#[allow(unused_imports)]
use sparse_ir_dlr::{
    DiscreteLehmannRepresentation, DlrBuilder, IrDlrTransform, bosonic_single_pole,
};

pub mod basis;
pub(crate) mod col_piv_qr; // Column-pivoted QR decomposition using nalgebra
pub mod gauss;
pub(crate) mod interpolation1d;
pub mod ir_dlr; // DLR built from an IR basis, and the IR <-> DLR transform
pub mod kernel;
pub mod kernelmatrix;
pub mod numeric;
pub mod poly;
pub mod polyfourier;
pub mod special_functions;
pub mod sve;
pub mod tsvd; // High-precision truncated SVD using nalgebra

pub use basis::{BosonicBasis, FermionicBasis, FiniteTempBasis};
pub use gauss::{Rule, legendre, legendre_custom, legendre_twofloat};
pub use ir_dlr::{DlrFromIr, IrBasis};
pub use kernel::{
    AbstractKernel, CentrosymmKernel, KernelProperties, LogisticKernel, LogisticSVEHints,
    RegularizedBoseKernel, RegularizedBoseSVEHints, SVEHints, SymmetryType,
    compute_logistic_kernel,
};
pub use kernelmatrix::{
    DiscretizedKernel, matrix_from_gauss, matrix_from_gauss_noncentrosymmetric,
    matrix_from_gauss_with_segments,
};
pub use numeric::CustomNumeric;
pub use poly::{PiecewiseLegendrePoly, PiecewiseLegendrePolyVector};
pub use polyfourier::{
    BosonicPiecewiseLegendreFT, BosonicPiecewiseLegendreFTVector, FermionicPiecewiseLegendreFT,
    FermionicPiecewiseLegendreFTVector, PiecewiseLegendreFT, PiecewiseLegendreFTVector, PowerModel,
};
pub use sve::{
    CentrosymmSVE, SVDStrategy, SVEResult, SVEStrategy, SamplingSVE, TworkType, compute_sve,
};
pub use tsvd::{
    SVDResult, TSVDConfig, svd_decompose, tsvd, tsvd_df64, tsvd_df64_from_f64, tsvd_f64,
};
pub use xprec::Df64;

// Test utilities (only available in test mode)
#[cfg(test)]
pub mod test_utils;

// Tests of the core samplings, the Basis trait and the DLR on an IR basis
#[cfg(test)]
mod basis_trait_tests;
#[cfg(test)]
mod dlr_independent_tests;
#[cfg(test)]
mod dlr_tests;
#[cfg(test)]
mod matsubara_sampling_tests;
#[cfg(test)]
mod tau_sampling_tests;