0.2.0
|
Vector space operations. More...
Go to the source code of this file.
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. | |
Vector space operations.
void Eigen::from_json | ( | const json & | j, |
Matrix< _Scalar, _Rows, _Cols > & | matrix ) |
Converts the provided json object into a matrix.
_Scalar | Data Type of the matrix |
_Rows | Amount of rows of the matrix |
_Cols | Amount of cols of the matrix |
[in] | j | Json object to read the coefficients from |
[out] | matrix | Matrix object to fill |
void NAV::removeCols | ( | Eigen::DenseBase< Derived > & | matrix, |
const std::vector< int > & | colIndices ) |
Removes cols from a matrix or vector.
matrix | Matrix to remove from |
colIndices | List with indices of cols to remove |
void NAV::removeCols | ( | Eigen::DenseBase< Derived > & | matrix, |
size_t | index, | ||
size_t | length ) |
Removes columns from a matrix or vector.
matrix | Matrix to remove from |
index | Index to start removing |
length | Length to remove |
void NAV::removeRows | ( | Eigen::DenseBase< Derived > & | matrix, |
const std::vector< int > & | rowIndices ) |
Removes rows from a matrix or vector.
matrix | Matrix to remove from |
rowIndices | List with indices of rows to remove |
void NAV::removeRows | ( | Eigen::DenseBase< Derived > & | matrix, |
size_t | index, | ||
size_t | length ) |
Removes rows from a matrix or vector.
matrix | Matrix to remove from |
index | Index to start removing |
length | Length to remove |
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.
matrix | Matrix to remove from |
rowIndices | List with indices of rows to remove |
colIndices | List with indices of cols to remove |
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.
matrix | Matrix to remove from |
row | Row index to start removing |
rows | Amount of rows to remove |
col | Col index to start removing |
cols | Amount of cols to remove |
void Eigen::to_json | ( | json & | j, |
const Matrix< _Scalar, _Rows, _Cols > & | matrix ) |
Converts the provided matrix into a json objetc.
_Scalar | Data Type of the matrix |
_Rows | Amount of rows of the matrix |
_Cols | Amount of cols of the matrix |
[out] | j | Json object to fill with |
[in] | matrix | Matrix to convert into json |