Skip to content

Commit 0e8f779

Browse files
authored
move fallback roots to AFB (#168)
1 parent 2cf0193 commit 0e8f779

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1919
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2020

2121
[compat]
22-
ApproxFunBase = "0.7.50"
22+
ApproxFunBase = "0.7.55"
2323
ApproxFunBaseTest = "0.1"
2424
Aqua = "0.5"
2525
BandedMatrices = "0.16, 0.17"

src/roots.jl

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,6 @@ function complexroots(f::Fun{C}) where C<:Chebyshev
4141
end
4242
end
4343

44-
#function roots(f::Fun)
45-
# irts=map(real,filter!(x->abs(x)<=1.+10eps(),filter!#(isreal,complexroots(f.coefficients))))
46-
#
47-
# map!(x->x>1. ? 1. : x,irts)
48-
# map!(x->x<-1. ? -1. : x,irts)
49-
#
50-
# if length(irts)==0
51-
# Float64[]
52-
# else
53-
# fromcanonical(f,irts)
54-
# end
55-
#end
56-
57-
function roots(f::Fun)
58-
f2=Fun(f,domain(f)) # default is to convert to Chebyshev/Fourier
59-
if space(f2)==space(f)
60-
error("roots not implemented for "*string(typeof(f)))
61-
else
62-
roots(f2)
63-
end
64-
end
65-
6644
function roots(f::Fun{<:Chebyshev})
6745
g = Fun(space(f), float.(coefficients(f)))
6846
gg = setcanonicaldomain(g)

0 commit comments

Comments
 (0)