field_dot

hcipy.field.field_dot(a, b, out=None)

Perform a dot product of a and b multiplexed over the field dimension.

Parameters:
aField or array_like

Left argument of the dot product.

bField or array_like

Right argument of the dot product.

outField or array_like

If provided, the calculation is done into this array.

Returns:
Field

The result of the dot product.