Definition of `widemul` in the package
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The issue asks for a type-safe definition of the result type of widemul for fixed-point numbers, with integer bits i1 + i2 and fractional bits f1 + f2. Start by reading the two comments on the issue, since the design is still being discussed and no decision is recorded. Work here needs a maintainer decision on the definition before any code change, so it is not a good first contribution.
由索引模型根据 Issue 内容生成。
描述
This is how multiplication of fractional values works in binary numbers:
- multiplying two numbers with
i1andi2(possibly leading zeros, possibly sign-including) integer bits, the result will have at mosti1 + i2integer bits. - multiplying two numbers with
f1andf2(possibly trailing zeros) fractional digits, the result will have at mostf1 + f2fractional bits.
So the only general, type-safe definition (independent of the values) which is aligned to "doubling the number of bits from Base" is the definition of the result type to have i1 + i2 integer bits and f1 + f2 fractional bits.
- 主要语言
- Julia
- 星标
- 95
- 派生
- 38
- 平均合并
- 19 小时 44 分钟
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaMath/FixedPointNumbers.jl 的其他 Issue
-
bug
难度 5/5 一周以上 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#343 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#337 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 42/100
JuliaMath/FixedPointNumbers.jl#331 · 10 条评论 ·
维护者通常 1 天内回复
-
add-on enhancement
难度 5/5 一周以上 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#311 · 4 条评论 ·
维护者通常 1 天内回复
-
doc wontfix
难度 4/5 3-5 天 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#309 · 3 条评论 ·
维护者通常 1 天内回复
查看 JuliaMath/FixedPointNumbers.jl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
SciML/OrdinaryDiffEq.jl#4875 ·
维护者通常 3 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
SciML/NonlinearSolve.jl#1372 ·
维护者通常 1 天内回复
-
Truncated discrete ccdf and logccdf return incorrect values at the lower atom可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
JuliaStats/Distributions.jl#2095 ·
-
documentation 📜 microphysics💧 ❄️
难度 2/5 1-3 小时 新手友好度 63/100
NumericalEarth/Breeze.jl#1073 ·
维护者通常 1 天内回复