You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we enhance the promotion of SimpleRatio so that it can work with FixedPointNumbers? Many images are encoded in FixedPointNumbers and this would be useful to apply Interpolations to them directly.
Minimum Working Example:
julia>using Ratios, FixedPointNumbers
julia>SimpleRatio(5,3) *0.035N0f8
ERROR: promotion of types SimpleRatio{Int64} and N0f8 failed to change any arguments
Stacktrace:
[1] error(::String, ::String, ::String)
@ Base .\error.jl:42
[2] sametype_error(input::Tuple{SimpleRatio{Int64}, N0f8})
@ Base .\promotion.jl:316
[3] not_sametype(x::Tuple{SimpleRatio{Int64}, N0f8}, y::Tuple{SimpleRatio{Int64}, N0f8})
@ Base .\promotion.jl:310
[4] promote
@ .\promotion.jl:293 [inlined]
[5] *(x::SimpleRatio{Int64}, y::N0f8)
@ Base .\promotion.jl:322
[6] top-level scope
@ REPL[51]:1
Could we enhance the promotion of
SimpleRatio
so that it can work withFixedPointNumbers
? Many images are encoded inFixedPointNumbers
and this would be useful to applyInterpolations
to them directly.Minimum Working Example:
Motivating Example:
xref: JuliaMath/Interpolations.jl#413
cc: @johnnychen94
The text was updated successfully, but these errors were encountered: