(e, h)
| 358 | res = np.zeros(e.shape, dtype=np.complex128) |
| 359 | |
| 360 | def ExH(e, h): |
| 361 | ev = mp.Vector3(e[0], e[1], e[2]) |
| 362 | hv = mp.Vector3(h[0], h[1], h[2]) |
| 363 | return ev.conj().cross(hv) |
| 364 | |
| 365 | for i in range(e.shape[0]): |
| 366 | res[i] = np.array(ExH(e[i], h[i])) |