MNE-CPP  0.1.9
A Framework for Electrophysiology
Macros | Functions
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)   (t *)malloc((x)*sizeof(t))
 
#define FREE_5(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FREE_CMATRIX_5(m)   mne_free_cmatrix_5((m))
 
#define ALLOC_CMATRIX_5(x, y)   mne_cmatrix_5((x),(y))
 
#define X_5   0
 
#define Y_5   1
 
#define Z_5   2
 
#define VEC_DOT_5(x, y)   ((x)[X_5]*(y)[X_5] + (x)[Y_5]*(y)[Y_5] + (x)[Z_5]*(y)[Z_5])
 
#define VEC_LEN_5(x)   sqrt(VEC_DOT_5(x,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:

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

◆ 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];\
}

Definition at line 74 of file fwd_coil.cpp.