MCPcopy
hub / github.com/mne-tools/mne-python / _jit_cross

Function _jit_cross

mne/surface.py:371–377  ·  view source on GitHub ↗
(out, x, y)

Source from the content-addressed store, hash-verified

369
370@jit()
371def _jit_cross(out, x, y):
372 out[..., 0] = x[..., 1] * y[..., 2]
373 out[..., 0] -= x[..., 2] * y[..., 1]
374 out[..., 1] = x[..., 2] * y[..., 0]
375 out[..., 1] -= x[..., 0] * y[..., 2]
376 out[..., 2] = x[..., 0] * y[..., 1]
377 out[..., 2] -= x[..., 1] * y[..., 0]
378
379
380@jit()

Callers 4

fast_cross_3dFunction · 0.85
_get_solidsFunction · 0.85
_do_lin_field_coeffFunction · 0.85
_do_sphere_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected