Shortcuts

pypose.scale

pypose.scale(inputs)[source]

Extract the scale part from a LieTensor.

Parameters:

inputs (LieTensor) – the input LieTensor.

Returns:

the batched scale scalars.

Return type:

Tensor

Warning

The SO3, so3, SE3, and se3 types do not contain scale. Calling scale() on these types will return one(s).

Example

>>> x = pp.randn_Sim3(4)
>>> x.scale()
tensor([[10.9577],
        [ 1.0248],
        [ 0.0947],
        [ 1.1989]])
>>> y = pp.randn_SE3(2)
>>> y.scale()
tensor([[1.],
        [1.]])

Docs

Access documentation for PyPose

View Docs

Tutorials

Get started with tutorials and examples

View Tutorials

Get Started

Find resources and how to start using pypose

View Resources