v2.0.0
Loading...
Searching...
No Matches
fwd_coil.cpp File Reference

Definition of the FwdCoil Class. More...

#include "fwd_coil.h"
#include <fiff/fiff_ch_info.h>
#include <stdio.h>
#include <QDebug>
Include dependency graph for fwd_coil.cpp:

Go to the source code of this file.

Macros

#define MALLOC_5(x, t)
#define FREE_5(x)
#define FREE_CMATRIX_5(m)
#define ALLOC_CMATRIX_5(x, y)
#define X_5   0
#define Y_5   1
#define Z_5   2
#define VEC_DOT_5(x, y)
#define VEC_LEN_5(x)
#define VEC_COPY_5(to, from)

Functions

float ** mne_cmatrix_5 (int nr, int nc)
void mne_free_cmatrix_5 (float **m)

Detailed Description

Definition of the FwdCoil Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
December, 2016

LICENSE

Copyright (C) 2016, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file fwd_coil.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_5

#define ALLOC_CMATRIX_5 ( x,
y )
Value:
mne_cmatrix_5((x),(y))
float ** mne_cmatrix_5(int nr, int nc)
Definition fwd_coil.cpp:97

Definition at line 65 of file fwd_coil.cpp.

◆ FREE_5

#define FREE_5 ( x)
Value:
if ((char *)(x) != NULL) free((char *)(x))

Definition at line 62 of file fwd_coil.cpp.

◆ FREE_CMATRIX_5

#define FREE_CMATRIX_5 ( m)
Value:
void mne_free_cmatrix_5(float **m)
Definition fwd_coil.cpp:114

Definition at line 63 of file fwd_coil.cpp.

◆ MALLOC_5

#define MALLOC_5 ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 60 of file fwd_coil.cpp.

◆ VEC_COPY_5

#define VEC_COPY_5 ( to,
from )
Value:
{\
(to)[X_5] = (from)[X_5];\
(to)[Y_5] = (from)[Y_5];\
(to)[Z_5] = (from)[Z_5];\
}
#define Y_5
Definition fwd_coil.cpp:68
#define Z_5
Definition fwd_coil.cpp:69
#define X_5
Definition fwd_coil.cpp:67

Definition at line 74 of file fwd_coil.cpp.

◆ VEC_DOT_5

#define VEC_DOT_5 ( x,
y )
Value:
((x)[X_5]*(y)[X_5] + (x)[Y_5]*(y)[Y_5] + (x)[Z_5]*(y)[Z_5])

Definition at line 71 of file fwd_coil.cpp.

◆ VEC_LEN_5

#define VEC_LEN_5 ( x)
Value:
sqrt(VEC_DOT_5(x,x))
#define VEC_DOT_5(x, y)
Definition fwd_coil.cpp:71

Definition at line 72 of file fwd_coil.cpp.

◆ X_5

#define X_5   0

Definition at line 67 of file fwd_coil.cpp.

◆ Y_5

#define Y_5   1

Definition at line 68 of file fwd_coil.cpp.

◆ Z_5

#define Z_5   2

Definition at line 69 of file fwd_coil.cpp.

Function Documentation

◆ mne_cmatrix_5()

float ** mne_cmatrix_5 ( int nr,
int nc )

Definition at line 97 of file fwd_coil.cpp.

◆ mne_free_cmatrix_5()

void mne_free_cmatrix_5 ( float ** m)

Definition at line 114 of file fwd_coil.cpp.