v2.0.0
Loading...
Searching...
No Matches
mne_ctf_comp_data_set.cpp File Reference

Implementation of MNELIB::MNECTFCompDataSet. More...

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

Go to the source code of this file.

Macros

#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

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, FiffCoordTrans *meg_head_t, fiffId *idp)
int mne_unmap_ctf_comp_kind (int ctf_comp)
std::unique_ptr< FiffSparseMatrixmne_convert_to_sparse (const Eigen::MatrixXf &dense, int stor_type, float small)
int mne_sparse_vec_mult2_32 (FiffSparseMatrix *mat, float *vector, float *res)

Variables

constexpr int FAIL = -1
constexpr int OK = 0

Detailed Description

Implementation of MNELIB::MNECTFCompDataSet.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

Implements set-level FIFF I/O, the search for the currently active compensator in FIFFLIB::FiffInfo and the build of the compensator that maps the current grade to a requested one.

Definition in file mne_ctf_comp_data_set.cpp.

Macro Definition Documentation

◆ MNE_CTFV_COMP_G1BR

#define MNE_CTFV_COMP_G1BR   0x47314252

Definition at line 214 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G2BR

#define MNE_CTFV_COMP_G2BR   0x47324252

Definition at line 215 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G2OI

#define MNE_CTFV_COMP_G2OI   0x47324f49

Definition at line 217 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G3BR

#define MNE_CTFV_COMP_G3BR   0x47334252

Definition at line 216 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_G3OI

#define MNE_CTFV_COMP_G3OI   0x47334f49

Definition at line 218 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_NONE

#define MNE_CTFV_COMP_NONE   0

Definition at line 213 of file mne_ctf_comp_data_set.cpp.

◆ MNE_CTFV_COMP_UNKNOWN

#define MNE_CTFV_COMP_UNKNOWN   -1

Definition at line 212 of file mne_ctf_comp_data_set.cpp.

Function Documentation

◆ mne_convert_to_sparse()

std::unique_ptr< FiffSparseMatrix > mne_convert_to_sparse ( const Eigen::MatrixXf & dense,
int stor_type,
float small )

Definition at line 241 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,
FiffCoordTrans * meg_head_t,
fiffId * idp )

Definition at line 53 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 269 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 230 of file mne_ctf_comp_data_set.cpp.

Variable Documentation

◆ ctf_comp

int ctf_comp

Definition at line 222 of file mne_ctf_comp_data_set.cpp.

◆ FAIL

int FAIL = -1
constexpr

Definition at line 39 of file mne_ctf_comp_data_set.cpp.

◆ grad_comp

int grad_comp

Definition at line 221 of file mne_ctf_comp_data_set.cpp.

◆ OK

int OK = 0
constexpr

Definition at line 40 of file mne_ctf_comp_data_set.cpp.