v2.0.0
Loading...
Searching...
No Matches
fwd_thread_arg.h
Go to the documentation of this file.
1//=============================================================================================================
36
37#ifndef FWD_THREAD_ARG_H
38#define FWD_THREAD_ARG_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "fwd_global.h"
45#include "fwd_types.h"
46
47//=============================================================================================================
48// EIGEN INCLUDES
49//=============================================================================================================
50
51#include <Eigen/Core>
52
53//=============================================================================================================
54// QT INCLUDES
55//=============================================================================================================
56
57#include <functional>
58#include <memory>
59
60//=============================================================================================================
61// FORWARD DECLARATIONS
62//=============================================================================================================
63
64namespace MNELIB
65{
66 class MNESourceSpace;
67}
68
69//=============================================================================================================
70// DEFINE NAMESPACE FWDLIB
71//=============================================================================================================
72
73namespace FWDLIB
74{
75
76//=============================================================================================================
77// FORWARD DECLARATIONS
78//=============================================================================================================
79
80class FwdCoilSet;
81
82//=============================================================================================================
89{
90public:
91 typedef std::unique_ptr<FwdThreadArg> UPtr;
92
93 //=========================================================================================================
98
99 //=========================================================================================================
104
105 //=========================================================================================================
115
116 //=========================================================================================================
126
127public:
128 Eigen::MatrixXf *res;
129 Eigen::MatrixXf *res_grad;
130 int off;
135 void *client;
138 int comp;
139 int stat;
140 std::function<void()> client_free;
141};
142
143//=============================================================================================================
144// INLINE DEFINITIONS
145//=============================================================================================================
146} // NAMESPACE FWDLIB
147
148#endif // FWD_THREAD_ARG_H
Forward library type definitions.
std::function< int(const Eigen::Vector3f &rd, FWDLIB::FwdCoilSet &coils, Eigen::Ref< Eigen::MatrixXf > res, void *client)> fwdVecFieldFunc
Definition fwd_types.h:55
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:57
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:53
Forward library export/import macros.
#define FWDSHARED_EXPORT
Definition fwd_global.h:53
Core MNE data structures (source spaces, source estimates, hemispheres).
Forward modelling (BEM, MEG/EEG lead fields).
Definition compute_fwd.h:91
Collection of FwdCoil objects representing a full MEG or EEG sensor array.
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.