From 0e433665dfdc2542458fdff6b6de855c5c453eba Mon Sep 17 00:00:00 2001 From: romain veltz Date: Sun, 1 Sep 2024 20:42:12 +0200 Subject: [PATCH] remove type constraint on DotTheta --- src/continuation/Palc.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/continuation/Palc.jl b/src/continuation/Palc.jl index 8c724d18..5cbb1cf1 100644 --- a/src/continuation/Palc.jl +++ b/src/continuation/Palc.jl @@ -23,7 +23,7 @@ DotTheta() = DotTheta( (x, y) -> dot(x, y) / length(x), x -> rmul!(x, 1/length(x DotTheta(dt) = DotTheta(dt, nothing) # we restrict the type of the parameters because for complex problems, we still want the parameter to be real -(dt::DotTheta)(u1, u2, p1::T, p2::T, θ::T) where {T <: Real} = real(dt.dot(u1, u2) * θ + p1 * p2 * (one(T) - θ)) +(dt::DotTheta)(u1, u2, p1::T, p2, θ, θₚ = one(T) - θ) where {T <: Real} = real(dt.dot(u1, u2) * θ + p1 * p2 * θₚ) # implementation of the norm associated to DotTheta (dt::DotTheta)(u, p::T, θ::T) where T = sqrt(dt(u, u, p, p, θ))