Skip to content

Commit

Permalink
Like so?
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Nov 3, 2024
1 parent eb3673e commit 56524db
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ function ManifoldsBase.check_point(
)
end

ManifoldsBase.check_size(G::LieGroup, ::Identity) = nothing

# compose g ∘ h
_doc_compose = """
compose(G::LieGroup, g, h)
Expand Down Expand Up @@ -660,19 +662,6 @@ identity element corresponding to `G`.
"""
ManifoldsBase.is_point(G::LieGroup, g; kwargs...)

function ManifoldsBase.check_point(
G::LieGroup{𝔽,O}, e::Identity{O}; kwargs...
) where {𝔽,O<:AbstractGroupOperation}
return nothing
end
function ManifoldBase.check_point(
G::LieGroup{𝔽,O}, e::Identity{O2}; kwargs...
) where {𝔽,O<:AbstractGroupOperation,O2<:AbstractGroupOperation}
return DomainError(e, "The provided point $e is not the Identity on $G.")
end

ManifoldsBase.check_size(G::LieGroup, ::Identity) = nothing

_doc_is_vector = """
is_vector(G::LieGroup, X; kwargs...)
is_vector(G::LieGroup{𝔽,O}, e::Indentity{O}, X; kwargs...)
Expand Down

0 comments on commit 56524db

Please sign in to comment.