SparseGridsKit.jl: Adaptive single- and multi-fidelity sparse grid approximation in Julia
SparseGridsKit.jl: Adaptive single- and multi-fidelity sparse grid approximation in Julia - Published in JOSS (2025)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Academic email domains
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Repository
Simple sparse grid interpolation Julia implementation
Basic Info
- Host: GitHub
- Owner: benmkent
- License: agpl-3.0
- Language: Julia
- Default Branch: main
- Homepage: https://benmkent.github.io/SparseGridsKit.jl/
- Size: 27.4 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 9
- Releases: 3
Metadata Files
README.md
SparseGridsKit.jl
A simple implementation of sparse grid polynomial interpolation and corresponding interpolation.
To add the package use the following command:
] add SparseGridsKit
The construction is based upon the sparse operators introduced by Smolyak (Smolyak, 1963).
Key papers defining the approximation formulation include (Barthelmann, 2000), (Gerstner, 1998) and (Gerstner, 2003).
This construction of the approximation is inspired by the Sparse Grids MATLAB Kit (Piazzola, 2024).
This documentation is example driven, with full documentation for each subset of functions given at the end of the relevant example. This is not a thorough mathematical description of sparse grid approximation, but a practical guide to using the software.
The package is still under development and by no means complete.
Statement of Need
This Julia implementation closely follows the mathematical description in the adaptive sparse grid approximation literature. This package aims to aid fast algorithm development and analysis, with an emphasis on applications in uncertainty quantification.
Contribution Guidelines
To report bugs, seek support or submit request features, please use the GitHub issue tracker. Please feel free to contribute and submit pull requests.
Example
In the simplest case one often wants to create a sparse grid using a sequence of nested sets Clenshaw--Curtis points and a Smolyak type multi-index set.
To this end, one uses create_sparsegrid with the desired Smolyak multi-index set.
In this case we choose a grid with dimension n=3 and Smolyak level w=3.
```julia
using SparseGridsKit, Plots, LaTeXStrings
Test create_sparsegrid
n,k =3,3
knots = [GaussHermitePoints(), CCPoints(), UniformPoints()]
rules = [Linear(), Doubling(), Doubling()]
miset = createsmolyakmiset(n,k)
sg = createsparsegrid(miset, knots=knots, rule=rules)
nsteps = 100
@gif for i in range(0, stop = 2π, length = nsteps)
plot(sg)
plot!(
title="Sparse Grid n,k="string(n)","*string(k),
xlabel=L"y1",
ylabel=L"y2",
zlabel=L"y3",
camera = (20 * (1 + cos(i)),10 * (1 + cos(i)))
)
end
```

Bibliography
- Smolyak, S. (1963). Quadrature and interpolation formulae on tensor products of certain function classes. Soviet Math. Dokl., 4(5), 240–243.
- Volker Barthelmann, Erich Novak, & Klaus Ritter (2000). High dimensional polynomial interpolation on sparse grids. Advances in Computational Mathematics, 12(4), 273–288.
- Gerstner, T., & Griebel, M. (1998). Numerical integration using sparse grids. Numerical algorithms, 18(3), 209–232.
- Gerstner, T., & Griebel, M. (2003). Dimension–Adaptive Tensor–Product Quadrature. Computing, 71(1), 65–87.
- Piazzola, C., & Tamellini, L. (2024). Algorithm 1040: The Sparse Grids MATLAB Kit - a MATLAB implementation of sparse grids for high-dimensional function approximation and uncertainty quantification. ACM Transactions on Mathematical Software, 50(1), 1–22.
Owner
- Login: benmkent
- Kind: user
- Repositories: 1
- Profile: https://github.com/benmkent
JOSS Publication
SparseGridsKit.jl: Adaptive single- and multi-fidelity sparse grid approximation in Julia
Tags
numerical approximation surrogate modelling sparse grids multi-fidelity uncertainty quantificationGitHub Events
Total
- Create event: 22
- Commit comment event: 6
- Release event: 3
- Issues event: 25
- Watch event: 1
- Delete event: 15
- Issue comment event: 18
- Public event: 1
- Push event: 146
- Pull request review event: 1
- Pull request event: 27
- Fork event: 3
Last Year
- Create event: 22
- Commit comment event: 6
- Release event: 3
- Issues event: 25
- Watch event: 1
- Delete event: 15
- Issue comment event: 18
- Public event: 1
- Push event: 146
- Pull request review event: 1
- Pull request event: 27
- Fork event: 3
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 16
- Total pull requests: 18
- Average time to close issues: 25 days
- Average time to close pull requests: 3 days
- Total issue authors: 3
- Total pull request authors: 4
- Average comments per issue: 0.31
- Average comments per pull request: 0.56
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 16
- Pull requests: 18
- Average time to close issues: 25 days
- Average time to close pull requests: 3 days
- Issue authors: 3
- Pull request authors: 4
- Average comments per issue: 0.31
- Average comments per pull request: 0.56
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- benmkent (14)
- dannys4 (1)
- JuliaTagBot (1)
Pull Request Authors
- benmkent (14)
- jbytecode (2)
- baxmittens (1)
- danielskatz (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 2 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
juliahub.com: SparseGridsKit
Simple sparse grid interpolation Julia implementation
- Homepage: https://benmkent.github.io/SparseGridsKit.jl/
- Documentation: https://docs.juliahub.com/General/SparseGridsKit/stable/
- License: AGPL-3.0-or-later
-
Latest release: 0.2.1
published 10 months ago
Rankings
Dependencies
- actions/checkout v4 composite
- julia-actions/cache v2 composite
- julia-actions/setup-julia v2 composite
- actions/checkout v4 composite
- julia-actions/cache v2 composite
- julia-actions/julia-runtest v1.11.1 composite
- julia-actions/setup-julia v2 composite
