v2.0.0
Loading...
Searching...
No Matches
MNELIB::MNESparseNamedMatrix Class Reference

#include <mne_sparse_named_matrix.h>

Public Member Functions

 MNESparseNamedMatrix ()=default
 ~MNESparseNamedMatrix ()=default
void write (FIFFLIB::FiffStream &stream, int kind) const

Static Public Member Functions

static std::unique_ptr< MNESparseNamedMatrix > read (FIFFLIB::FiffStream::SPtr &stream, const FIFFLIB::FiffDirNode::SPtr &node, int kind)

Public Attributes

int nrow = 0
int ncol = 0
QStringList rowlist
QStringList collist
std::unique_ptr< FIFFLIB::FiffSparseMatrix > data

Detailed Description

Sparse named matrix - matrix specification with row/column name lists.

Definition at line 45 of file mne_sparse_named_matrix.h.

Constructor & Destructor Documentation

◆ MNESparseNamedMatrix()

MNELIB::MNESparseNamedMatrix::MNESparseNamedMatrix ( )
default

◆ ~MNESparseNamedMatrix()

MNELIB::MNESparseNamedMatrix::~MNESparseNamedMatrix ( )
default

Member Function Documentation

◆ read()

std::unique_ptr< MNESparseNamedMatrix > MNESparseNamedMatrix::read ( FIFFLIB::FiffStream::SPtr & stream,
const FIFFLIB::FiffDirNode::SPtr & node,
int kind )
static

Reads a sparse named matrix (MNE-C mne_read_sparse_named_matrix).

Parameters
[in]streamAn open FIFF stream.
[in]nodeA FIFFB_MNE_NAMED_MATRIX block, or a block whose direct children contain one.
[in]kindThe tag holding the sparse matrix.
Returns
The matrix, or nullptr if it is missing or its name lists do not fit.

Definition at line 33 of file mne_sparse_named_matrix.cpp.

◆ write()

void MNESparseNamedMatrix::write ( FIFFLIB::FiffStream & stream,
int kind ) const

Writes the matrix as a FIFFB_MNE_NAMED_MATRIX block (MNE-C mne_write_sparse_named_matrix).

Parameters
[in]streamA FIFF stream open for writing.
[in]kindThe tag for the sparse matrix.

Definition at line 89 of file mne_sparse_named_matrix.cpp.

Member Data Documentation

◆ collist

QStringList MNELIB::MNESparseNamedMatrix::collist

Name list for the columns.

Definition at line 77 of file mne_sparse_named_matrix.h.

◆ data

std::unique_ptr<FIFFLIB::FiffSparseMatrix> MNELIB::MNESparseNamedMatrix::data

The data itself (sparse).

Definition at line 78 of file mne_sparse_named_matrix.h.

◆ ncol

int MNELIB::MNESparseNamedMatrix::ncol = 0

Number of columns (same as in data).

Definition at line 75 of file mne_sparse_named_matrix.h.

◆ nrow

int MNELIB::MNESparseNamedMatrix::nrow = 0

Number of rows (same as in data).

Definition at line 74 of file mne_sparse_named_matrix.h.

◆ rowlist

QStringList MNELIB::MNESparseNamedMatrix::rowlist

Name list for the rows.

Definition at line 76 of file mne_sparse_named_matrix.h.


The documentation for this class was generated from the following files: