- lentil.field.multiply(x1, x2)¶
Multiply fields element-wise.
y – The product of
x2, appropriately sized and offset.
- Return type
The output Field data and offset are computed according to the following rules:
If both operands are scalars, the result is 0 unless the operands share the same offset.
A single scalar operand is broadcast to the other operand’s shape and inherits the other operand’s offset. This enables default planar fields (
data = 1+0j, offset = [0, 0]) to automatically grow in size when multiplied by a “real” field.