Skip to content

Commit 0b7afe8

Browse files
committed
diff eq solving and transform
1 parent f4bc03e commit 0b7afe8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/precompile.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ using SnoopPrecompile
33
@precompile_setup begin
44
splist = Any[Jacobi(1, 1), Chebyshev(), Ultraspherical(1)]
55
append!(splist, Any[Jacobi(1, 1, 0..1), Chebyshev(0..1), Ultraspherical(1, 0..1)])
6+
spreal = copy(splist)
67
push!(splist, Chebyshev(Segment(1.0+im,2.0+2im)))
78
# special functions
89
spfns = (sin, cos, exp)
910
v = ones(2)
11+
m = ones(2,2)
12+
a = ones(2,2,2)
1013
@precompile_all_calls begin
1114
for S in splist
1215
f = Fun(S,v)
16+
f(0.1)
1317
1/(f^2+1)
1418
abs(DefiniteIntegral()*f - sum(f))
1519
norm(Derivative()*f-f')
@@ -18,6 +22,20 @@ using SnoopPrecompile
1822
spfn(f)
1923
end
2024
end
25+
for S in spreal
26+
transform(S, v)
27+
itransform(S, v)
28+
transform!(S, v)
29+
itransform!(S, v)
30+
transform(S * S, m)
31+
itransform(S * S, m)
32+
33+
[Derivative(S)^2 + 1; Dirichlet(S)] \ [1,0]
34+
35+
f2 = Fun((x,y) -> x*y, S^2); f2(0.1, 0.1)
36+
P = ProductFun((x,y) -> x*y, S^2); P(0.1, 0.1)
37+
L = LowRankFun((x,y) -> x*y, S^2); L(0.1, 0.1)
38+
end
2139
roots(Fun(sin,Interval(big"0.0", big"1.0")))
2240
end
2341
end

0 commit comments

Comments
 (0)