MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
dipole_forward.cpp
Go to the documentation of this file.
1//=============================================================================================================
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "dipole_forward.h"
42
43//=============================================================================================================
44// USED NAMESPACES
45//=============================================================================================================
46
47using namespace Eigen;
48using namespace INVERSELIB;
49
50#define FREE_CMATRIX_4(m) mne_free_cmatrix_4((m))
51#define FREE_4(x) if ((char *)(x) != NULL) free((char *)(x))
52
53void mne_free_cmatrix_4 (float **m)
54{
55 if (m) {
56 FREE_4(*m);
57 FREE_4(m);
58 }
59}
60
61//=============================================================================================================
62// DEFINE MEMBER METHODS
63//=============================================================================================================
64
66: rd(NULL)
67, fwd(NULL)
68, scales(NULL)
69, uu(NULL)
70, vv(NULL)
71, sing(NULL)
72, nch(0)
73, ndip(0)
74{
75}
76
78
79//DipoleForward::DipoleForward(const DipoleForward& p_DipoleForward)
80//{
81//}
82
83//=============================================================================================================
84
86{
87 if(rd)
88 FREE_CMATRIX_4(rd);
89 if(fwd)
90 FREE_CMATRIX_4(fwd);
91 if(uu)
92 FREE_CMATRIX_4(uu);
93 if(vv)
94 FREE_CMATRIX_4(vv);
95 if(sing)
96 FREE_4(sing);
97 if(scales)
98 FREE_4(scales);
99}
DipoleForward class declaration.