0.2.0
Loading...
Searching...
No Matches
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > Class Template Reference

Class to inherit common methods for static and dynamic sized matrices. More...

Public Member Functions

Eigen::Matrix< Scalar, Rows, Cols > & block (all_t, all_t)
 Requests the full matrix.
 
const Eigen::Matrix< Scalar, Rows, Cols > & block (all_t, all_t) const
 Requests the full matrix.
 
template<size_t Q>
decltype(auto) block (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
decltype(auto) block (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
template<size_t Q>
decltype(auto) block (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
decltype(auto) block (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
template<size_t P>
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey)
 Gets the values for the row and col keys.
 
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey)
 Gets the values for the row and col keys.
 
template<size_t P>
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey) const
 Gets the values for the row and col keys.
 
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey) const
 Gets the values for the row and col keys.
 
template<size_t P, size_t Q = P>
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
template<size_t P, size_t Q = P>
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
decltype(auto) block (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
decltype(auto) col (const ColKeyType &colKey)
 Gets the values for the col key.
 
decltype(auto) col (const ColKeyType &colKey) const
 Gets the values for the col key.
 
KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > inverse () const
 Calculates the inverse matrix.
 
template<typename Derived >
 KeyedMatrixBase (const Eigen::MatrixBase< Derived > &matrix)
 Constructor.
 
template<typename Derived >
 KeyedMatrixBase (const Eigen::MatrixBase< Derived > &matrix, const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys)
 Non-symmetric matrix constructor.
 
 KeyedMatrixBase (const KeyedMatrixBase &other)
 Copy constructor.
 
template<int oRows, int oCols>
 KeyedMatrixBase (const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > &other)
 Copy constructor.
 
 KeyedMatrixBase (KeyedMatrixBase &&other) noexcept
 Move constructor.
 
template<int oRows, int oCols>
 KeyedMatrixBase (KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > &&other) noexcept
 Move constructor.
 
template<size_t Q>
decltype(auto) middleCols (const std::vector< ColKeyType > &colKeys)
 Gets the values for the col keys.
 
decltype(auto) middleCols (const std::vector< ColKeyType > &colKeys)
 Gets the values for the col keys.
 
template<size_t Q>
decltype(auto) middleCols (const std::vector< ColKeyType > &colKeys) const
 Gets the values for the col keys.
 
decltype(auto) middleCols (const std::vector< ColKeyType > &colKeys) const
 Gets the values for the col keys.
 
template<size_t P>
decltype(auto) middleRows (const std::vector< RowKeyType > &rowKeys)
 Gets the values for the row keys.
 
decltype(auto) middleRows (const std::vector< RowKeyType > &rowKeys)
 Gets the values for the row keys.
 
template<size_t P>
decltype(auto) middleRows (const std::vector< RowKeyType > &rowKeys) const
 Gets the values for the row keys.
 
decltype(auto) middleRows (const std::vector< RowKeyType > &rowKeys) const
 Gets the values for the row keys.
 
 operator Eigen::Matrix< Scalar, Rows, Cols > ()
 Conversion into Eigen::Matrix.
 
Eigen::Matrix< Scalar, Rows, Cols > & operator() (all_t, all_t)
 Requests the full matrix.
 
const Eigen::Matrix< Scalar, Rows, Cols > & operator() (all_t, all_t) const
 Requests the full matrix.
 
decltype(auto) operator() (all_t, const ColKeyType &colKey)
 Gets the values for the col keys.
 
decltype(auto) operator() (all_t, const ColKeyType &colKey) const
 Gets the values for the col key.
 
decltype(auto) operator() (all_t, const std::vector< ColKeyType > &colKeys)
 Gets the values for the col keys.
 
decltype(auto) operator() (all_t, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the col keys.
 
decltype(auto) operator() (const RowKeyType &rowKey, all_t)
 Gets the values for the row key.
 
decltype(auto) operator() (const RowKeyType &rowKey, all_t) const
 Gets the values for the row key.
 
Scalar & operator() (const RowKeyType &rowKey, const ColKeyType &colKey)
 Gets the value for the row and col key.
 
const Scalar & operator() (const RowKeyType &rowKey, const ColKeyType &colKey) const
 Gets the value for the row and col key.
 
decltype(auto) operator() (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
decltype(auto) operator() (const RowKeyType &rowKey, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, all_t)
 Gets the values for the row keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, all_t) const
 Gets the values for the row keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey)
 Gets the values for the row and col keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, const ColKeyType &colKey) const
 Gets the values for the row and col keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys)
 Gets the values for the row and col keys.
 
