std::function aliases for the generic dipole field / potential / field-gradient callbacks driving the source-space loop. More...
#include <fiff/fiff_types.h>#include <mne/mne_types.h>#include "fwd_coil_set.h"#include <mne/mne_ctf_comp_data_set.h>#include <Eigen/Core>#include <functional>

Go to the source code of this file.
Typedefs | |
| using | fwdFieldFunc |
| using | fwdVecFieldFunc |
| using | fwdFieldGradFunc |
std::function aliases for the generic dipole field / potential / field-gradient callbacks driving the source-space loop.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2017-2026 MNE-CPP Authors
The compute_forward driver iterates over every dipole position in a source space and, at each step, calls a field function and an optional gradient function. The field function evaluates the scalar magnetic flux (MEG) or electric potential (EEG) produced at a sensor for a given dipole moment Q, while the vector variant emits the full 3 × N_coil lead-field block in one call. The gradient function adds the spatial derivatives ∂B/∂r needed by signal-space-separation and Levenberg-Marquardt dipole fitting.
Wrapping all three behind std::function lets the solver swap an infinite-medium analytic kernel (e.g. Sarvas), a BEM kernel, or a compensation-aware wrapper (FwdCompData) without templating the call sites; this matches the function-pointer dispatch used in MNE-C compute_forward.c.
Definition in file fwd_types.h.
| using fwdFieldFunc |
Definition at line 47 of file fwd_types.h.
| using fwdFieldGradFunc |
Definition at line 51 of file fwd_types.h.
| using fwdVecFieldFunc |
Definition at line 49 of file fwd_types.h.