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.
1 parent 57d0f65 commit 079797cCopy full SHA for 079797c
src/Utilities/functions.jl
@@ -592,7 +592,7 @@ end
592
Type of functions obtained by indexing objects obtained by calling `eachscalar`
593
on functions of type `F`.
594
"""
595
-function scalar_type end
+scalar_type(::Type{F}) where {F} = Any # A default fallback
596
597
scalar_type(::Type{<:AbstractVector{T}}) where {T} = T
598
@@ -614,7 +614,7 @@ scalar_type(::Type{MOI.VectorNonlinearFunction}) = MOI.ScalarNonlinearFunction
614
Return the [`MOI.AbstractVectorFunction`](@ref) associated with the scalar type
615
`F`.
616
617
-function vector_type end
+vector_type(::Type{F}) where {F} = Any # A default fallback
618
619
vector_type(::Type{T}) where {T} = Vector{T}
620
0 commit comments