Skip to content

Commit

Permalink
More comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed May 6, 2024
1 parent 310320d commit 36046b2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Where each group supports:
<code>jaxlie.<strong>manifold.\*</strong></code>).
- Compatibility with standard JAX function transformations. (see
[./examples/vmap_example.py](./examples/vmap_example.py))
- Broadcasting.
- Broadcasting for leading axes.
- (Un)flattening as pytree nodes.
- Serialization using [flax](https://github.com/google/flax).

Expand Down
3 changes: 2 additions & 1 deletion jaxlie/_se2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
)
@jdc.pytree_dataclass
class SE2(_base.SEBase[SO2]):
"""Special Euclidean group for proper rigid transforms in 2D.
"""Special Euclidean group for proper rigid transforms in 2D. Broadcasting
rules are the same as for numpy.
Internal parameterization is `(cos, sin, x, y)`. Tangent parameterization is `(vx,
vy, omega)`.
Expand Down
3 changes: 2 additions & 1 deletion jaxlie/_se3.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def _skew(omega: hints.Array) -> jax.Array:
)
@jdc.pytree_dataclass
class SE3(_base.SEBase[SO3]):
"""Special Euclidean group for proper rigid transforms in 3D.
"""Special Euclidean group for proper rigid transforms in 3D. Broadcasting
rules are the same as for numpy.
Internal parameterization is `(qw, qx, qy, qz, x, y, z)`. Tangent parameterization
is `(vx, vy, vz, omega_x, omega_y, omega_z)`.
Expand Down
3 changes: 2 additions & 1 deletion jaxlie/_so2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
)
@jdc.pytree_dataclass
class SO2(_base.SOBase):
"""Special orthogonal group for 2D rotations.
"""Special orthogonal group for 2D rotations. Broadcasting rules are the
same as for `numpy`.
Internal parameterization is `(cos, sin)`. Tangent parameterization is `(omega,)`.
"""
Expand Down
3 changes: 2 additions & 1 deletion jaxlie/_so3.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
)
@jdc.pytree_dataclass
class SO3(_base.SOBase):
"""Special orthogonal group for 3D rotations.
"""Special orthogonal group for 3D rotations. Broadcasting rules are the same as
for numpy.
Internal parameterization is `(qw, qx, qy, qz)`. Tangent parameterization is
`(omega_x, omega_y, omega_z)`.
Expand Down

0 comments on commit 36046b2

Please sign in to comment.