Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Catalogue of algorithms

This catalogue lists everything the library implements, grouped by subject. Use it to find where an algorithm lives, to see the neighbours of the one you are studying, or to plan a path through the book. It describes the current release and is updated whenever an algorithm is added; the changelog records what changed between releases, and planned work is tracked in GitHub issues.

Book chapters follow the same subjects. Where a chapter has been written, its crate heading links to it; the integration chapter is the first. For the precise types, functions and parameters, follow the API reference link under each crate.

The library implements 655 algorithms and components in 23 crates:

SubjectCratesItems
Calculus and analysisDerivatives, Integration, Interpolation, Root finding, Optimisation, Special functions175
Linear algebra and transformsLinear algebra, Linear algebra reference, FFTs, FFT reference69
Probability, statistics and learningRandom, Statistics, Machine learning103
Signals, information and fieldsDSP, Information, Electromagnetics204
Discrete mathematics and geometryNumber theory, Graph, Geometry81
Foundations and input/outputCore, Utils, Sorting and selection, File IO23

Calculus and analysis

Derivatives, integrals, interpolation, equations and optimisation of functions, and the special functions of mathematical physics.

Derivatives

Numerical differentiation routines for scalar and vector-valued functions.

Crate lib_jsl_derivatives: API reference · book chapter · 3 items

Integration

Numerical integration: quadrature, cubature, quasi-Monte Carlo, ODE solvers, boundary value problems and PDEs.

Crate lib_jsl_integration: API reference · book chapter · 30 items

Partial differential equations

Interpolation

Interpolation in one to N dimensions: splines, rational, Chebyshev, Fourier and radial basis functions.

Crate lib_jsl_interpolation: API reference · book chapter · 53 items

1D

2D

3D

ND

Root finding

Root finding: bracketing methods, Brent, Newton, polynomial roots and nonlinear systems.

Crate lib_jsl_root_finding: API reference · book chapter · 13 items

Optimisation

Optimisation algorithms including gradient-based, gradient-free, and stochastic methods.

Crate lib_jsl_optimization: API reference · book chapter · 37 items

Special functions

Special functions: gamma, beta, error, Bessel, Airy, elliptic, hypergeometric and zeta functions, orthogonal polynomials.

Crate lib_jsl_special_functions: API reference · book chapter · 39 items

Linear algebra and transforms

Dense and sparse matrix factorisations, solvers and eigenproblems, Fourier transforms, and readable reference implementations of both.

Linear algebra

Linear algebra in pure Rust: LU, Cholesky, eigensolvers, the SVD and least squares for real and complex matrices, and sparse matrices with direct and Krylov solvers.

Crate lib_jsl_linalg: API reference · book chapter · 41 items

Linear algebra reference

Readable textbook linear algebra algorithms for study, plus a benchmark comparing them with lib_jsl_linalg.

Crate lib_jsl_linalg_reference: API reference · book chapter · 10 items

FFTs

Fast Fourier transform engines and related spectral transforms.

Crate lib_jsl_ffts: API reference · book chapter · 18 items

FFT reference

Readable reference FFT implementations for study, plus a benchmark comparing them with the production engines.

Crate lib_jsl_ffts_reference: API reference · book chapter · 4 items

Probability, statistics and learning

Random numbers, statistical inference and machine learning.

Random

Random number generators, quasi-random sequences, distributions and MCMC.

Crate lib_jsl_random: API reference · book chapter · 29 items

Distributions

Statistics

Descriptive and circular statistics, correlation, robust regression, distances, hypothesis tests, density estimation and resampling.

Crate lib_jsl_statistics: API reference · book chapter · 37 items

Machine learning

Machine learning: regression, classification, clustering, dimensionality reduction, neural networks and boosting.

Crate lib_jsl_machine_learning: API reference · book chapters: regression and classification, clustering and dimensionality reduction, neural networks, ensembles, model selection and sequence models · 40 items

Foundations

Supervised

Regression
Classification

Unsupervised

Clustering
Reduction

Neural networks

Ensembles and model selection

Sequence models

Demonstrations

Signals, information and fields

Signal processing, information theory and coding, and electromagnetics.

DSP

Digital signal processing routines including filters, transforms, resampling, and controls.

Crate lib_jsl_dsp: API reference · book chapters: filter design, FIR and IIR filters, adaptive filters, spectral estimation, windows, resampling and multirate processing, synchronisation, communications, radar and controls, image processing · 146 items

Continuous

Filters
Spectral

Discrete

Windows
Controls
Sources
Digital communications
Image
Filters
Morphology
Geometric transforms
Segmentation
Feature extraction
Filters
FIR
IIR
Resampling
Spectral
Transformations
Adaptive filters
Synchronisation
Multirate and radar

Information

Information theory and coding: source coding, LFSRs, CRC and SHA-256, error-correcting codes.

Crate lib_jsl_information: API reference · book chapters: information theory, error-correcting codes · 19 items

Source coders

LFSRs

Operators

Forward error correction

Electromagnetics

Electromagnetics: fields, antennas, arrays, beamforming, direction finding, transmission lines, propagation, MoM and FDTD.

Crate lib_jsl_electromagnetics: API reference · book chapters: fields, antennas, arrays and beamforming, transmission lines, propagation and computational methods · 39 items

Design and conventions: crates/electromagnetics/DESIGN.md

Foundations

Fields

Antenna models

Arrays and signal models

Algorithms

Transmission lines and networks

Propagation and systems

Advanced algorithms

Demonstrations

Discrete mathematics and geometry

Number theory, graphs and computational geometry.

Number theory

Number theory: modular arithmetic, primes, factorisation, the Chinese remainder theorem and polynomials.

Crate lib_jsl_number_theory: API reference · book chapter: number theory · 10 items

Graph

Graph representations and algorithms: shortest paths, spanning trees, flows and orderings.

Crate lib_jsl_graph: API reference · book chapter: graph algorithms · 11 items

Geometry

Geometry: 1D to 4D types, Delaunay and Voronoi, convex hulls, spatial trees, intersections and mesh processing.

Crate lib_jsl_geometry: API reference · book chapter: computational geometry · 60 items

0D

1D

2D

3D

4D

Algorithms

Foundations and input/output

Shared types, utilities, sorting and file formats.

Core

Shared foundation types, aliases, and traits for the lib_jsl workspace.

Crate lib_jsl_core: API reference · book chapter: foundations · 3 items

Utils

Terminal plots, unit conversion and numerical helpers.

Crate lib_jsl_utils: API reference · book chapter: foundations · 3 items

Sorting and selection

Sorting and selection algorithms.

Crate lib_jsl_sorting: API reference · book chapter: sorting and selection · 5 items

File IO

Readers and writers for WAV, JPEG, PNG, Netpbm, CSV, NumPy .npy and .npz, Matrix Market, MATLAB (levels 4, 5 and 7.3), IDL save files, HDF5 and NetCDF-4, Harwell-Boeing, NetCDF-3, Fortran unformatted and ARFF files.

Crate lib_jsl_file_io: API reference · book chapter: foundations · 18 items

Audio

Image

Data

What the library does not cover

  • Multigrid preconditioners, and complex sparse eigenvalue solvers and preconditioners
  • Calling external BLAS or LAPACK, and distributed computing; parallelism is limited to the optional multithreaded matrix multiply (the threading feature)
  • Hand-written SIMD intrinsics, except in the FFT engines
  • Single precision and generic floating-point types: numerical routines compute in f64 and Complex<f64> (f32 appears only in data containers and file formats)
  • General-purpose containers; data structures appear only where an algorithm needs them (k-d trees, union-find, graph representations, geometry tables)
  • Complex number primitives (provided by num-complex)
  • Arbitrary-precision arithmetic