Skip to content

Commit 32bd84b

Browse files
authored
Adding so3_tangent_coordinates_stack with batch dim
1 parent accfef4 commit 32bd84b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/loss.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@ function so3_tangent_coordinates_stack(Rt::AbstractArray{T,3}, R1::AbstractArray
6565
tangent = sqrt(T(2)) .* (theta .* axis)
6666
return tangent
6767
end
68+
69+
function so3_tangent_coordinates_stack(rhat::AbstractArray{T,4}, r::AbstractArray{T,4}) where T
70+
return reshape(so3_tangent_coordinates_stack(reshape(rhat, 3, 3, :), reshape(r, 3, 3, :)), 3, size(rhat,3), size(rhat,4))
71+
end

0 commit comments

Comments
 (0)