decltype(auto) operator() (const std::vector< RowKeyType > &rowKeys, const std::vector< ColKeyType > &colKeys) const
 Gets the values for the row and col keys.
 
KeyedMatrixBaseoperator= (const KeyedMatrixBase &other)
 Copy assignment operator.
 
template<int oRows, int oCols>
KeyedMatrixBaseoperator= (const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > &other)
 Copy assignment operator.
 
KeyedMatrixBaseoperator= (KeyedMatrixBase &&other) noexcept
 Move assignment operator.
 
template<int oRows, int oCols>
KeyedMatrixBaseoperator= (KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > &&other) noexcept
 Move assignment operator.
 
decltype(auto) row (const RowKeyType &rowKey)
 Gets the values for the row key.
 
decltype(auto) row (const RowKeyType &rowKey) const
 Gets the values for the row key.
 
KeyedMatrixBase< Scalar, ColKeyType, RowKeyType, Cols, Rows > transposed () const
 Calculates the transposed matrix.
 
 ~KeyedMatrixBase ()=default
 Destructor.
 
- Public Member Functions inherited from NAV::internal::KeyedMatrixRowsBase< Scalar, RowKeyType, Rows, Cols >
bool hasAnyRows (const std::vector< RowKeyType > &keys) const
 Checks if the matrix has any key.
 
bool hasRow (const RowKeyType &key) const
 Checks if the matrix has the key.
 
bool hasRows (const std::vector< RowKeyType > &keys) const
 Checks if the matrix has multiple keys.
 
void replaceRowKey (const RowKeyType &oldKey, const RowKeyType &newKey)
 Replace the old with the new key.
 
const std::vector< RowKeyType > & rowKeys () const
 Returns the row keys.
 
decltype(auto) rows () const
 Return the rows of the underlying Eigen matrix.
 
