v2.0.0
Loading...
Searching...
No Matches
fwd_thread_arg.h
Go to the documentation of this file.
1//=============================================================================================================
26
27#ifndef FWD_THREAD_ARG_H
28#define FWD_THREAD_ARG_H
29
30//=============================================================================================================
31// INCLUDES
32//=============================================================================================================
33
34#include "fwd_global.h"
35#include "fwd_types.h"
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41#include <Eigen/Core>
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <functional>
48#include <memory>
49
50//=============================================================================================================
51// FORWARD DECLARATIONS
52//=============================================================================================================
53
54namespace MNELIB
55{
56 class MNESourceSpace;
57}
58
59//=============================================================================================================
60// DEFINE NAMESPACE FWDLIB
61//=============================================================================================================
62
63namespace FWDLIB
64{
65
66//=============================================================================================================
67// FORWARD DECLARATIONS
68//=============================================================================================================
69
70class FwdCoilSet;
71
72//=============================================================================================================
79{
80public:
81 typedef std::unique_ptr<FwdThreadArg> UPtr;
82
83 //=========================================================================================================
88
89 //=========================================================================================================
94
95 //=========================================================================================================
105
106 //=========================================================================================================
116
117public:
118 Eigen::MatrixXf *res;
119 Eigen::MatrixXf *res_grad;
120 int off;
125 void *client;
128 int comp;
129 int stat;
130 std::function<void()> client_free;
131};
132
133//=============================================================================================================
134// INLINE DEFINITIONS
135//=============================================================================================================
136} // NAMESPACE FWDLIB
137
138#endif // FWD_THREAD_ARG_H
Symbol-visibility macro and build-info entry points for the FWDLIB (MEG/EEG forward-modelling) librar...
#define FWDSHARED_EXPORT
Definition fwd_global.h:44
std::function aliases for the generic dipole field / potential / field-gradient callbacks driving the...
std::function< int(const Eigen::Vector3f &rd, FWDLIB::FwdCoilSet &coils, Eigen::Ref< Eigen::MatrixXf > res, void *client)> fwdVecFieldFunc
Definition fwd_types.h:49
std::function< int(const Eigen::Vector3f &rd, const Eigen::Vector3f &Q, FWDLIB::FwdCoilSet &coils, Eigen::Ref< Eigen::VectorXf > res, Eigen::Ref< Eigen::VectorXf > xgrad, Eigen::Ref< Eigen::VectorXf > ygrad, Eigen::Ref< Eigen::VectorXf > zgrad, void *client)> fwdFieldGradFunc
Definition fwd_types.h:51
std::function< int(const Eigen::Vector3f &rd, const Eigen::Vector3f &Q, FWDLIB::FwdCoilSet &coils, Eigen::Ref< Eigen::VectorXf > res, void *client)> fwdFieldFunc
Definition fwd_types.h:47
Core MNE data structures (source spaces, source estimates, hemispheres).
Forward modelling — BEM solver, spherical models, sensor/coil definitions and the lead-field assembly...
Definition compute_fwd.h:83
Container of FwdCoil instances acting both as the in-memory image of the coil_def....
fwdFieldGradFunc field_pot_grad
std::unique_ptr< FwdThreadArg > UPtr
static FwdThreadArg::UPtr create_eeg_multi_thread_duplicate(FwdThreadArg &one, bool bem_model)
std::function< void()> client_free
Eigen::MatrixXf * res_grad
Eigen::MatrixXf * res
fwdVecFieldFunc vec_field_pot
static FwdThreadArg::UPtr create_meg_multi_thread_duplicate(FwdThreadArg &one, bool bem_model)
MNELIB::MNESourceSpace * s
This defines a source space.