v2.0.0
Loading...
Searching...
No Matches
fwd_bem_solution.cpp
Go to the documentation of this file.
1//=============================================================================================================
36
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "fwd_bem_solution.h"
42
43#define MALLOC_42(x,t) (t *)malloc((x)*sizeof(t))
44
45#define FREE_42(x) if ((char *)(x) != NULL) free((char *)(x))
46
47#define FREE_CMATRIX_42(m) mne_free_cmatrix_42((m))
48
49void mne_free_cmatrix_42(float **m)
50{
51 if (m) {
52 FREE_42(*m);
53 FREE_42(m);
54 }
55}
56
57//=============================================================================================================
58// USED NAMESPACES
59//=============================================================================================================
60
61using namespace Eigen;
62using namespace FWDLIB;
63
64//=============================================================================================================
65// DEFINE MEMBER METHODS
66//=============================================================================================================
67
69:solution(NULL)
70,ncoil(0)
71,np(0)
72{
73}
74
75//=============================================================================================================
76
81
82//=============================================================================================================
83
85{
86 FwdBemSolution* sol = (FwdBemSolution*)user;
87
88 if (!sol)
89 return;
90
91// FREE_CMATRIX_3(sol->solution);
92// FREE_3(sol);
93
94 delete sol;
95
96 return;
97}
Forward BEM Solution (FwdBemSolution) class declaration.
#define FREE_42(x)
#define FREE_CMATRIX_42(m)
void mne_free_cmatrix_42(float **m)
Forward modelling (BEM, MEG/EEG lead fields).
Definition compute_fwd.h:95
static void fwd_bem_free_coil_solution(void *user)