e3x.so3.irreps.is_traceless_symmetric
- e3x.so3.irreps.is_traceless_symmetric(x, degree, rtol=1e-05, atol=1e-05)[source]
Checks whether a given tensor is traceless and symmetric.
- Parameters:
x (
<class 'Float[Array, '...']'>) – The input traceless symmetric tensor.degree (
int) – The degree of the input tensor.rtol (
float, default:1e-05) – The relative tolerance parameter (seejax.numpy.allclose).atol (
float, default:1e-05) – The absolute tolerance parameter (seejax.numpy.allclose).
- Return type:
- Returns:
Trueif the tensor is traceless and symmetric, False otherwise.- Raises:
ValueError – If
degreeis not positive or zero or the shape of the tensor is inconsistent withdegree.