88 auto res = std::make_unique<FwdThreadArg>();
91 res->client_free =
nullptr;
93 auto bem = std::make_shared<FwdBemModel>();
96 res->client = bem.get();
97 res->client_free = [bem]() {};
106 auto res = std::make_unique<FwdThreadArg>();
110 res->client_free =
nullptr;
112 auto comp = std::make_shared<FwdCompData>();
114 comp->comp_coils =
nullptr;
116 comp->work.resize(0);
117 comp->vec_work.resize(0, 0);
119 std::shared_ptr<MNECTFCompDataSet> set_guard(
121 comp->set = set_guard.get();
126 auto bem = std::make_shared<FwdBemModel>();
129 comp->client = bem.get();
131 res->client_free = [
comp, set_guard, bem]() {
136 res->client_free = [
comp, set_guard]() {
MNESourceSpace class declaration.
FwdCompData class declaration.
FwdCoilSet class declaration.
FwdThreadArg class declaration.
FwdBemModel class declaration.
Core MNE data structures (source spaces, source estimates, hemispheres).
Forward modelling (BEM, MEG/EEG lead fields).
BEM (Boundary Element Method) model definition.
This structure is used in the compensated field calculations.
MNELIB::MNECTFCompDataSet * set
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
fwdVecFieldFunc vec_field_pot
static FwdThreadArg::UPtr create_meg_multi_thread_duplicate(FwdThreadArg &one, bool bem_model)
MNELIB::MNESourceSpace * s
Collection of CTF third-order gradient compensation operators.