v2.0.0
Loading...
Searching...
No Matches
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 <QTextStream>
#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)
#define REALLOC_23(x, y, t)
#define FREE_23(x)
#define FREE_CMATRIX_23(m)
#define ALLOC_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:

  • 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 mne_proj_op.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_23

#define ALLOC_CMATRIX_23 ( x,
y )
Value:
float ** mne_cmatrix_23(int nr, int nc)

Definition at line 84 of file mne_proj_op.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 61 of file mne_proj_op.cpp.

◆ FALSE

#define FALSE   0

Definition at line 57 of file mne_proj_op.cpp.

◆ FREE_23

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

Definition at line 72 of file mne_proj_op.cpp.

◆ FREE_CMATRIX_23

#define FREE_CMATRIX_23 ( m)
Value:
void mne_free_cmatrix_23(float **m)

Definition at line 74 of file mne_proj_op.cpp.

◆ MALLOC_23

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

Definition at line 68 of file mne_proj_op.cpp.

◆ OK

#define OK   0

Definition at line 65 of file mne_proj_op.cpp.

◆ REALLOC_23

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

Definition at line 70 of file mne_proj_op.cpp.

◆ TRUE

#define TRUE   1

Definition at line 53 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 164 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 157 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 187 of file mne_proj_op.cpp.

◆ mne_cmatrix_23()

float ** mne_cmatrix_23 ( int nr,
int nc )

Definition at line 103 of file mne_proj_op.cpp.

◆ mne_dot_vectors_23()

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

Definition at line 120 of file mne_proj_op.cpp.

◆ mne_free_cmatrix_23()

void mne_free_cmatrix_23 ( float ** m)

Definition at line 76 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 169 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 141 of file mne_proj_op.cpp.