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

Export/import macros and build-stamp accessors for MATHLIB. More...

#include <utils/buildinfo.h>
#include <QtCore/qglobal.h>
Include dependency graph for math_global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MATHLIB
 Mathematical algorithms and geometry (linear algebra, optimization, spectral estimation).

Macros

#define MATHSHARED_EXPORT

Functions

MATHSHARED_EXPORT const char * MATHLIB::buildDateTime ()
MATHSHARED_EXPORT const char * MATHLIB::buildHash ()
MATHSHARED_EXPORT const char * MATHLIB::buildHashLong ()

Detailed Description

Export/import macros and build-stamp accessors for MATHLIB.

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

MATHLIB is the numerical-helpers layer of mne-cpp: linear algebra (UTILSLIB::Linalg), general numerics and baseline rescaling (UTILSLIB::Numerics), K-means clustering (UTILSLIB::KMeans), multi-taper spectral estimation (UTILSLIB::Spectral), Nelder–Mead simplex optimisation (UTILSLIB::SimplexAlgorithm), sphere fitting (UTILSLIB::Sphere) and thin-plate-spline warping (UTILSLIB::Warp). It depends only on Eigen, Qt core and UTILSLIB and is therefore safe to pull into any higher-level library (FIFFLIB, FWDLIB, INVERSELIB, CONNECTIVITYLIB).

This header defines the MATHSHARED_EXPORT visibility macro that toggles between Q_DECL_EXPORT and Q_DECL_IMPORT depending on whether the library itself or a consumer is being compiled, plus the STATICBUILD short-circuit used on WebAssembly and other static deployments. It also exposes buildDateTime(), buildHash() and buildHashLong() so applications can stamp produced files with the exact MATHLIB revision they were linked against.

Definition in file math_global.h.

Macro Definition Documentation

◆ MATHSHARED_EXPORT

#define MATHSHARED_EXPORT

Definition at line 51 of file math_global.h.