Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ranges (if possible) #33

Open
nsajko opened this issue Oct 1, 2022 · 1 comment
Open

Support ranges (if possible) #33

nsajko opened this issue Oct 1, 2022 · 1 comment

Comments

@nsajko
Copy link
Contributor

nsajko commented Oct 1, 2022

These all fail with MethodError: no method matching round(::MultiFloat{Float64, 2}, ::RoundingMode{:Down}):

map(Float64x2, 0:5)
Float64x2(0):Float64x2(5)
Float64x2(0):Float64x2(1):Float64x2(5)

The workaround is to use generators:

julia> (Float64x2(i) for i in 0:3)
Base.Generator{UnitRange{Int64}, var"#3#4"}(var"#3#4"(), 0:3)
@dzhang314
Copy link
Owner

Hey @nsajko, thanks for your interest in MultiFloats.jl and for putting this on my radar! The use of MultiFloats in ranges totally hadn't occurred to me, and this is something definitely worth supporting.

Unfortunately, it's been a while since I've had time to work on MultiFloats.jl -- grad school is occupying all my coding capacity at the moment -- but this will certainly be on the list for the next version when I get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants