v2.0.0
Loading...
Searching...
No Matches
inv_dipole_forward.h File Reference

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

#include "../inv_global.h"
#include <Eigen/Core>
#include <QSharedPointer>
#include <memory>
Include dependency graph for inv_dipole_forward.h:
This graph shows which files directly or indirectly include this file:

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).

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

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.