Add FastTanhSinhQuadrature.jl interface#310
Merged
ChrisRackauckas merged 5 commits intoApr 4, 2026
Merged
Conversation
|
the package has been merged to JuliaRegistries. Checks should now pass |
|
Hi @ChrisRackauckas , would it be possible to try again the checks ? |
Add support for FastTanhSinhQuadrature.jl as a new integration backend via package extension. FastTanhSinhQuadrature.jl provides high-performance SIMD-accelerated Tanh-Sinh (double exponential) quadrature with support for 1D, 2D, and 3D integration. Changes: - Add FastTanhSinhQuadratureJL algorithm struct with tol and max_levels parameters - Create IntegralsFastTanhSinhQuadratureExt extension module - Add to Project.toml weakdeps, extensions, compat, extras, and test targets - Add to interface tests with appropriate capability flags - Export FastTanhSinhQuadratureJL from main module Note: FastTanhSinhQuadrature.jl is not yet registered in the General registry. Users can add it from: https://github.com/svretina/FastTanhSinhQuadrature.jl Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
d9e39fe to
ed73616
Compare
The upstream master added a verbose keyword argument passed through the IntegralCache fallback. The extension needs to accept it to avoid MethodError on the kwarg mismatch. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
FastTanhSinhQuadrature.quad does not support vector-valued integrands (it attempts scalar addition on vector results). Set nout = 1 to skip vector integrand tests for this algorithm. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d tests Even nout=1 creates a length-1 Vector output which FastTanhSinhQuadrature.quad cannot handle (it requires scalar return values). Setting nout=0 skips all vector-valued integrand tests. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related announcement: https://discourse.julialang.org/t/ann-fasttanhsinhquadrature-jl-high-performance-simd-accelerated-numerical-integration/135271
Changes
FastTanhSinhQuadratureJLalgorithm struct withtolandmax_levelsparametersIntegralsFastTanhSinhQuadratureExtextension module inext/Project.toml: weakdeps, extensions, compat, extras, and test targetsnout=Inf,min_dim=1,max_dim=3,allows_batch=false,allows_iip=false)FastTanhSinhQuadratureJLfrom main moduleUsage Example
Note
FastTanhSinhQuadrature.jl is not yet registered in the General registry. Users will need to add it from GitHub:
Test plan
reltolparameter is passed through correctly🤖 Generated with Claude Code