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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RFAZygoteExt = "Zygote"

[compat]
ArnoldiVandermonde = "0.1.0"
ComplexRegions = "0.3.9"
ComplexRegions = "0.3.9, 0.4"
ComplexValues = "0.3"
ForwardDiff = "1"
GenericLinearAlgebra = "0.3, 0.4"
Expand Down
8 changes: 3 additions & 5 deletions src/aaa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,14 @@ function aaa(
y, w = real(y), real(w)
end

r = Barycentric(x, y, w)
if stats
if isreal(w) && isreal(y)
weights = real.(weights)
vals = real.(vals)
end
st = ConvergenceStats(bestm-1, err, nbad, nodes, vals, weights, pol)
r = Barycentric(x, y, w; stats=st)
return r, (; bestindex=bestm-1, err, nbad, nodes, vals, weights, poles=pol)
else
r = Barycentric(x, y, w)
return r
end

return r
end
4 changes: 2 additions & 2 deletions src/abstract-rational.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ abstract type AbstractRationalInterpolant{T,S} <: AbstractRationalFunction{S} en
# COV_EXCL_START
# Interface stubs
"nodes(r) returns a vector of the interpolation nodes of the rational interpolant."
nodes(::AbstractRationalInterpolant) = error("`nodes` not implemented for $(typeof(r))")
nodes(r::AbstractRationalInterpolant) = error("`nodes` not implemented for $(typeof(r))")
"values(r) returns a vector of the nodal values of the rational interpolant `r`."
Base.values(::AbstractRationalInterpolant) = error("`values` not implemented for $(typeof(r))")
Base.values(r::AbstractRationalInterpolant) = error("`values` not implemented for $(typeof(r))")
Base.length(r::AbstractRationalInterpolant) = length(nodes(r))
# COV_EXCL_STOP

Expand Down
Loading