v2.0.0
Loading...
Searching...
No Matches
inv_mxne.cpp File Reference

Implementation of the MxNE (mixed-norm) sparse solver via IRLS. More...

#include "inv_mxne.h"
#include <cmath>
#include <algorithm>
Include dependency graph for inv_mxne.cpp:

Go to the source code of this file.

Detailed Description

Implementation of the MxNE (mixed-norm) sparse solver via IRLS.

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.2.0
Date
April 2026

Implements the iteratively-reweighted least-squares loop: solve a weighted least-squares problem against the leadfield, update the per-source weights from the resulting row norms, prune rows whose weight has collapsed below tolerance, and iterate until the relative weight change drops below the user threshold or the iteration cap is hit. Active-source bookkeeping is maintained throughout so the final InvSourceEstimate carries only non-zero rows.

Definition in file inv_mxne.cpp.