Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

big chebyshevu #145

Open
dlfivefifty opened this issue Jun 25, 2021 · 3 comments
Open

big chebyshevu #145

dlfivefifty opened this issue Jun 25, 2021 · 3 comments

Comments

@dlfivefifty
Copy link
Member

julia> plan_chebyshevutransform(big.([1.,2.]))
ERROR: MethodError: no method matching plan_chebyshevutransform(::Vector{BigFloat}, ::Val{1})
Closest candidates are:
  plan_chebyshevutransform(::AbstractVector{T}, ::Val{1}) where T<:Union{Float32, Float64, ComplexF32, ComplexF64} at /Users/sheehanolver/.julia/packages/FastTransforms/47F6t/src/chebyshevtransform.jl:250
  plan_chebyshevutransform(::AbstractVector{T} where T) at /Users/sheehanolver/.julia/packages/FastTransforms/47F6t/src/chebyshevtransform.jl:263
Stacktrace:
 [1] plan_chebyshevutransform(x::Vector{BigFloat})
   @ FastTransforms ~/.julia/packages/FastTransforms/47F6t/src/chebyshevtransform.jl:263
 [2] top-level scope
   @ REPL[68]:1
@MikaelSlevinsky
Copy link
Member

Second kind points with first kind polynomials doesn't work either

julia> chebyshevtransform(BigFloat[1, 2], Val(2))
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getproperty(x::FastTransforms.ChebyshevTransformPlan{BigFloat, 2, true, Nothing}, f::Symbol)
   @ Base ./Base.jl:33
 [2] *(P::FastTransforms.ChebyshevTransformPlan{BigFloat, 2, true, Nothing}, x::Vector{BigFloat})
   @ FastTransforms ~/.julia/dev/FastTransforms/src/chebyshevtransform.jl:70
 [3] chebyshevtransform!(x::Vector{BigFloat}, kind::Val{2})
   @ FastTransforms ~/.julia/dev/FastTransforms/src/chebyshevtransform.jl:78
 [4] chebyshevtransform(x::Vector{BigFloat}, kind::Val{2})
   @ FastTransforms ~/.julia/dev/FastTransforms/src/chebyshevtransform.jl:88
 [5] top-level scope
   @ REPL[19]:1

@jishnub
Copy link
Member

jishnub commented Sep 27, 2022

Related:

julia> F = FastTransforms.plan_chebyshevtransform(rand(BigFloat, 4))
FastTransforms.ChebyshevTransformPlan{BigFloat, 1, Nothing, false, 1, UnitRange{Int64}}(#undef)

julia> F.plan
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getproperty(x::FastTransforms.ChebyshevTransformPlan{BigFloat, 1, Nothing, false, 1, UnitRange{Int64}}, f::Symbol)
   @ Base ./Base.jl:38
 [2] top-level scope
   @ REPL[110]:1

The constructor should wrap a plan, I guess?

@dlfivefifty
Copy link
Member Author

F.plan shouldn't work because its not defined on purpose. What's missing is overloads of * that reduce to FFT calls a la:

function *(P::ChebyshevTransformPlan{T,1,Nothing,false}, x::AbstractVector{T}) where T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants