We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4b705f + d8e7a19 commit ddfd7abCopy full SHA for ddfd7ab
src/basic.jl
@@ -6,7 +6,8 @@ struct Space{T}
6
s::T
7
end
8
9
-Space(s::Type{T}) where {T<:Number} = Space(typemin(T):typemax(T))
+Space(s::Type{T}) where {T<:Integer} = Space(typemin(T):typemax(T))
10
+Space(s::Type{T}) where {T<:AbstractFloat} = Space(typemin(T) .. typemax(T))
11
12
Space(x, dims::Int...) = Space(Fill(x, dims))
13
Space(x::Type{T}, dim::Int, extra_dims::Int...) where {T<:Integer} = Space(Fill(typemin(x):typemax(T), dim, extra_dims...))
0 commit comments