Negative number of fractional bits
Maintainer thường phản hồi trong vòng 1 ngày
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
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách xem xét kiểu Fixed hiện có và các phương thức giới hạn tham số bit phân số ở các giá trị không âm. So sánh hành vi âm-bit đã được minh họa và xác định xem package nên tổng quát hóa Fixed hay giới thiệu một kiểu scaled-integer riêng; để hoàn thành, cần có một thiết kế đã được quyết định và hành vi được hỗ trợ cho các kiểu được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
With Fixed we can reduce the number of fractional bits to trade range for precision:
julia> Fixed{Int8, 2} .|> (typemin, typemax, eps)
(-32.0Q5f2, 31.75Q5f2, 0.25Q5f2)
julia> Fixed{Int8, 1} .|> (typemin, typemax, eps)
(-64.0Q6f1, 63.5Q6f1, 0.5Q6f1)
julia> Fixed{Int8, 0} .|> (typemin, typemax, eps)
(-128.0Q7f0, 127.0Q7f0, 1.0Q7f0)
However, currently support stops here. It would be useful to have a
julia> Fixed{Int8, -1} .|> (typemin, typemax, eps)
(-256.0Q8f-1, 254.0Q8f-1, 2.0Q8f-1)
and all the other types with a negative number of fractional bits available, when range demands are high, precision demands are low and you want to distribute the available values uniformly in the range or want to use integer arithmetic (so floating points are not an option).
This would not really match the packet's name as they are not really fixed-point numbers (with the "point" being outside of the represented bits). On the other hand, an implementation of these numbers (scaled integers) seems to be completely identical in representing the type (struct) and should cover both positive and negative numbers of fractional bits if some methods are generalized or their domain restrictions are relaxed.
So what would these scaled integers be? Would they use a slightly generalized version of Fixed, would they be a ScaledInteger within the FixedPointNumbers.jl package or would they be the topic of a ScaledIntegers.jl package?
- Ngôn ngữ chính
- Julia
- Star
- 95
- Fork
- 38
- Merge trung bình
- 16 giờ 31 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 JuliaMath/FixedPointNumbers.jl
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
JuliaMath/FixedPointNumbers.jl#343 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
JuliaMath/FixedPointNumbers.jl#342 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
JuliaMath/FixedPointNumbers.jl#337 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
JuliaMath/FixedPointNumbers.jl#331 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs comments
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
JuliaMath/FixedPointNumbers.jl#318 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của JuliaMath/FixedPointNumbers.jl
Issue tương tự
-
add-on doc enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JuliaGraphics/ColorTypes.jl#344 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
R dockerfile no longer buildsĐang mởR
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
eWaterCycle/remotebmi#58 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
`enzymexla.linalg.lu` lowering fails for a tall matrix: the permutation is built with the pivot typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EnzymeAD/Enzyme-JAX#3286 ·
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
SciML/LinearSolve.jl#1359 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày