sponge.function.hamiltonian_product

View Source On Gitee
sponge.function.hamiltonian_product(quaternion_1, tensor_2)[source]

Get the Hamiltonian-product of the given quaternion and tensor.

Parameters
  • quaternion_1 (Tensor) – A tensor to calculate.

  • tensor_2 (Tensor) – A tensor to calculate.

Returns

The hamiltonian product result.