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 e99e747 commit 9a17580Copy full SHA for 9a17580
src/projection.jl
@@ -167,9 +167,7 @@ end
167
(::ProjectTo{T})(dx::Integer) where {T<:Complex{<:AbstractFloat}} = convert(T, dx)
168
169
# Other numbers, including e.g. ForwardDiff.Dual and Symbolics.Sym, should pass through.
170
-# We assume (lacking evidence to the contrary) that it is the right subspace of numebers
171
-# The (::ProjectTo{T})(::T) method doesn't work because we are allowing a different
172
-# Number type that might not be a subtype of the `project_type`.
+# We assume (lacking evidence to the contrary) that it is the right subspace of numebers.
173
(::ProjectTo{<:Number})(dx::Number) = dx
174
175
(project::ProjectTo{<:Real})(dx::Complex) = project(real(dx))
0 commit comments