![]() |
0.5.0
|
Class to inherit common methods for static and dynamic sized row vectors. More...
Public Member Functions | |
| template<typename Derived> | |
| KeyedRowVectorBase (const Eigen::MatrixBase< Derived > &vector) | |
| Constructor. | |
| template<typename Derived> | |
| KeyedRowVectorBase (const Eigen::MatrixBase< Derived > &vector, std::span< const ColKeyType > colKeys) | |
| Constructor. | |
| KeyedRowVectorBase (const KeyedRowVectorBase &other) | |
| Copy constructor. | |
| template<int oCols> | |
| KeyedRowVectorBase (const KeyedRowVectorBase< Scalar, ColKeyType, oCols > &other) | |
| Copy constructor. | |
| KeyedRowVectorBase (KeyedRowVectorBase &&other) noexcept | |
| Move constructor. | |
| template<int oCols> | |
| KeyedRowVectorBase (KeyedRowVectorBase< Scalar, ColKeyType, oCols > &&other) noexcept | |
| Move constructor. | |
| operator Eigen::RowVector< Scalar, Cols > () | |
| Conversion into Eigen::RowVector. | |
| Eigen::Matrix< Scalar, 1, Cols > & | operator() (all_t) |
| Requests the full vector. | |
| const Eigen::Matrix< Scalar, 1, Cols > & | operator() (all_t) const |
| Requests the full vector. | |
| Scalar & | operator() (const ColKeyType &colKey) |
| Gets the value for the col key. | |
| const Scalar & | operator() (const ColKeyType &colKey) const |
| Gets the value for the col key. | |
| decltype(auto) | operator() (std::span< const ColKeyType > colKeys) |
| Gets the values for the col keys. | |
| decltype(auto) | operator() (std::span< const ColKeyType > colKeys) const |
| Gets the values for the col keys. | |
| KeyedRowVectorBase & | operator= (const KeyedRowVectorBase &other) |
| Copy assignment operator. | |
| template<int oCols> | |
| KeyedRowVectorBase & | operator= (const KeyedRowVectorBase< Scalar, ColKeyType, oCols > &other) |
| Copy assignment operator. | |
| KeyedRowVectorBase & | operator= (KeyedRowVectorBase &&other) noexcept |
| Move assignment operator. | |
| template<int oCols> | |
| KeyedRowVectorBase & | operator= (KeyedRowVectorBase< Scalar, ColKeyType, oCols > &&other) noexcept |
| Move assignment operator. | |
| template<size_t Q> | |
| decltype(auto) | segment (std::span< const ColKeyType > colKeys) |
| Gets the values for the col keys. | |
| decltype(auto) | segment (std::span< const ColKeyType > colKeys) |
| Gets the values for the col keys. | |
| template<size_t Q> | |
| decltype(auto) | segment (std::span< const ColKeyType > colKeys) const |
| Gets the values for the col keys. | |
| decltype(auto) | segment (std::span< const ColKeyType > colKeys) const |
| Gets the values for the col keys. | |
| KeyedVectorBase< Scalar, ColKeyType, Cols > | transposed () const |
| Calculates the transposed vector. | |
| ~KeyedRowVectorBase ()=default | |
| Destructor. | |
| Public Member Functions inherited from NAV::internal::KeyedMatrixColsBase< Scalar, ColKeyType, Rows, Cols > | |
| const std::vector< ColKeyType > & | colKeys () const |
| Returns the col keys. | |
| decltype(auto) | cols () const |
| Return the cols of the underlying Eigen matrix. | |
| bool | hasAnyCols (std::span< const ColKeyType > keys) const |
| Checks if the matrix has any keys. | |
| bool | hasCol (const ColKeyType &key) const |
| Checks if the matrix has the key. | |
| bool | hasCols (std::span< const ColKeyType > keys) const |
| Checks if the matrix has multiple keys. | |
| void | replaceColKey (const ColKeyType &oldKey, const ColKeyType &newKey) |
| Replace the old with the new key. | |
Private Member Functions | |
| void | checkContinuousSegment (std::span< const ColKeyType > colKeys, size_t Q) const |
| Checks if the col keys are describing a continuous block. | |
Additional Inherited Members | |
| Protected Attributes inherited from NAV::internal::KeyedMatrixColsBase< Scalar, ColKeyType, Rows, Cols > | |
| unordered_map< ColKeyType, Eigen::Index > | colIndices |
| ColKey to Col Index mapping. | |
| std::vector< ColKeyType > | colKeysVector |
| Col Keys. | |
| std::vector< Eigen::Index > | colSlice |
| Col Slice used for accessing. | |
| Protected Attributes inherited from NAV::internal::KeyedMatrixStorage< Scalar, Rows, Cols > | |
| std::mutex | _sliceMutex |
| Mutex for accessing the slices. | |
| Eigen::Matrix< Scalar, Rows, Cols > | matrix |
| Data storage of the type. | |
Class to inherit common methods for static and dynamic sized row vectors.
| Scalar | Numeric type, e.g. float, double, int or std::complex<float>. |
| ColKeyType | Type of the key used for col lookup |
| Cols | Number of columns, or Dynamic |
Definition at line 632 of file KeyedMatrix.hpp.
|
inlineexplicit |
Constructor.
| vector | Eigen vector to initialize from |
Definition at line 638 of file KeyedMatrix.hpp.
|
inline |
Constructor.
| vector | Eigen vector to initialize from |
| colKeys | Col keys describing the vector |
Definition at line 647 of file KeyedMatrix.hpp.
|
default |
Destructor.
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlineprivate |
Checks if the col keys are describing a continuous block.
| colKeys | Col keys |
| Q | Size of the col keys |
Definition at line 879 of file KeyedMatrix.hpp.
|
inlineexplicit |
Conversion into Eigen::RowVector.
Definition at line 820 of file KeyedMatrix.hpp.
|
inline |
Requests the full vector.
Definition at line 818 of file KeyedMatrix.hpp.
|
inline |
Requests the full vector.
Definition at line 816 of file KeyedMatrix.hpp.
|
inline |
Gets the value for the col key.
| colKey | Col Key |
Definition at line 787 of file KeyedMatrix.hpp.
|
inline |
Gets the value for the col key.
| colKey | Col Key |
Definition at line 780 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 806 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 795 of file KeyedMatrix.hpp.
|
inline |
Copy assignment operator.
| other | The other object |
Definition at line 678 of file KeyedMatrix.hpp.
|
inline |
Copy assignment operator.
| other | The other object |
Definition at line 731 of file KeyedMatrix.hpp.
|
inlinenoexcept |
Move assignment operator.
| other | The other object |
Definition at line 700 of file KeyedMatrix.hpp.
|
inlinenoexcept |
Move assignment operator.
| other | The other object |
Definition at line 759 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 840 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 858 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 830 of file KeyedMatrix.hpp.
|
inline |
Gets the values for the col keys.
| colKeys | Col Keys |
Definition at line 849 of file KeyedMatrix.hpp.
|
inlinenodiscard |
Calculates the transposed vector.
Definition at line 870 of file KeyedMatrix.hpp.