From f8080e285b02e9d088df5962cc627060b2fc0d43 Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Sun, 24 Dec 2023 10:58:23 +0100 Subject: [PATCH] Remove allocating code that is no longer necessary on rotations. --- src/manifolds/Rotations.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/manifolds/Rotations.jl b/src/manifolds/Rotations.jl index b262d0114b..f71bc551bd 100644 --- a/src/manifolds/Rotations.jl +++ b/src/manifolds/Rotations.jl @@ -375,12 +375,6 @@ end function parallel_transport_direction!(::Rotations{TypeParameter{Tuple{2}}}, Y, p, X, d) return copyto!(Y, X) end -function parallel_transport_direction(M::Rotations, p, X, d) - expdhalf = exp(d / 2) - q = exp(M, p, d) - return transpose(q) * p * expdhalf * X * expdhalf -end -parallel_transport_direction(::Rotations{TypeParameter{Tuple{2}}}, p, X, d) = X function parallel_transport_to!(M::Rotations, Y, p, X, q) d = log(M, p, q)