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

Definition of the MNEProjOp Class. More...

#include <fiff/fiff_constants.h>
#include <fiff/fiff_tag.h>
#include "mne_proj_op.h"
#include "mne_proj_item.h"
#include <QFile>
#include <Eigen/Core>
Include dependency graph for mne_proj_op.cpp:

Go to the source code of this file.

Macros

#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define MALLOC_23(x, t)   (t *)malloc((x)*sizeof(t))
 
#define REALLOC_23(x, y, t)   (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))
 
#define FREE_23(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FREE_CMATRIX_23(m)   mne_free_cmatrix_23((m))
 
#define ALLOC_CMATRIX_23(x, y)   mne_cmatrix_23((x),(y))
 

Functions

void mne_free_cmatrix_23 (float **m)
 
float ** mne_cmatrix_23 (int nr, int nc)
 
float mne_dot_vectors_23 (float *v1, float *v2, int nn)
 
void mne_string_to_name_list_23 (const QString &s, QStringList &listp, int &nlistp)
 
void fromFloatEigenMatrix_23 (const Eigen::MatrixXf &from_mat, float **&to_mat, const int m, const int n)
 
void fromFloatEigenMatrix_23 (const Eigen::MatrixXf &from_mat, float **&to_mat)
 
QString mne_name_list_to_string_23 (const QStringList &list)
 
QString mne_channel_names_to_string_23 (const QList< FIFFLIB::FiffChInfo > &chs, int nch)
 

Detailed Description

Definition of the MNEProjOp 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
January, 2017

LICENSE

Copyright (C) 2017, 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 mne_proj_op.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_23

#define ALLOC_CMATRIX_23 (   x,
 
)    mne_cmatrix_23((x),(y))

Definition at line 83 of file mne_proj_op.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 60 of file mne_proj_op.cpp.

◆ FALSE

#define FALSE   0

Definition at line 56 of file mne_proj_op.cpp.

◆ FREE_23

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

Definition at line 71 of file mne_proj_op.cpp.

◆ FREE_CMATRIX_23

#define FREE_CMATRIX_23 (   m)    mne_free_cmatrix_23((m))

Definition at line 73 of file mne_proj_op.cpp.

◆ MALLOC_23

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

Definition at line 67 of file mne_proj_op.cpp.

◆ OK

#define OK   0

Definition at line 64 of file mne_proj_op.cpp.

◆ REALLOC_23

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

Definition at line 69 of file mne_proj_op.cpp.

◆ TRUE

#define TRUE   1

Definition at line 52 of file mne_proj_op.cpp.

Function Documentation

◆ fromFloatEigenMatrix_23() [1/2]

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

Definition at line 163 of file mne_proj_op.cpp.

◆ fromFloatEigenMatrix_23() [2/2]

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

Definition at line 156 of file mne_proj_op.cpp.

◆ mne_channel_names_to_string_23()

QString mne_channel_names_to_string_23 ( const QList< FIFFLIB::FiffChInfo > &  chs,
int  nch 
)

Definition at line 186 of file mne_proj_op.cpp.

◆ mne_cmatrix_23()

float ** mne_cmatrix_23 ( int  nr,
int  nc 
)

Definition at line 102 of file mne_proj_op.cpp.

◆ mne_dot_vectors_23()

float mne_dot_vectors_23 ( float *  v1,
float *  v2,
int  nn 
)

Definition at line 119 of file mne_proj_op.cpp.

◆ mne_free_cmatrix_23()

void mne_free_cmatrix_23 ( float **  m)

Definition at line 75 of file mne_proj_op.cpp.

◆ mne_name_list_to_string_23()

QString mne_name_list_to_string_23 ( const QStringList &  list)

Definition at line 168 of file mne_proj_op.cpp.

◆ mne_string_to_name_list_23()

void mne_string_to_name_list_23 ( const QString &  s,
QStringList &  listp,
int &  nlistp 
)

Definition at line 140 of file mne_proj_op.cpp.