Hi there!
First time here, so I’ll try to be clear and go straight to the point. I’m trying to use the ChebyshevApprox.jl package, specifically the chebyshev_weights_extrema() function. However, even when using the example provided in the README file from this very same package, a type error keeps coming up.
ERROR: MethodError: no method matching chebyshev_weights_extrema(::Vector{Float64}, ::Tuple{Vector{Float64}, Vector{Float64}}, ::Vector{Int64}, ::Matrix{Float64})
Closest candidates are:
chebyshev_weights_extrema(::Array{T, N}, ::Tuple{Vararg{Vector{T}, N}}, ::Union{Tuple{Vararg{S, N}}, Vector{S}}, ::Any) where {T<:AbstractFloat, N, S<:Integer}
@ ChebyshevApprox C:\Users\Ruan\.julia\packages\ChebyshevApprox\rqVxH\src\chebyshev_approx_functions.jl:621
chebyshev_weights_extrema(::Array{T, N}, ::Array{Vector{T}, 1}, ::Union{Tuple{Vararg{S, N}}, Vector{S}}, ::Any) where {T<:AbstractFloat, N, S<:Integer}
@ ChebyshevApprox C:\Users\Ruan\.julia\packages\ChebyshevApprox\rqVxH\src\chebyshev_approx_functions.jl:1819
chebyshev_weights_extrema(::Vector{T}, ::Vector{T}, ::Union{Vector{S}, S}, ::Any) where {T<:AbstractFloat, S<:Integer}
@ ChebyshevApprox C:\Users\Ruan\.julia\packages\ChebyshevApprox\rqVxH\src\chebyshev_approx_functions.jl:1808
The second entry is taken directly from the example, where nodes_x1 = chebyshev_extrema(11)
and nodes_x2 = chebyshev_extrema(15)
, therefore the entry to chebyshev_weights_extrema() function being nodes = (nodes_x1,nodes_x2)
. I’ve tried also nodes = [nodes_x1,nodes_x2]
as it seemingly indicate it’s possible at chebyshev_approx_functions.jl:1819
.
Hope this is a relevant question, I couldn’t find any answers elsewhere.