Use of the `info` field in the `Smith` and `AbstractHermite` types over throwing errors?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 22/100
Hướng nghiên cứu
Start from the Smith, RowHermite, and ColumnHermite type definitions and their show methods, then compare with LinearAlgebra.QR and LinearAlgebra.issuccess conventions. The proposal needs agreed bit meanings for info, changes wherever factorizations are constructed, and updated display behavior; it is also explicitly breaking. Done would mean documented semantics, tests for each failure bit, and a reviewed decision on the API change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Like other LinearAlgebra.Factorization types, the Smith, RowHermite, and ColumnHermite types have an info::LinearAlgebra.BlasInt field that is zero when the factorization is a success. This could be used to convey to a user why a factorization failed without throwing an exception. This is what factorization types in the linear algebra standard library do (for instance, LinearAlgebra.QR).
I don't know the details of how this value is intended to be interpreted, but I do think that we can use this value to convey information about why a factorization failed. For this, we'd need some standards, and my idea is to set each bit of info to indicate something about the factorization failure:
- The first bit should be 1 if the Smith/Hermite normal form matrix does not take the expected form (diagonal for SNF, trapezoidal for HNF).
- The second bit should be 1 if the left unimodular factor is not unimodular.
- The third bit should be 1 if the right unimodular factor is not unimodular.
This information can be exploited by the show(::IO, ::MIME"text/plain", ::T) method to explain to a user why a factorization failed in interactive use. My issue is that users writing non-interactive code would have to manually check for successful factorizations with LinearAlgebra.issuccess. Of course, this would be a breaking change if implemented.
- Ngôn ngữ chính
- Julia
- Star
- 6
- Fork
- 3
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
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 brainandforce/NormalForms.jl
-
tagbot-manual
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Restructure factorization typesĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
brainandforce/NormalForms.jl#17 · 1 bình luận ·
-
good first issue help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
brainandforce/NormalForms.jl#16 · 1 bình luận ·
Tất cả issue của brainandforce/NormalForms.jl
Issue tương tự
-
The entrypoint deletes its manifest runfiles tree at exit even under TEST_TMPDIRCó thể đã có người làm @TrapsterDK đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
periareon/rules_julia#64 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
JuliaAI/MLJTransforms.jl#108 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add to "Why Wren.jl"Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
JuliaBayes/Wren.jl#370 · 3 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
CliMA/Oceananigans.jl#6603 ·
Maintainer thường phản hồi trong vòng 1 ngày