Crate sparse_ir

Crate sparse_ir 

Source
Expand description

§sparse-ir: Rust implementation of SparseIR functionality

A high-performance implementation of the SparseIR (Sparse Intermediate Representation) library in Rust, providing analytical continuation and sparse representation functionality for quantum many-body physics calculations.

Re-exports§

pub use basis::BosonicBasis;
pub use basis::FermionicBasis;
pub use basis::FiniteTempBasis;
pub use basis_trait::Basis;
pub use dlr::DiscreteLehmannRepresentation;
pub use dlr::bosonic_single_pole;
pub use dlr::fermionic_single_pole;
pub use dlr::giwn_single_pole;
pub use dlr::gtau_single_pole;
pub use fitters::InplaceFitter;
pub use freq::BosonicFreq;
pub use freq::FermionicFreq;
pub use freq::MatsubaraFreq;
pub use gauss::Rule;
pub use gauss::legendre;
pub use gauss::legendre_custom;
pub use gauss::legendre_twofloat;
pub use interpolation1d::Interpolate1D;
pub use interpolation2d::Interpolate2D;
pub use kernel::AbstractKernel;
pub use kernel::CentrosymmKernel;
pub use kernel::KernelProperties;
pub use kernel::LogisticKernel;
pub use kernel::LogisticSVEHints;
pub use kernel::RegularizedBoseKernel;
pub use kernel::RegularizedBoseSVEHints;
pub use kernel::SVEHints;
pub use kernel::SymmetryType;
pub use kernel::compute_logistic_kernel;
pub use kernelmatrix::DiscretizedKernel;
pub use kernelmatrix::InterpolatedKernel;
pub use kernelmatrix::matrix_from_gauss;
pub use kernelmatrix::matrix_from_gauss_noncentrosymmetric;
pub use kernelmatrix::matrix_from_gauss_with_segments;
pub use matsubara_sampling::MatsubaraSampling;
pub use matsubara_sampling::MatsubaraSamplingPositiveOnly;
pub use numeric::CustomNumeric;
pub use poly::PiecewiseLegendrePoly;
pub use poly::PiecewiseLegendrePolyVector;
pub use polyfourier::BosonicPiecewiseLegendreFT;
pub use polyfourier::BosonicPiecewiseLegendreFTVector;
pub use polyfourier::FermionicPiecewiseLegendreFT;
pub use polyfourier::FermionicPiecewiseLegendreFTVector;
pub use polyfourier::PiecewiseLegendreFT;
pub use polyfourier::PiecewiseLegendreFTVector;
pub use polyfourier::PowerModel;
pub use sampling::TauSampling;
pub use sve::CentrosymmSVE;
pub use sve::SVDStrategy;
pub use sve::SVEResult;
pub use sve::SVEStrategy;
pub use sve::SamplingSVE;
pub use sve::TworkType;
pub use sve::compute_sve;
pub use sve::truncate;
pub use traits::Bosonic;
pub use traits::Fermionic;
pub use traits::Statistics;
pub use traits::StatisticsMarker;
pub use traits::StatisticsType;
pub use tsvd::SVDResult;
pub use tsvd::TSVDConfig;
pub use tsvd::TSVDError;
pub use tsvd::svd_decompose;
pub use tsvd::tsvd;
pub use tsvd::tsvd_df64;
pub use tsvd::tsvd_df64_from_f64;
pub use tsvd::tsvd_f64;

Modules§

basis
Finite temperature basis for SparseIR
basis_trait
Basis trait for IR and DLR representations
col_piv_qr
Column-pivoted QR decomposition with early termination support
dlr
Discrete Lehmann Representation (DLR)
fitters
Fitters for least-squares problems with various matrix types
fpu_check
FPU state checking and correction for numerical stability
freq
Matsubara frequency implementation for SparseIR
gauss
Gauss quadrature rules for numerical integration
gemm
Matrix multiplication utilities with pluggable BLAS backend
interpolation1d
1D interpolation functionality for SparseIR
interpolation2d
2D interpolation functionality for SparseIR
kernel
Kernel implementations for SparseIR
kernelmatrix
Kernel matrix discretization for SparseIR
matsubara_sampling
Sparse sampling in Matsubara frequencies
numeric
Custom numeric traits for high-precision computation
poly
Piecewise Legendre polynomial implementations for SparseIR
polyfourier
Piecewise Legendre polynomial Fourier transform implementation for SparseIR
sampling
Sparse sampling in imaginary time
special_functions
Special functions implementation ported from C++ libsparseir
sve
Singular Value Expansion (SVE) module
taufuncs
Imaginary time τ normalization utilities
traits
Common trait definitions for SparseIR
tsvd
High-precision truncated SVD implementation using nalgebra
working_buffer
Working buffer for in-place operations

Structs§

Tensor
Dense multidimensional array.

Enums§

DynRank
Array shape type with dynamic rank.

Type Aliases§

DTensor
Multidimensional array with dynamically-sized dimensions and dense layout.
Df64
Compensated f64 (emulated quad precision) type.