- 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 (const std::vector< 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 (const std::vector< 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.
 

Additional Inherited Members

- Protected Attributes inherited from NAV::internal::KeyedMatrixRowsBase< Scalar, RowKeyType, Rows, Cols >
unordered_map< RowKeyType, Eigen::Index > rowIndices
 RowKey to Row Index mapping.
 
std::vector< RowKeyType > rowKeysVector
 Row Keys.
 
std::vector< Eigen::Index > rowSlice
 Row Slice used for accessing.
 
- Protected Attributes inherited from NAV::internal::KeyedMatrixStorage< Scalar, Rows, Cols >
Eigen::Matrix< Scalar, Rows, Cols > matrix
 Data storage of the type.
 
- 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.
 

Detailed Description

template<typename Scalar, typename RowKeyType, typename ColKeyType, int Rows, int Cols>
class NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >

Class to inherit common methods for static and dynamic sized matrices.

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
RowKeyTypeType of the key used for row lookup
ColKeyTypeType of the key used for col lookup
RowsNumber of rows, or Dynamic
ColsNumber of columns, or Dynamic

Constructor & Destructor Documentation

◆ KeyedMatrixBase() [1/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<typename Derived >
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( const Eigen::MatrixBase< Derived > & matrix)
inlineexplicit

Constructor.

Parameters
matrixEigen Matrix to initialize from

◆ KeyedMatrixBase() [2/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<typename Derived >
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( const Eigen::MatrixBase< Derived > & matrix,
const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys )
inline

Non-symmetric matrix constructor.

Parameters
matrixEigen Matrix to initialize from
rowKeysRow keys describing the matrix
colKeysCol keys describing the matrix

◆ KeyedMatrixBase() [3/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > & other)
inline

Copy constructor.

Parameters
otherThe other object

◆ KeyedMatrixBase() [4/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > && other)
inlinenoexcept

Move constructor.

Parameters
otherThe other object

◆ KeyedMatrixBase() [5/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<int oRows, int oCols>
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > & other)
inline

Copy constructor.

Parameters
otherThe other object

◆ KeyedMatrixBase() [6/6]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<int oRows, int oCols>
NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::KeyedMatrixBase ( KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > && other)
inlinenoexcept

Move constructor.

Parameters
otherThe other object

Member Function Documentation

◆ block() [1/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t Q>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [2/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [3/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t Q>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [4/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [5/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ block() [6/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ block() [7/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ block() [8/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ block() [9/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P, size_t Q = P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [10/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [11/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P, size_t Q = P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ block() [12/12]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::block ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ col() [1/2]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::col ( const ColKeyType & colKey)
inline

Gets the values for the col key.

Parameters
colKeyCol Key
Returns
View into the matrix for the col key

◆ col() [2/2]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::col ( const ColKeyType & colKey) const
inline

Gets the values for the col key.

Parameters
colKeyCol Key
Returns
View into the matrix for the col key

◆ middleCols() [1/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t Q>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleCols ( const std::vector< ColKeyType > & colKeys)
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ middleCols() [2/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleCols ( const std::vector< ColKeyType > & colKeys)
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ middleCols() [3/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t Q>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleCols ( const std::vector< ColKeyType > & colKeys) const
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ middleCols() [4/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleCols ( const std::vector< ColKeyType > & colKeys) const
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ middleRows() [1/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleRows ( const std::vector< RowKeyType > & rowKeys)
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ middleRows() [2/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleRows ( const std::vector< RowKeyType > & rowKeys)
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ middleRows() [3/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<size_t P>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleRows ( const std::vector< RowKeyType > & rowKeys) const
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ middleRows() [4/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::middleRows ( const std::vector< RowKeyType > & rowKeys) const
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ operator()() [1/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( all_t ,
const ColKeyType & colKey )
inline

Gets the values for the col keys.

Parameters
colKeyCol Key
Returns
View into the matrix for the col key

◆ operator()() [2/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( all_t ,
const ColKeyType & colKey ) const
inline

Gets the values for the col key.

Parameters
colKeyCol Key
Returns
View into the matrix for the col key

◆ operator()() [3/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( all_t ,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ operator()() [4/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( all_t ,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the col keys.

Parameters
colKeysCol Keys
Returns
View into the matrix for the col keys

◆ operator()() [5/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
all_t  )
inline

Gets the values for the row key.

Parameters
rowKeyRow Key
Returns
View into the matrix for the row key

◆ operator()() [6/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
all_t  ) const
inline

Gets the values for the row key.

Parameters
rowKeyRow Key
Returns
View into the matrix for the row key

◆ operator()() [7/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
Scalar & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
const ColKeyType & colKey )
inline

Gets the value for the row and col key.

Parameters
rowKeyRow Key
colKeyCol Key
Returns
Scalar value

◆ operator()() [8/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
const Scalar & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
const ColKeyType & colKey ) const
inline

Gets the value for the row and col key.

Parameters
rowKeyRow Key
colKeyCol Key
Returns
Scalar value

◆ operator()() [9/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ operator()() [10/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const RowKeyType & rowKey,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeyRow Key
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ operator()() [11/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
all_t  )
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ operator()() [12/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
all_t  ) const
inline

Gets the values for the row keys.

Parameters
rowKeysRow Keys
Returns
View into the matrix for the row keys

◆ operator()() [13/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ operator()() [14/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
const ColKeyType & colKey ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeyCol Key
Returns
View into the matrix for the row and col keys

◆ operator()() [15/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys )
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ operator()() [16/16]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator() ( const std::vector< RowKeyType > & rowKeys,
const std::vector< ColKeyType > & colKeys ) const
inline

Gets the values for the row and col keys.

Parameters
rowKeysRow Keys
colKeysCol Keys
Returns
View into the matrix for the row and col keys

◆ operator=() [1/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
KeyedMatrixBase & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator= ( const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > & other)
inline

Copy assignment operator.

Parameters
otherThe other object

◆ operator=() [2/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<int oRows, int oCols>
KeyedMatrixBase & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator= ( const KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > & other)
inline

Copy assignment operator.

Parameters
otherThe other object

◆ operator=() [3/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
KeyedMatrixBase & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator= ( KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols > && other)
inlinenoexcept

Move assignment operator.

Parameters
otherThe other object

◆ operator=() [4/4]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
template<int oRows, int oCols>
KeyedMatrixBase & NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::operator= ( KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, oRows, oCols > && other)
inlinenoexcept

Move assignment operator.

Parameters
otherThe other object

◆ row() [1/2]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::row ( const RowKeyType & rowKey)
inline

Gets the values for the row key.

Parameters
rowKeyRow Key
Returns
View into the matrix for the row key

◆ row() [2/2]

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
decltype(auto) NAV::internal::KeyedMatrixBase< Scalar, RowKeyType, ColKeyType, Rows, Cols >::row ( const RowKeyType & rowKey) const
inline

Gets the values for the row key.

Parameters
rowKeyRow Key
Returns
View into the matrix for the row key

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