Per-iteration forward-field cache (forward matrix, SVD, column normalisation) used by the dipole-fit cost function. More...


Go to the source code of this file.
Classes | |
| class | INVLIB::InvDipoleForward |
| Stores forward field matrices and SVD decomposition for magnetic dipole fitting. More... | |
Namespaces | |
| namespace | INVLIB |
| Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting). | |
Per-iteration forward-field cache (forward matrix, SVD, column normalisation) used by the dipole-fit cost function.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
INVLIB::InvDipoleForward replaces the dipoleForwardRec record of MNE-C and stores, for one candidate dipole or set of dipoles, the column-normalised (3·n_dip × n_ch) forward matrix together with its singular-value decomposition U·diag(σ)·V^T. Holding the SVD makes goodness-of-fit evaluation a single dense matmul per iteration and lets the Nelder-Mead optimiser query the residual without re-solving a least-squares system at every step.
Definition in file inv_dipole_forward.h.