diff --git a/Project.toml b/Project.toml index 9dff5742..fbd59188 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/aaa.jl b/src/aaa.jl index ad657e19..19856754 100644 --- a/src/aaa.jl +++ b/src/aaa.jl @@ -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 diff --git a/src/abstract-rational.jl b/src/abstract-rational.jl index 0310e186..2b991d3b 100644 --- a/src/abstract-rational.jl +++ b/src/abstract-rational.jl @@ -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