Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/SymbolicIndexingInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ include("parameter_indexing_proxy.jl")

export remake_buffer
include("remake.jl")

include("despecialize.jl")

end
12 changes: 12 additions & 0 deletions src/despecialize.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
struct __InternalInvalidator1 <: Real end
struct __InternalInvalidator2 <: Real end
struct __InternalInvalidator3 <: AbstractVector{Real} end
symbolic_type(::Type{__InternalInvalidator1}) = ScalarSymbolic()
symbolic_type(::Type{__InternalInvalidator2}) = ArraySymbolic()
symbolic_type(::Type{__InternalInvalidator3}) = ScalarSymbolic()
symbolic_type(::Type{Int}) = NotSymbolic()
symbolic_type(::Type{UInt}) = NotSymbolic()
symbolic_type(::Type{Float64}) = NotSymbolic()
symbolic_type(::Type{Vector{Int}}) = NotSymbolic()
symbolic_type(::Type{Matrix{Float64}}) = NotSymbolic()
symbolic_type(::Type{Array{UInt, 3}}) = NotSymbolic()
Loading