Skip to content

Commit 511d63e

Browse files
committed
Update method to compute the outer product
1 parent 4b49339 commit 511d63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jaxsim/math/quaternion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def derivative(
100100
)
101101

102102
# Compute quaternion derivative via Einstein summation
103-
q_outer = jnp.einsum("...i,...j->...ij", q, ω_quat)
103+
q_outer = jnp.outer(q, ω_quat)
104104

105105
Qd = jnp.sum(
106106
sign_matrix * q_outer[..., i_idx, j_idx],

0 commit comments

Comments
 (0)