Skip to main content

Crate sparse_ir_basis

Crate sparse_ir_basis 

Source
Expand description

§sparse-ir-basis

The intermediate representation (IR) basis: the kernels and their physical properties (KernelProperties), the Fourier transforms of the singular functions, and FiniteTempBasis. Also the DLR built from an IR basis (DlrFromIr) and the IR <-> DLR transform. The singular value expansion and the piecewise Legendre polynomials come from sparse-ir-sve, re-exported here under the same paths.

Most users depend on the sparse-ir crate, which re-exports this crate.

Re-exports§

pub use basis::BosonicBasis;
pub use basis::FermionicBasis;
pub use basis::FiniteTempBasis;
pub use basis::MatsubaraPointMethod;
pub use ir_dlr::DlrFromIr;
pub use ir_dlr::IrBasis;
pub use kernel::BasisKernel;
pub use kernel::CentrosymmKernel;
pub use kernel::KernelProperties;
pub use kernel::LogisticKernel;
pub use kernel::LogisticKernelWindowed;
pub use kernel::LogisticSVEHints;
pub use kernel::LogisticWindowedSVEHints;
pub use kernel::RegularizedBoseKernel;
pub use kernel::RegularizedBoseSVEHints;
pub use kernel::compute_logistic_kernel;
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;

Modules§

basis
Finite temperature basis for SparseIR
gauss
Gauss quadrature rules for numerical integration
hints
SVE hints given by the segments of the domain
ir_dlr
Discrete Lehmann representations built from an IR basis
kernel
Kernel implementations for SparseIR
kernelmatrix
Kernel matrices on the Gauss points of the SVE
numeric
Custom numeric traits for high-precision computation
poly
Piecewise Legendre polynomials
polyfourier
Piecewise Legendre polynomial Fourier transform implementation for SparseIR
special_functions
Special functions implementation ported from C++ libsparseir
sve
Singular value expansion (SVE) of the kernels, from sparse-ir-sve
tsvd
Truncated SVD in f64 and double-double, by nalgebra

Structs§

CentrosymmSVE
Centrosymmetric SVE computation
DiscretizedKernel
This structure stores a discrete kernel matrix along with the corresponding Gauss quadrature rules for x and y coordinates. This enables easy application of weights for SVE computation and maintains the relationship between matrix elements and their corresponding quadrature points.
KernelBlock
A discretized, weighted kernel matrix A[i, j] = K(x_i, y_j) √w_i √w'_j (Gauss points x_i, y_j, weights w_i, w'_j) whose entries are evaluated on demand
PiecewiseLegendrePoly
A single piecewise Legendre polynomial
PiecewiseLegendrePolyVector
Vector of piecewise Legendre polynomials
Rule
Quadrature rule for numerical integration.
SVDResult
Result of SVD decomposition
SVEOptions
Options of compute_sve_with
SVEResult
Result of Singular Value Expansion computation
SamplingSVE
Sampling-based SVE computation
SegmentHints
SVEHints given by the segment boundaries of the domain
TSVDConfig
Configuration for TSVD computation

Enums§

SymmetryType
TworkType
Working precision type for SVE computations

Traits§

AbstractKernel
Trait for general kernels (both centrosymmetric and non-centrosymmetric)
CustomNumeric
Custom numeric trait for high-precision numerical computation
ExpandableKernel
The kernels whose SVE compute_sve computes
ReducedKernel
Trait for centrosymmetric kernels, through their reduced kernels
SVEHints
Trait for SVE (Singular Value Expansion) hints
SVEKernel
The domain of a kernel and the discretization hints of its SVE
SVEStrategy
Trait for SVE computation strategies

Functions§

compute_sve
Main SVE computation function
compute_sve_with
The SVE of kernel with options
legendre
The Gauss-Legendre rule with n points on [-1, 1], in T, by Newton’s method on the Legendre polynomial
matrix_from_gauss
Compute matrix from Gauss quadrature rules (legacy version without segments)
matrix_from_gauss_noncentrosymmetric
Compute matrix from Gauss quadrature rules for non-centrosymmetric kernels
matrix_from_gauss_with_segments
Compute matrix from Gauss quadrature rules with segments from SVEHints
svd_decompose
Perform SVD decomposition using nalgebra with sorted singular values
tsvd
Main TSVD function using QR + SVD approach
tsvd_df64
Convenience function for Df64 TSVD
tsvd_df64_from_f64
Convenience function for Df64 TSVD from f64 matrix
tsvd_f64
Convenience function for f64 TSVD

Type Aliases§

Df64
Compensated f64 (emulated quad precision) type.