v2.0.0
Loading...
Searching...
No Matches
mne_sparse_named_matrix.h
Go to the documentation of this file.
1//=============================================================================================================
15
16#ifndef MNE_SPARSE_NAMED_MATRIX_H
17#define MNE_SPARSE_NAMED_MATRIX_H
18
19//=============================================================================================================
20// INCLUDES
21//=============================================================================================================
22
23#include "mne_global.h"
24
25#include <fiff/fiff_dir_node.h>
27#include <fiff/fiff_stream.h>
28
29#include <QStringList>
30
31#include <memory>
32
33//=============================================================================================================
34// DEFINE NAMESPACE MNELIB
35//=============================================================================================================
36
37namespace MNELIB
38{
39
46{
47public:
50
51 //=========================================================================================================
61 static std::unique_ptr<MNESparseNamedMatrix> read(FIFFLIB::FiffStream::SPtr& stream,
63 int kind);
64
65 //=========================================================================================================
72 void write(FIFFLIB::FiffStream& stream, int kind) const;
73
74 int nrow = 0;
75 int ncol = 0;
76 QStringList rowlist;
77 QStringList collist;
78 std::unique_ptr<FIFFLIB::FiffSparseMatrix> data;
79};
80
81} // namespace MNELIB
82
83#endif // MNE_SPARSE_NAMED_MATRIX_H
FIFF binary tag-stream layer: wraps a QIODevice to read and write FIFF tags, directories,...
Recursive node of the parsed FIFF block tree (FIFFB_* hierarchy with directory entries and children).
FIFF sparse matrix: column / row-compressed sparse storage backed by Eigen::SparseMatrix.
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
Core MNE data structures (source spaces, source estimates, hemispheres).
QSharedPointer< FiffDirNode > SPtr
FIFF tag-stream reader/writer: wraps a QIODevice and exposes typed read_* / write_* methods for every...
QSharedPointer< FiffStream > SPtr
std::unique_ptr< FIFFLIB::FiffSparseMatrix > data
void write(FIFFLIB::FiffStream &stream, int kind) const
static std::unique_ptr< MNESparseNamedMatrix > read(FIFFLIB::FiffStream::SPtr &stream, const FIFFLIB::FiffDirNode::SPtr &node, int kind)