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

Function _normalize_vectors

mne/surface.py:593–598  ·  view source on GitHub ↗

Normalize surface vertices.

(rr)

Source from the content-addressed store, hash-verified

591
592
593def _normalize_vectors(rr):
594 """Normalize surface vertices."""
595 size = np.linalg.norm(rr, axis=1)
596 mask = size > 0
597 rr[mask] /= size[mask, np.newaxis] # operate in-place
598 return size
599
600
601class _CDist:

Callers 14

scale_bemFunction · 0.85
scale_source_spaceFunction · 0.85
_make_morph_map_hemiFunction · 0.85
_project_onto_surfaceFunction · 0.85
complete_surface_infoFunction · 0.85
_norm_midptFunction · 0.85
_create_surf_spacingFunction · 0.85
_get_tri_supp_geomFunction · 0.85
_create_eeg_elFunction · 0.85
_otpFunction · 0.85

Calls 1

normMethod · 0.80

Tested by

no test coverage detected