Skip to content

Commit 68fc919

Browse files
committed
rearrange precompile statements
1 parent 933f8be commit 68fc919

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/precompile.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ using SnoopPrecompile
55
append!(splist, Any[Jacobi(1, 1, 0..1), Chebyshev(0..1), Ultraspherical(1, 0..1)])
66
push!(splist, Chebyshev(Segment(1.0+im,2.0+2im)))
77
# special functions
8-
spfns = Any[sin, cos, exp]
8+
spfns = (sin, cos, exp)
9+
v = ones(2)
910
@precompile_all_calls begin
1011
for S in splist
11-
v = [0.0, 1.0]
1212
f = Fun(S,v)
1313
1/(f^2+1)
1414
abs(DefiniteIntegral()*f - sum(f))
1515
norm(Derivative()*f-f')
16-
norm(differentiate(integrate(f)) - f)
17-
norm(differentiate(cumsum(f))-f)
1816
norm(first(cumsum(f)))
1917
for spfn in spfns
2018
spfn(f)

0 commit comments

Comments
 (0)