Return type of `*` for `x::Gray{Bool}` and real number
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the * behavior shown for Gray{Bool} and compare it with the Gray{N0f8} examples. The issue leaves the desired return type undecided and links ColorTypes.jl issue 235 for context; check that discussion before assessing what change is appropriate. Done means the intended return type is agreed on and the examples behave consistently.
由索引模型根据 Issue 内容生成。
描述
I haven't made up my mind about what the return type should be if the definition of one for Colorant types is the real number 1. (cf. https://github.com/JuliaGraphics/ColorTypes.jl/issues/235)
I found an odd type promotion in the case study.
julia> Gray{N0f8}(1) * 1
Gray{Float32}(1.0f0)
julia> Gray{N0f8}(1) * true
Gray{N0f8}(1.0)
julia> Gray{N0f8}(1) * 1N0f8
Gray{N0f8}(1.0)
julia> Gray{Bool}(1) * 1 # !?
Gray{BigFloat}(1.0)
julia> Gray{Bool}(1) * true # !?
Gray{Float32}(1.0f0)
julia> Gray{Bool}(1) * 1N0f8
Gray{N0f8}(1.0)
- 主要语言
- Julia
- 星标
- 59
- 派生
- 24
- 平均合并
- 13 小时 2 分钟
- 30 天内合并 PR
- 15
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaGraphics/ColorVectorSpace.jl 的其他 Issue
-
tagbot-manual
难度 1/5 1 小时以内 新手友好度 25/100
JuliaGraphics/ColorVectorSpace.jl#233 · 1 条评论 ·
维护者通常 1 天内回复
-
breaking
难度 3/5 1-2 天 新手友好度 52/100
JuliaGraphics/ColorVectorSpace.jl#213 · 2 条评论 ·
维护者通常 1 天内回复
-
breaking
难度 4/5 3-5 天 新手友好度 45/100
JuliaGraphics/ColorVectorSpace.jl#208 ·
维护者通常 1 天内回复
-
feature good first issue help wanted
难度 2/5 1-3 小时 新手友好度 45/100
JuliaGraphics/ColorVectorSpace.jl#181 ·
维护者通常 1 天内回复
-
breaking bug
难度 3/5 1-2 天 新手友好度 52/100
JuliaGraphics/ColorVectorSpace.jl#178 · 1 条评论 ·
维护者通常 1 天内回复
查看 JuliaGraphics/ColorVectorSpace.jl 的全部 Issue
相似的 Issue
-
backport 1.14 GC
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
JuliaDiff/TaylorSeries.jl#445 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
control-toolbox/CTActions#139 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
SciML/Optimization.jl#1448 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
SciML/PETScDiffEq.jl#362 ·
维护者通常 1 天内回复