Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions ext/IntegralsFastGaussQuadratureExt.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
module IntegralsFastGaussQuadratureExt
using Integrals
if isdefined(Base, :get_extension)
import FastGaussQuadrature
import FastGaussQuadrature: gausslegendre
# and eventually gausschebyshev, etc.
else
import ..FastGaussQuadrature
import ..FastGaussQuadrature: gausslegendre
end
import FastGaussQuadrature
import FastGaussQuadrature: gausslegendre

using LinearAlgebra

Integrals.gausslegendre(n) = FastGaussQuadrature.gausslegendre(n)
Expand Down
2 changes: 1 addition & 1 deletion ext/IntegralsForwardDiffExt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module IntegralsForwardDiffExt
using Integrals
isdefined(Base, :get_extension) ? (using ForwardDiff) : (using ..ForwardDiff)
using ForwardDiff
### Forward-Mode AD Intercepts

function Integrals._evaluate!(f, y, u,
Expand Down
13 changes: 4 additions & 9 deletions ext/IntegralsZygoteExt.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
module IntegralsZygoteExt
using LinearAlgebra: dot
using Integrals
if isdefined(Base, :get_extension)
using Zygote
import ChainRulesCore
import ChainRulesCore: Tangent, NoTangent, ProjectTo
else
using ..Zygote
import ..Zygote.ChainRulesCore
import ..Zygote.ChainRulesCore: Tangent, NoTangent, ProjectTo
end
using Zygote
import ChainRulesCore
import ChainRulesCore: Tangent, NoTangent, ProjectTo

ChainRulesCore.@non_differentiable Integrals.checkkwargs(kwargs...)
ChainRulesCore.@non_differentiable Integrals.isinplace(f, args...) # fixes #99
ChainRulesCore.@non_differentiable Integrals.init_cacheval(alg, prob)
Expand Down
4 changes: 0 additions & 4 deletions src/Integrals.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module Integrals

if !isdefined(Base, :get_extension)
using Requires
end

using Reexport, MonteCarloIntegration, QuadGK, HCubature
@reexport using SciMLBase
using LinearAlgebra
Expand Down
Loading