0.2.0
Loading...
Searching...
No Matches
Eigen.hpp File Reference

Vector space operations. More...

Go to the source code of this file.

Typedefs

using Eigen::AngleAxisld
 Long double Eigen::AngleAxis.
 
using Eigen::Array3ld
 Long double 3x1 Eigen::Array.
 
using json
 json namespace
 
using Eigen::Matrix3ld
 Long double 3x3 Eigen::Matrix.
 
using Eigen::Matrix4ld
 Long double 4x4 Eigen::Matrix.
 
using Eigen::Quaternionld
 Long double Eigen::Quaternion.
 
using Eigen::Vector3ld
 Long double 3x1 Eigen::Vector.
 
using Eigen::Vector4ld
 Long double 3x1 Eigen::Vector.
 

Functions

template<typename _Scalar , int _Rows, int _Cols>
void Eigen::from_json (const json &j, Matrix< _Scalar, _Rows, _Cols > &matrix)
 Converts the provided json object into a matrix.
 
template<typename Derived >
void NAV::removeCols (Eigen::DenseBase< Derived > &matrix, const std::vector< int > &colIndices)
 Removes cols from a matrix or vector.
 
template<typename Derived >
void NAV::removeCols (Eigen::DenseBase< Derived > &matrix, size_t index, size_t length)
 Removes columns from a matrix or vector.
 
template<typename Derived >
void NAV::removeRows (Eigen::DenseBase< Derived > &matrix, const std::vector< int > &rowIndices)
 Removes rows from a matrix or vector.
 
template<typename Derived >
void NAV::removeRows (Eigen::DenseBase< Derived > &matrix, size_t index, size_t length)
 Removes rows from a matrix or vector.
 
template<typename Derived >
void NAV::removeRowsAndCols (Eigen::DenseBase< Derived > &matrix, const std::vector< int > &rowIndices, const std::vector< int > &colIndices)
 Removes rows and columns from a matrix or vector.
 
template<typename Derived >
void NAV::removeRowsAndCols (Eigen::DenseBase< Derived > &matrix, size_t row, size_t rows, size_t col, size_t cols)
 Removes rows and columns from a matrix or vector.
 
template<typename _Scalar , int _Rows, int _Cols>
void Eigen::to_json (json &j, const Matrix< _Scalar, _Rows, _Cols > &matrix)
 Converts the provided matrix into a json objetc.
 

Detailed Description

Vector space operations.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2021-01-05

Function Documentation

◆ from_json()

template<typename _Scalar , int _Rows, int _Cols>
void Eigen::from_json ( const json & j,
Matrix< _Scalar, _Rows, _Cols > & matrix )

Converts the provided json object into a matrix.

Template Parameters
_ScalarData Type of the matrix
_RowsAmount of rows of the matrix
_ColsAmount of cols of the matrix
Parameters
[in]jJson object to read the coefficients from
[out]matrixMatrix object to fill

◆ removeCols() [1/2]

template<typename Derived >
void NAV::removeCols ( Eigen::DenseBase< Derived > & matrix,
const std::vector< int > & colIndices )

Removes cols from a matrix or vector.

Parameters
matrixMatrix to remove from
colIndicesList with indices of cols to remove

◆ removeCols() [2/2]

template<typename Derived >
void NAV::removeCols ( Eigen::DenseBase< Derived > & matrix,
size_t index,
size_t length )

Removes columns from a matrix or vector.

Parameters
matrixMatrix to remove from
indexIndex to start removing
lengthLength to remove

◆ removeRows() [1/2]

template<typename Derived >
void NAV::removeRows ( Eigen::DenseBase< Derived > & matrix,
const std::vector< int > & rowIndices )

Removes rows from a matrix or vector.

Parameters
matrixMatrix to remove from
rowIndicesList with indices of rows to remove

◆ removeRows() [2/2]

template<typename Derived >
void NAV::removeRows ( Eigen::DenseBase< Derived > & matrix,
size_t index,
size_t length )

Removes rows from a matrix or vector.

Parameters
matrixMatrix to remove from
indexIndex to start removing
lengthLength to remove

◆ removeRowsAndCols() [1/2]

template<typename Derived >
void NAV::removeRowsAndCols ( Eigen::DenseBase< Derived > & matrix,
const std::vector< int > & rowIndices,
const std::vector< int > & colIndices )

Removes rows and columns from a matrix or vector.

Parameters
matrixMatrix to remove from
rowIndicesList with indices of rows to remove
colIndicesList with indices of cols to remove

◆ removeRowsAndCols() [2/2]

template<typename Derived >
void NAV::removeRowsAndCols ( Eigen::DenseBase< Derived > & matrix,
size_t row,
size_t rows,
size_t col,
size_t cols )

Removes rows and columns from a matrix or vector.

Parameters
matrixMatrix to remove from
rowRow index to start removing
rowsAmount of rows to remove
colCol index to start removing
colsAmount of cols to remove

◆ to_json()

template<typename _Scalar , int _Rows, int _Cols>
void Eigen::to_json ( json & j,
const Matrix< _Scalar, _Rows, _Cols > & matrix )

Converts the provided matrix into a json objetc.

Template Parameters
_ScalarData Type of the matrix
_RowsAmount of rows of the matrix
_ColsAmount of cols of the matrix
Parameters
[out]jJson object to fill with
[in]matrixMatrix to convert into json