Shortcuts

pypose.bvv

class pypose.bvv(lvec, rvec, *, out=None)[source]

Performs batched vector-vector product, which results in matrices.

Parameters:
  • lvec (Tensor) – left vectors to be multiplied.

  • rvec (Tensor) – right vectors to be multiplied.

Returns:

the output tensor.

Return type:

out (Tensor)

Note

This function is broadcastable and supports batched product.

Example

>>> lvec = torch.randn(2, 1, 3)
>>> rvec = torch.randn(1, 2, 2)
>>> out = pp.bvv(lvec, rvec)
>>> out.shape
torch.Size([2, 2, 3, 2])

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