MNE-CPP
0.1.9
A Framework for Electrophysiology
src
libraries
inverse
dipoleFit
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
47
using namespace
Eigen;
48
using 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
53
void
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
65
DipoleForward::DipoleForward()
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
85
DipoleForward::~DipoleForward
()
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
}
INVERSELIB::DipoleForward::uu
float ** uu
Definition:
dipole_forward.h:105
INVERSELIB::DipoleForward::scales
float * scales
Definition:
dipole_forward.h:104
INVERSELIB::DipoleForward::fwd
float ** fwd
Definition:
dipole_forward.h:103
INVERSELIB::DipoleForward::rd
float ** rd
Definition:
dipole_forward.h:101
dipole_forward.h
DipoleForward class declaration.
INVERSELIB::DipoleForward::sing
float * sing
Definition:
dipole_forward.h:107
INVERSELIB::DipoleForward::vv
float ** vv
Definition:
dipole_forward.h:106
INVERSELIB::DipoleForward::~DipoleForward
~DipoleForward()
Definition:
dipole_forward.cpp:85
Generated on Wed Aug 9 2023 17:55:42 for MNE-CPP by
1.8.17