field_trace
- hcipy.field.field_trace(a, out=None)
- Take the trace of a tensor field. - Parameters:
- aField
- The field of which to take the trace. 
- outField or None
- If given, a location where the output is stored. This must have the correct shape. 
 
- Returns:
- Field
- The trace of the field a.