mindscience.e3nn.o3.Linear

class mindscience.e3nn.o3.Linear(irreps_in, irreps_out, ncon_dtype=mindspore.float32, **kwargs)[source]

Linear operation equivariant.

Equivalent to TensorProduct with instructions='linear'. For details, see mindscience.e3nn.o3.TensorProduct.

Parameters
  • irreps_in (Union[str, Irrep, Irreps]) – Irreps for the input.

  • irreps_out (Union[str, Irrep, Irreps]) – Irreps for the output.

  • ncon_dtype (mindspore.dtype, optional) – The type of input tensors of ncon computation module. Default: mindspore.float32.

Examples

>>> from mindscience.e3nn.o3 import Linear
>>> Linear('2x2e+3x1o+3x0e', '3x2e+5x1o+2x0e')
TensorProduct [linear] (2x2e+3x1o+3x0e x 1x0e -> 3x2e+5x1o+2x0e)