Fallback of `floattype()` for non-concrete types
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start at the floattype entry point and compare its non-concrete fallback with promote_rule, using the examples in the issue as the initial reproduction. Done means non-concrete types such as Normed and FixedPoint return an AbstractFloat-compatible fallback, with coverage for the reported cases.
索引モデルが issue の本文から書いたものです。
説明
On FPN v0.9.1, floattype() may return a type which does not belong to AbstractFloat for non-concrete types.
julia> floattype(Normed{UInt8, 8})
Float32
julia> floattype(Normed{UInt8})
Float32
julia> floattype(Normed{UInt64})
BigFloat
julia> floattype(Normed)
Normed
julia> floattype(FixedPoint)
FixedPoint
I don't think this will cause any practical problems for now, but considering promote_rule, I think it should return a BigFloat.
This might be a breaking change, but I think it can be treated as a bug fix.
Also, for information on disabling the "final" fallback for floattype, please refer to PR #177.
- 主要言語
- Julia
- スター
- 95
- フォーク
- 38
- 平均マージ
- 16時間 31分
- マージ済み PR(30日)
- 9
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaMath/FixedPointNumbers.jl のほかの issue
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
JuliaMath/FixedPointNumbers.jl#343 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
JuliaMath/FixedPointNumbers.jl#337 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
JuliaMath/FixedPointNumbers.jl#331 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
needs comments
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
JuliaMath/FixedPointNumbers.jl#318 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
add-on enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
JuliaMath/FixedPointNumbers.jl#311 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
JuliaMath/FixedPointNumbers.jl の issue をすべて見る
似ている issue
-
add-on doc enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JuliaGraphics/ColorTypes.jl#344 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`enzymexla.linalg.lu` lowering fails for a tall matrix: the permutation is built with the pivot typeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EnzymeAD/Enzyme-JAX#3286 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
SciML/LinearSolve.jl#1359 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
EnzymeAD/ReactantNitro.jl#13 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
epiforecasts/BVDOutbreakSize#1009 ·
メンテナーはふだん 1 日以内に返信