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

Definition of the MneCTFCompDataSet Class. More...

#include "mne_ctf_comp_data_set.h"
#include "mne_ctf_comp_data.h"
#include "mne_types.h"
#include <fiff/c/fiff_coord_trans_old.h>
#include <fiff/fiff_types.h>
#include <Eigen/Core>
#include <QFile>
Include dependency graph for mne_ctf_comp_data_set.cpp:

Go to the source code of this file.

Macros

#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define MALLOC_32(x, t)   (t *)malloc((x)*sizeof(t))
 
#define REALLOC_32(x, y, t)   (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))
 
#define FREE_32(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FREE_CMATRIX_32(m)   mne_free_cmatrix_32((m))
 
#define ALLOC_CMATRIX_32(x, y)   mne_cmatrix_32((x),(y))
 
#define MNE_CTFV_COMP_UNKNOWN   -1
 
#define MNE_CTFV_COMP_NONE   0
 
#define MNE_CTFV_COMP_G1BR   0x47314252
 
#define MNE_CTFV_COMP_G2BR   0x47324252
 
#define MNE_CTFV_COMP_G3BR   0x47334252
 
#define MNE_CTFV_COMP_G2OI   0x47324f49
 
#define MNE_CTFV_COMP_G3OI   0x47334f49
 

Functions

float ** mne_cmatrix_32 (int nr, int nc)
 
void mne_free_cmatrix_32 (float **m)
 
int mne_read_meg_comp_eeg_ch_info_32 (const QString &name, QList< FIFFLIB::FiffChInfo > &megp, int *nmegp, QList< FIFFLIB::FiffChInfo > &meg_compp, int *nmeg_compp, QList< FIFFLIB::FiffChInfo > &eegp, int *neegp, FiffCoordTransOld **meg_head_t, fiffId *idp)
 
int mne_unmap_ctf_comp_kind (int ctf_comp)
 
FiffSparseMatrixmne_convert_to_sparse (float **dense, int nrow, int ncol, int stor_type, float small)
 
int mne_sparse_mat_mult2_32 (FiffSparseMatrix *mat, float **mult, int ncol, float **res)
 
float ** mne_mat_mat_mult_32 (float **m1, float **m2, int d1, int d2, int d3)
 
int mne_sparse_vec_mult2_32 (FiffSparseMatrix *mat, float *vector, float *res)
 
float mne_dot_vectors_32 (float *v1, float *v2, int nn)
 
void mne_mat_vec_mult2_32 (float **m, float *v, float *result, int d1, int d2)
 

Detailed Description

Definition of the MneCTFCompDataSet 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_ctf_comp_data_set.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_32

#define ALLOC_CMATRIX_32 (   x,
 
)    mne_cmatrix_32((x),(y))

Definition at line 80 of file mne_ctf_comp_data_set.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 67 of file mne_ctf_comp_data_set.cpp.

◆ FALSE

#define FALSE   0

Definition at line 63 of file mne_ctf_comp_data_set.cpp.

◆ FREE_32

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

Definition at line 77 of file mne_ctf_comp_data_set.cpp.

◆ FREE_CMATRIX_32

#define FREE_CMATRIX_32 (   m)    mne_free_cmatrix_32((m))

Definition at line 79 of file mne_ctf_comp_data_set.cpp.

◆ MALLOC_32

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

Definition at line 74 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G1BR

#define MNE_CTFV_COMP_G1BR   0x47314252

Definition at line 300 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G2BR

#define MNE_CTFV_COMP_G2BR   0x47324252

Definition at line 301 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G2OI

#define MNE_CTFV_COMP_G2OI   0x47324f49

Definition at line 303 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G3BR

#define MNE_CTFV_COMP_G3BR   0x47334252

Definition at line 302 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G3OI

#define MNE_CTFV_COMP_G3OI   0x47334f49

Definition at line 304 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_NONE

#define MNE_CTFV_COMP_NONE   0

Definition at line 299 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_UNKNOWN

#define MNE_CTFV_COMP_UNKNOWN   -1

Definition at line 298 of file mne_ctf_comp_data_set.cpp.

◆ OK

#define OK   0

Definition at line 71 of file mne_ctf_comp_data_set.cpp.

◆ REALLOC_32

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

Definition at line 75 of file mne_ctf_comp_data_set.cpp.

◆ TRUE

#define TRUE   1

Definition at line 59 of file mne_ctf_comp_data_set.cpp.

Function Documentation

◆ mne_cmatrix_32()

float ** mne_cmatrix_32 ( int  nr,
int  nc 
)

Definition at line 99 of file mne_ctf_comp_data_set.cpp.

◆ mne_convert_to_sparse()

FiffSparseMatrix * mne_convert_to_sparse ( float **  dense,
int  nrow,
int  ncol,
int  stor_type,
float  small 
)

Definition at line 327 of file mne_ctf_comp_data_set.cpp.

◆ mne_dot_vectors_32()

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

Definition at line 525 of file mne_ctf_comp_data_set.cpp.

◆ mne_free_cmatrix_32()

void mne_free_cmatrix_32 ( float **  m)

Definition at line 116 of file mne_ctf_comp_data_set.cpp.

◆ mne_mat_mat_mult_32()

float ** mne_mat_mat_mult_32 ( float **  m1,
float **  m2,
int  d1,
int  d2,
int  d3 
)

Definition at line 464 of file mne_ctf_comp_data_set.cpp.

◆ mne_mat_vec_mult2_32()

void mne_mat_vec_mult2_32 ( float **  m,
float *  v,
float *  result,
int  d1,
int  d2 
)

Definition at line 544 of file mne_ctf_comp_data_set.cpp.

◆ mne_read_meg_comp_eeg_ch_info_32()

int mne_read_meg_comp_eeg_ch_info_32 ( const QString &  name,
QList< FIFFLIB::FiffChInfo > &  megp,
int *  nmegp,
QList< FIFFLIB::FiffChInfo > &  meg_compp,
int *  nmeg_compp,
QList< FIFFLIB::FiffChInfo > &  eegp,
int *  neegp,
FiffCoordTransOld **  meg_head_t,
fiffId idp 
)

Definition at line 134 of file mne_ctf_comp_data_set.cpp.

◆ mne_sparse_mat_mult2_32()

int mne_sparse_mat_mult2_32 ( FiffSparseMatrix mat,
float **  mult,
int  ncol,
float **  res 
)

Definition at line 427 of file mne_ctf_comp_data_set.cpp.

◆ mne_sparse_vec_mult2_32()

int mne_sparse_vec_mult2_32 ( FiffSparseMatrix mat,
float *  vector,
float *  res 
)

Definition at line 494 of file mne_ctf_comp_data_set.cpp.

◆ mne_unmap_ctf_comp_kind()

int mne_unmap_ctf_comp_kind ( int  ctf_comp)

Definition at line 316 of file mne_ctf_comp_data_set.cpp.

Variable Documentation

◆ ctf_comp

int ctf_comp

Definition at line 308 of file mne_ctf_comp_data_set.cpp.

◆ grad_comp

int grad_comp

Definition at line 307 of file mne_ctf_comp_data_set.cpp.