MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
Macros | Functions
guess_data.cpp File Reference

Definition of the GuessData Class. More...

#include "guess_data.h"
#include "dipole_fit_data.h"
#include "dipole_forward.h"
#include <mne/c/mne_surface_old.h>
#include <mne/c/mne_source_space_old.h>
#include <fiff/fiff_stream.h>
#include <fiff/fiff_tag.h>
#include <QFile>
Include dependency graph for guess_data.cpp:

Go to the source code of this file.

Macros

#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define X_16   0
 
#define Y_16   1
 
#define Z_16   2
 
#define VEC_COPY_16(to, from)
 
#define MALLOC_16(x, t)   (t *)malloc((x)*sizeof(t))
 
#define REALLOC_16(x, y, t)   (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))
 
#define ALLOC_CMATRIX_16(x, y)   mne_cmatrix_16((x),(y))
 
#define FREE_16(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FREE_CMATRIX_16(m)   mne_free_cmatrix_16((m))
 

Functions

float ** mne_cmatrix_16 (int nr, int nc)
 
void mne_free_cmatrix_16 (float **m)
 
void fromFloatEigenMatrix_16 (const Eigen::MatrixXf &from_mat, float **&to_mat, const int m, const int n)
 
void fromFloatEigenMatrix_16 (const Eigen::MatrixXf &from_mat, float **&to_mat)
 
void fromIntEigenMatrix_16 (const Eigen::MatrixXi &from_mat, int **&to_mat, const int m, const int n)
 
void fromIntEigenMatrix_16 (const Eigen::MatrixXi &from_mat, int **&to_mat)
 

Detailed Description

Definition of the GuessData 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 guess_data.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_16

#define ALLOC_CMATRIX_16 (   x,
 
)    mne_cmatrix_16((x),(y))

Definition at line 93 of file guess_data.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 72 of file guess_data.cpp.

◆ FALSE

#define FALSE   0

Definition at line 68 of file guess_data.cpp.

◆ FREE_16

#define FREE_16 (   x)    if ((char *)(x) != NULL) free((char *)(x))

Definition at line 129 of file guess_data.cpp.

◆ FREE_CMATRIX_16

#define FREE_CMATRIX_16 (   m)    mne_free_cmatrix_16((m))

Definition at line 130 of file guess_data.cpp.

◆ MALLOC_16

#define MALLOC_16 (   x,
 
)    (t *)malloc((x)*sizeof(t))

Definition at line 89 of file guess_data.cpp.

◆ OK

#define OK   0

Definition at line 76 of file guess_data.cpp.

◆ REALLOC_16

#define REALLOC_16 (   x,
  y,
 
)    (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))

Definition at line 91 of file guess_data.cpp.

◆ TRUE

#define TRUE   1

Definition at line 64 of file guess_data.cpp.

◆ VEC_COPY_16

#define VEC_COPY_16 (   to,
  from 
)
Value:
{\
(to)[X_16] = (from)[X_16];\
(to)[Y_16] = (from)[Y_16];\
(to)[Z_16] = (from)[Z_16];\
}

Definition at line 83 of file guess_data.cpp.

◆ X_16

#define X_16   0

Definition at line 79 of file guess_data.cpp.

◆ Y_16

#define Y_16   1

Definition at line 80 of file guess_data.cpp.

◆ Z_16

#define Z_16   2

Definition at line 81 of file guess_data.cpp.

Function Documentation

◆ fromFloatEigenMatrix_16() [1/2]

void fromFloatEigenMatrix_16 ( const Eigen::MatrixXf &  from_mat,
float **&  to_mat 
)

Definition at line 147 of file guess_data.cpp.

◆ fromFloatEigenMatrix_16() [2/2]

void fromFloatEigenMatrix_16 ( const Eigen::MatrixXf &  from_mat,
float **&  to_mat,
const int  m,
const int  n 
)

Definition at line 140 of file guess_data.cpp.

◆ fromIntEigenMatrix_16() [1/2]

void fromIntEigenMatrix_16 ( const Eigen::MatrixXi &  from_mat,
int **&  to_mat 
)

Definition at line 160 of file guess_data.cpp.

◆ fromIntEigenMatrix_16() [2/2]

void fromIntEigenMatrix_16 ( const Eigen::MatrixXi &  from_mat,
int **&  to_mat,
const int  m,
const int  n 
)

Definition at line 153 of file guess_data.cpp.

◆ mne_cmatrix_16()

float ** mne_cmatrix_16 ( int  nr,
int  nc 
)

Definition at line 112 of file guess_data.cpp.

◆ mne_free_cmatrix_16()

void mne_free_cmatrix_16 ( float **  m)

Definition at line 132 of file guess_data.cpp.