Optional Eigen adapters that convert Eigen objects to COPP matrix views or map COPP-owned matrices without changing the core API types. More...
Typedefs | |
| using | ColMajorMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor> |
| Dynamic column-major Eigen matrix type matching copp::Matrix storage. | |
| using | RowMajorMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> |
| Dynamic row-major Eigen matrix accepted by input adapters. | |
| using | Vector = Eigen::Matrix<double, Eigen::Dynamic, 1> |
| Dynamic Eigen vector accepted by Span adapters. | |
Functions | |
| MatrixView | matrix_view (const Eigen::Ref< const ColMajorMatrix > &matrix) |
| Borrow a column-major Eigen matrix as a COPP matrix view. | |
| MatrixView | matrix_view (const Eigen::Ref< const RowMajorMatrix > &matrix) |
| Borrow a row-major Eigen matrix as a COPP matrix view. | |
| Span< const double > | span (const Eigen::Ref< const Vector > &vector) |
| Borrow a contiguous Eigen vector as Span<const double>. | |
| Eigen::Map< ColMajorMatrix > | map (Matrix &matrix) |
| Map a mutable COPP matrix into Eigen without copying. | |
| Eigen::Map< const ColMajorMatrix > | map (const Matrix &matrix) |
| Map a const COPP matrix into Eigen without copying. | |
| ColMajorMatrix | copy (const Matrix &matrix) |
| Copy a COPP matrix into an owning Eigen column-major matrix. | |
Optional Eigen adapters that convert Eigen objects to COPP matrix views or map COPP-owned matrices without changing the core API types.
| using copp::eigen::ColMajorMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor> |
Dynamic column-major Eigen matrix type matching copp::Matrix storage.
| using copp::eigen::RowMajorMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> |
| using copp::eigen::Vector = Eigen::Matrix<double, Eigen::Dynamic, 1> |
|
inline |
Borrow a column-major Eigen matrix as a COPP matrix view.
| matrix | Eigen reference whose inner stride must be one. |
| copp::Error | when the view is not contiguous along the inner dimension. |
|
inline |
|
inline |
|
inline |
|
inline |