Calculates the element-wise product between numbers, np.ndarrays, Tensors,
Pwcs, or Stfs. You can also use the arithmetic operator
* to calculate their product.
Considering numbers and np.ndarrays as Tensors, if the two objects are of the same type,
so is the returned object. If the objects have different types, Pwcs and Stfs can operate
with a tensor (returning a Pwc or Stf, respectively).
This operation supports broadcasting between the different objects. When operating a tensor-like
object with an Stf or a Pwc, the time dimension of the latter is ignored.
x (number or np.ndarray or Tensor or Pwc or Stf) – The left factor, \(x\).
y (number or np.ndarray or Tensor or Pwc or Stf) – The right factor, \(y\).
name (str, optional) – The name of the node. You can only provide a name if neither x nor y are Stfs.
The element-wise product \(x \times y\).
- Return type
Tensor or Pwc or Stf