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

Definition of the FiffCoordTransOld Class. More...

#include "fiff_coord_trans_old.h"
#include <fiff/fiff_tag.h>
#include <QFile>
#include <Eigen/Dense>
Include dependency graph for fiff_coord_trans_old.cpp:

Go to the source code of this file.

Classes

struct  FIFFLIB::frameNameRec
 

Macros

#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define X_20   0
 
#define Y_20   1
 
#define Z_20   2
 
#define FREE_20(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define MALLOC_20(x, t)   (t *)malloc((x)*sizeof(t))
 
#define VEC_DIFF_20(from, to, diff)
 
#define ALLOC_CMATRIX_20(x, y)   mne_cmatrix_20((x),(y))
 
#define MAXWORD   1000
 
#define VEC_DOT_20(x, y)   ((x)[X_20]*(y)[X_20] + (x)[Y_20]*(y)[Y_20] + (x)[Z_20]*(y)[Z_20])
 
#define VEC_LEN_20(x)   sqrt(VEC_DOT_20(x,x))
 
#define CROSS_PRODUCT_20(x, y, xy)
 
#define FREE_CMATRIX_20(m)   mne_free_cmatrix_20((m))
 
#define MIN_20(a, b)   ((a) < (b) ? (a) : (b))
 

Functions

float ** mne_cmatrix_20 (int nr, int nc)
 
void mne_free_cmatrix_20 (float **m)
 
Eigen::MatrixXf toFloatEigenMatrix_20 (float **mat, const int m, const int n)
 
void fromFloatEigenVector_20 (const Eigen::VectorXf &from_vec, float *to_vec, const int n)
 
void fromFloatEigenMatrix_20 (const Eigen::MatrixXf &from_mat, float **&to_mat, const int m, const int n)
 
int mne_svd_20 (float **mat, int m, int n, float *sing, float **uu, float **vv)
 
void mne_matt_mat_mult2_20 (float **m1, float **m2, float **result, int d1, int d2, int d3)
 
float ** mne_matt_mat_mult_20 (float **m1, float **m2, int d1, int d2, int d3)
 

Detailed Description

Definition of the FiffCoordTransOld 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 fiff_coord_trans_old.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_20

#define ALLOC_CMATRIX_20 (   x,
 
)    mne_cmatrix_20((x),(y))

Definition at line 121 of file fiff_coord_trans_old.cpp.

◆ CROSS_PRODUCT_20

#define CROSS_PRODUCT_20 (   x,
  y,
  xy 
)
Value:
{\
(xy)[X_20] = (x)[Y_20]*(y)[Z_20]-(y)[Y_20]*(x)[Z_20];\
(xy)[Y_20] = -((x)[X_20]*(y)[Z_20]-(y)[X_20]*(x)[Z_20]);\
(xy)[Z_20] = (x)[X_20]*(y)[Y_20]-(y)[X_20]*(x)[Y_20];\
}

Definition at line 129 of file fiff_coord_trans_old.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 66 of file fiff_coord_trans_old.cpp.

◆ FALSE

#define FALSE   0

Definition at line 62 of file fiff_coord_trans_old.cpp.

◆ FREE_20

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

Definition at line 77 of file fiff_coord_trans_old.cpp.

◆ FREE_CMATRIX_20

#define FREE_CMATRIX_20 (   m)    mne_free_cmatrix_20((m))

Definition at line 135 of file fiff_coord_trans_old.cpp.

◆ MALLOC_20

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

Definition at line 79 of file fiff_coord_trans_old.cpp.

◆ MAXWORD

#define MAXWORD   1000

Definition at line 123 of file fiff_coord_trans_old.cpp.

◆ MIN_20

#define MIN_20 (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 145 of file fiff_coord_trans_old.cpp.

◆ OK

#define OK   0

Definition at line 70 of file fiff_coord_trans_old.cpp.

◆ TRUE

#define TRUE   1

Definition at line 58 of file fiff_coord_trans_old.cpp.

◆ VEC_DIFF_20

#define VEC_DIFF_20 (   from,
  to,
  diff 
)
Value:
{\
(diff)[X_20] = (to)[X_20] - (from)[X_20];\
(diff)[Y_20] = (to)[Y_20] - (from)[Y_20];\
(diff)[Z_20] = (to)[Z_20] - (from)[Z_20];\
}

Definition at line 115 of file fiff_coord_trans_old.cpp.

◆ VEC_DOT_20

#define VEC_DOT_20 (   x,
 
)    ((x)[X_20]*(y)[X_20] + (x)[Y_20]*(y)[Y_20] + (x)[Z_20]*(y)[Z_20])

Definition at line 125 of file fiff_coord_trans_old.cpp.

◆ VEC_LEN_20

#define VEC_LEN_20 (   x)    sqrt(VEC_DOT_20(x,x))

Definition at line 127 of file fiff_coord_trans_old.cpp.

◆ X_20

#define X_20   0

Definition at line 73 of file fiff_coord_trans_old.cpp.

◆ Y_20

#define Y_20   1

Definition at line 74 of file fiff_coord_trans_old.cpp.

◆ Z_20

#define Z_20   2

Definition at line 75 of file fiff_coord_trans_old.cpp.

Function Documentation

◆ fromFloatEigenMatrix_20()

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

Definition at line 165 of file fiff_coord_trans_old.cpp.

◆ fromFloatEigenVector_20()

void fromFloatEigenVector_20 ( const Eigen::VectorXf &  from_vec,
float *  to_vec,
const int  n 
)

Definition at line 159 of file fiff_coord_trans_old.cpp.

◆ mne_cmatrix_20()

float ** mne_cmatrix_20 ( int  nr,
int  nc 
)

Definition at line 98 of file fiff_coord_trans_old.cpp.

◆ mne_free_cmatrix_20()

void mne_free_cmatrix_20 ( float **  m)

Definition at line 137 of file fiff_coord_trans_old.cpp.

◆ mne_matt_mat_mult2_20()

void mne_matt_mat_mult2_20 ( float **  m1,
float **  m2,
float **  result,
int  d1,
int  d2,
int  d3 
)

Definition at line 216 of file fiff_coord_trans_old.cpp.

◆ mne_matt_mat_mult_20()

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

Definition at line 247 of file fiff_coord_trans_old.cpp.

◆ mne_svd_20()

int mne_svd_20 ( float **  mat,
int  m,
int  n,
float *  sing,
float **  uu,
float **  vv 
)

Definition at line 172 of file fiff_coord_trans_old.cpp.

◆ toFloatEigenMatrix_20()

Eigen::MatrixXf toFloatEigenMatrix_20 ( float **  mat,
const int  m,
const int  n 
)

Definition at line 148 of file fiff_coord_trans_old.cpp.