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 3d52cd6 commit c01cf7bCopy full SHA for c01cf7b
lib/SimpleNonlinearSolve/src/itp.jl
@@ -53,7 +53,8 @@ struct Itp{T} <: AbstractBracketingAlgorithm
53
if k2 < 1 || k2 > (1.5 + sqrt(5) / 2)
54
ArgumentError("Hyper-parameter κ₂ should be between 1 and 1 + ϕ where ϕ ≈ 1.618... is the golden ratio")
55
end
56
- return new(k1, k2, n0)
+ T = promote_type(eltype(k1), eltype(k2))
57
+ return new{T}(k1, k2, n0)
58
59
60
0 commit comments