|
sas
Modularised monitoring, logging, and control of robots.
|
Implementation of core functions. More...
Functions | |
| Eigen::VectorXd | marinholab::sas::core::concatenate (const Eigen::VectorXd &a, const Eigen::VectorXd &b) |
| Concatenate two vectors by appending b after a. | |
| Eigen::VectorXd | marinholab::sas::core::concatenate (const std::vector< Eigen::VectorXd > &as) |
| Concatenate a list of vectors into a single vector. | |
| Eigen::MatrixXd | marinholab::sas::core::vstack (const Eigen::MatrixXd &A, const Eigen::MatrixXd &B) |
| Stack two matrices vertically (A above B). | |
| Eigen::MatrixXd | marinholab::sas::core::block_diag (const std::vector< Eigen::MatrixXd > &As) |
| Create a block-diagonal matrix from a list of matrices. | |
| std::vector< Eigen::VectorXd > | marinholab::sas::core::split (const Eigen::VectorXd &a, const std::vector< int > &ns) |
| Split a vector into pieces with sizes specified by ns. | |
Implementation of core functions.
| Eigen::MatrixXd marinholab::sas::core::block_diag | ( | const std::vector< Eigen::MatrixXd > & | As | ) |
Create a block-diagonal matrix from a list of matrices.
block_diag creates a block diagonal matrix using an input of std::vector<Eigen::MatrixXd>. e.g. if As= [A, B, C], then block_diag(As) = |A 0 0| |0 B 0| |0 0 C|
| As | Vector of matrices to place on the block diagonal. |
| As | the std::vector<Eigen::MatrixXd> contaning the matrix to form the block diagonal matrix. |
| Eigen::VectorXd marinholab::sas::core::concatenate | ( | const Eigen::VectorXd & | a, |
| const Eigen::VectorXd & | b ) |
Concatenate two vectors by appending b after a.
concatenate two Eigen::VectorXd.
| a | First vector. |
| b | Second vector. |
| a | a Eigen::VectorXd. |
| b | a Eigen::VectorXd. |
| Eigen::VectorXd marinholab::sas::core::concatenate | ( | const std::vector< Eigen::VectorXd > & | as | ) |
Concatenate a list of vectors into a single vector.
concatenate a std::vector of Eigen::VectorXd.
| as | Vector of vectors to concatenate in order. |
| a | an std::vector of Eigen::VectorXd. |
| std::vector< Eigen::VectorXd > marinholab::sas::core::split | ( | const Eigen::VectorXd & | a, |
| const std::vector< int > & | ns ) |
Split a vector into pieces with sizes specified by ns.
split splits the input Eigen::VectorXd as into a set of subvectors defined by ns.
| a | Vector to split. |
| ns | Sizes of each piece; their sum must equal a.size(). |
| as | the Eigen::VectorXd to be split. |
| ns | the sizes of the subvectors. |
| Eigen::MatrixXd marinholab::sas::core::vstack | ( | const Eigen::MatrixXd & | A, |
| const Eigen::MatrixXd & | B ) |
Stack two matrices vertically (A above B).
vstack vertically (row-wise) stack two Eigen::MatrixXd.
| A | Top matrix. |
| B | Bottom matrix. |
| std::range_error | if A and B have different numbers of columns. |
| A | the first Eigen::MatrixXd. |
| B | the second Eigen::MatrixXd. |
| a | std::range_error if A and B don't have the same number of columns. |