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

Go to the source code of this file.
Implementation of the MxNE (mixed-norm) sparse solver via IRLS.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
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.