Use of the `info` field in the `Smith` and `AbstractHermite` types over throwing errors?
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Julia
- スター
- 6
- フォーク
- 3
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
brainandforce/NormalForms.jl のほかの issue
-
tagbot-manual
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
brainandforce/NormalForms.jl#17 · コメント 1 件 ·
-
good first issue help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
brainandforce/NormalForms.jl#16 · コメント 1 件 ·
brainandforce/NormalForms.jl の issue をすべて見る
似ている issue
-
The entrypoint deletes its manifest runfiles tree at exit even under TEST_TMPDIR対応中かも @TrapsterDK が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
periareon/rules_julia#64 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
JuliaAI/MLJTransforms.jl#108 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
CliMA/Oceananigans.jl#6603 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
JuliaGPU/GemmKernels.jl#225 ·