#include <mne_named_vector.h>
Public Member Functions | |
| MNENamedVector ()=default | |
| ~MNENamedVector ()=default | |
| int | pick (const QStringList &names, int nnames, bool require_all, Eigen::Ref< Eigen::VectorXf > res) const |
Public Attributes | |
| int | nvec = 0 |
| QStringList | names |
| Eigen::VectorXf | data |
Named vector - vector specification with a channel list.
Definition at line 24 of file mne_named_vector.h.
|
default |
|
default |
| int MNENamedVector::pick | ( | const QStringList & | names, |
| int | nnames, | ||
| bool | require_all, | ||
| Eigen::Ref< Eigen::VectorXf > | res ) const |
Pick elements from this named vector by name matching, writing them into a result vector ordered according to the supplied name list.
| [in] | names | List of names to pick. |
| [in] | nnames | Number of names in the list. |
| [in] | require_all | If true, fail when any name is not found. |
| [out] | res | Output vector (must have at least nnames elements). |
Definition at line 60 of file mne_named_vector.cpp.
| Eigen::VectorXf MNELIB::MNENamedVector::data |
The data itself.
Definition at line 46 of file mne_named_vector.h.
| QStringList MNELIB::MNENamedVector::names |
Name list for the elements.
Definition at line 45 of file mne_named_vector.h.
| int MNELIB::MNENamedVector::nvec = 0 |
Number of elements.
Definition at line 44 of file mne_named_vector.h.