Can't use empty vectors in `th_cheb2leg` or `th_leg2cheb`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu trong src/toeplitzhankel.jl, đặc biệt là các đường dẫn plan_th_leg2cheb! và plan_th_cheb2leg! được xác định trong stack trace. Tái hiện cả hai lệnh gọi với Float64[] và theo dõi cách chúng xử lý các chiều có độ dài bằng không. Được xem là hoàn thành khi th_leg2cheb(Float64[]) và th_cheb2leg(Float64[]) chạy hoàn tất mà không gặp BoundsError đã được báo cáo hoặc lỗi kích thước không hợp lệ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This originally came up in https://github.com/JuliaApproximation/ClassicalOrthogonalPolynomials.jl/issues/196
julia> FastTransforms.th_leg2cheb(Float64[])
ERROR: BoundsError: attempt to access 0×0 Matrix{Float64} at index [1, 1:0]
Stacktrace:
[1] throw_boundserror(A::Matrix{Float64}, I::Tuple{Int64, Base.Slice{Base.OneTo{Int64}}})
@ Base .\abstractarray.jl:737
[2] checkbounds
@ .\abstractarray.jl:702 [inlined]
[3] view
@ .\subarray.jl:184 [inlined]
[4] maybeview
@ .\views.jl:148 [inlined]
[5] dotview
@ .\broadcast.jl:1244 [inlined]
[6] _leg2chebTH_TLC(::Type{Float64}, mn::Tuple{Int64}, d::Int64)
@ FastTransforms C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:181
[7] _broadcast_getindex_evalf
@ .\broadcast.jl:709 [inlined]
[8] _broadcast_getindex
@ .\broadcast.jl:692 [inlined]
[9] #31
@ .\broadcast.jl:1118 [inlined]
[10] ntuple
@ .\ntuple.jl:48 [inlined]
[11] copy
@ .\broadcast.jl:1118 [inlined]
[12] materialize
@ .\broadcast.jl:903 [inlined]
[13] plan_th_leg2cheb!
@ C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:203 [inlined]
[14] plan_th_leg2cheb!
@ C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:651 [inlined]
[15] th_leg2cheb(::Vector{Float64})
@ FastTransforms C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:652
[16] top-level scope
@ REPL[20]:1
julia> FastTransforms.th_cheb2leg(Float64[])
ERROR: ArgumentError: invalid Array dimensions
Stacktrace:
[1] Array
@ .\boot.jl:477 [inlined]
[2] Array
@ .\boot.jl:486 [inlined]
[3] zeros
@ .\array.jl:636 [inlined]
[4] zeros
@ .\array.jl:632 [inlined]
[5] _cheb2legTH_TLC(::Type{Float64}, mn::Tuple{Int64}, d::Int64)
@ FastTransforms C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:218
[6] _broadcast_getindex_evalf
@ .\broadcast.jl:709 [inlined]
[7] _broadcast_getindex
@ .\broadcast.jl:692 [inlined]
[8] #31
@ .\broadcast.jl:1118 [inlined]
[9] ntuple
@ .\ntuple.jl:48 [inlined]
[10] copy
@ .\broadcast.jl:1118 [inlined]
[11] materialize
@ .\broadcast.jl:903 [inlined]
[12] plan_th_cheb2leg!
@ C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:235 [inlined]
[13] plan_th_cheb2leg!
@ C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:651 [inlined]
[14] th_cheb2leg(::Vector{Float64})
@ FastTransforms C:\Users\danjv\.julia\packages\FastTransforms\S7huq\src\toeplitzhankel.jl:652
[15] top-level scope
@ REPL[21]:1
- Ngôn ngữ chính
- Julia
- Star
- 282
- Fork
- 27
- Merge trung bình
- 53 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của JuliaApproximation/FastTransforms.jl
-
Loading FastTransforms.jl can make FFTs via FFTW.jl 100x slower due to threading conflictsCó thể đã có người làm @dlfivefifty đã nhận 90 ngày trước. Đang mở
JuliaApproximation/FastTransforms.jl#267 · 2 reaction · 2 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
JuliaApproximation/FastTransforms.jl#266 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
JuliaApproximation/FastTransforms.jl#263 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
JuliaApproximation/FastTransforms.jl#257 · 1 bình luận ·
-
Allocating lmul!Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
JuliaApproximation/FastTransforms.jl#253 · 7 bình luận ·
Tất cả issue của JuliaApproximation/FastTransforms.jl
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
oxfordcontrol/COSMO.jl#211 ·
-
documentation
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Out-of-place JLArray/GPU problem with VectorContinuousCallback scalar-indexes (callback cache built with CPU zeros)Có thể đã có người làm @ChrisRackauckas-Claude đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
SciML/OrdinaryDiffEq.jl#4813 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ARKODE: callbacks that modify `u` throw MethodError on reinitCó thể đã có người làm @devmotion đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
SciML/Sundials.jl#575 ·
-
broken links in docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày