-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
suming over an Array{UInt8} automatically promotes to UInt64 to prevent overflow. yet doing so over an Array{Gray{UFixed{UInt8}}} does not. would be nice if these behaved similarly.
julia> using ColorVectorSpace
julia> dUInt8 = rand(UInt8,3,3,3);
julia> typeof(sum(dUInt8, 3))
Array{UInt64,3}
julia> dGreyUInt8 = convert(Array{ColorTypes.Gray{FixedPointNumbers.UFixed{UInt8,8}},3}, dUInt8);
julia> typeof(dGreyUInt8)
Array{ColorTypes.Gray{FixedPointNumbers.UFixed{UInt8,8}},3}
julia> typeof(sum(dGreyUInt8, 3))
Array{ColorTypes.Gray{FixedPointNumbers.UFixed{UInt8,8}},3}
Metadata
Metadata
Assignees
Labels
No labels