Hi,Is there any definition of NaN for Integer types? Let's say I want to create a matrix with some unspecified entries, that is entries marked special. I am using NaN for Float64 but would like to make it work with other types too. Suggestions?
bitstype 64 NullableInt
+(x::NullableInt, y::NullableInt) = ifelse((reinterpret(Int,x) !== typemin(Int)) & (reinterpret(Int,y) !== typemin(Int)),reinterpret(NullableInt, reinterpret(Int,x) + reinterpret(Int,y)),reinterpret(NullableInt, typemin(Int)),)
Thank you all, I'll try to figure out a good solution for my use case.
-Júlio