Skip to content

Commit

Permalink
Fix essential manifold.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 14, 2023
1 parent b397d2a commit 8b57a5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/manifolds/EssentialManifold.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ exp(::EssentialManifold, ::Any...)

get_iterator(::EssentialManifold) = Base.OneTo(2)

function _isapprox(M::EssentialManifold, p, q; atol=eps(float(eltype(p))), kwargs...)
function _isapprox(
M::EssentialManifold,
p,
q::T;
atol=eps(real(float(number_eltype(number_eltype(T))))),
kwargs...,
) where {T}
return isapprox(distance(M, p, q), 0.0; atol=atol, kwargs...)
end

Expand Down

0 comments on commit 8b57a5b

Please sign in to comment.