Skip to content

Commit

Permalink
Faster implementation
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Baran <[email protected]>
  • Loading branch information
olivierverdier and mateuszbaran authored Oct 21, 2024
1 parent d181bbc commit 32fbffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/groups/general_unitary_groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,18 +351,18 @@ end

function Manifolds.lie_bracket(
G::Manifolds.GeneralUnitaryMultiplicationGroup{ManifoldsBase.TypeParameter{Tuple{2}},ℝ},
::Any,
X,
::Any,
)
return zeros(2, 2)
return zero(X)
end
function Manifolds.lie_bracket!(
G::Manifolds.GeneralUnitaryMultiplicationGroup{ManifoldsBase.TypeParameter{Tuple{2}},ℝ},
X,
::Any,
::Any,
)
return copyto!(X, zeros(2, 2))
return fill!(X, 0)
end

function volume_density(M::GeneralUnitaryMultiplicationGroup, p, X)
Expand Down

0 comments on commit 32fbffa

Please sign in to comment.