adam.pytorch.torch_like#
Classes#
Class wrapping pyTorch types |
|
Abstract class for a generic Array wrapper. Every method should be implemented for every data type. |
|
Class implementing the main geometric functions used for computing rigid-body algorithm |
Module Contents#
- class adam.pytorch.torch_like.TorchLike[source]#
Bases:
adam.core.spatial_math.ArrayLike
Class wrapping pyTorch types
- class adam.pytorch.torch_like.TorchLikeFactory[source]#
Bases:
adam.core.spatial_math.ArrayLikeFactory
Abstract class for a generic Array wrapper. Every method should be implemented for every data type.
- class adam.pytorch.torch_like.SpatialMath[source]#
Bases:
SpatialMath
Class implementing the main geometric functions used for computing rigid-body algorithm
- Parameters:
ArrayLike – abstract class describing a generic Array wrapper. It needs to be implemented for every data type
- static sin(x: numpy.typing.ArrayLike) TorchLike [source]#
- Parameters:
x (ntp.ArrayLike) – angle value
- Returns:
sin value of x
- Return type:
- static cos(x: numpy.typing.ArrayLike) TorchLike [source]#
- Parameters:
x (ntp.ArrayLike) – angle value
- Returns:
cos value of x
- Return type:
- static outer(x: numpy.typing.ArrayLike, y: numpy.typing.ArrayLike) TorchLike [source]#
- Parameters:
x (ntp.ArrayLike) – vector
y (ntp.ArrayLike) – vector
- Returns:
outer product of x and y
- Return type: