Skip to content

Commit

Permalink
rearrange precompile statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Oct 19, 2022
1 parent 933f8be commit 68fc919
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ using SnoopPrecompile
append!(splist, Any[Jacobi(1, 1, 0..1), Chebyshev(0..1), Ultraspherical(1, 0..1)])
push!(splist, Chebyshev(Segment(1.0+im,2.0+2im)))
# special functions
spfns = Any[sin, cos, exp]
spfns = (sin, cos, exp)
v = ones(2)
@precompile_all_calls begin
for S in splist
v = [0.0, 1.0]
f = Fun(S,v)
1/(f^2+1)
abs(DefiniteIntegral()*f - sum(f))
norm(Derivative()*f-f')
norm(differentiate(integrate(f)) - f)
norm(differentiate(cumsum(f))-f)
norm(first(cumsum(f)))
for spfn in spfns
spfn(f)
Expand Down

0 comments on commit 68fc919

Please sign in to comment.