Functor used to extract a block from Eigen matrices.
More...
#include <algebra/impl/eigen_getter.hpp>
|
| template<int kROWS, int kCOLS, typename derived_type, concepts::index index_t_1, concepts::index index_t_2> |
| decltype(auto) | operator() (const Eigen::MatrixBase< derived_type > &m, const index_t_1 row, const index_t_2 col) const |
| | Return a block expression from a const matrix.
|
| template<int kROWS, int kCOLS, typename derived_type, concepts::index index_t_1, concepts::index index_t_2> |
| decltype(auto) | operator() (Eigen::MatrixBase< derived_type > &m, const index_t_1 row, const index_t_2 col) const |
| | Return a mutable block expression from a matrix.
|
| template<typename derived_type1, typename derived_type2, concepts::index index_t_1, concepts::index index_t_2> |
| void | set (Eigen::MatrixBase< derived_type1 > &m, const Eigen::MatrixBase< derived_type2 > &b, const index_t_1 row, const index_t_2 col) const |
| | Operator setting a block.
|
| template<int SIZE, typename derived_type, concepts::index index_t_1, concepts::index index_t_2> |
| decltype(auto) | vector (const Eigen::MatrixBase< derived_type > &m, const index_t_1 row, const index_t_2 col) const |
| | Return a const column segment from a matrix.
|
| template<int SIZE, typename derived_type, concepts::index index_t_1, concepts::index index_t_2> |
| decltype(auto) | vector (Eigen::MatrixBase< derived_type > &m, const index_t_1 row, const index_t_2 col) const |
| | Return a mutable column segment from a matrix.
|
Functor used to extract a block from Eigen matrices.
◆ operator()() [1/2]
template<int kROWS, int kCOLS, typename derived_type, concepts::index index_t_1, concepts::index index_t_2>
| decltype(auto) detray::algebra::eigen::storage::block_getter::operator() |
( |
const Eigen::MatrixBase< derived_type > & | m, |
|
|
const index_t_1 | row, |
|
|
const index_t_2 | col ) const |
Return a block expression from a const matrix.
- Parameters
-
| m | Source matrix. |
| row | First row of the block. |
| col | First column of the block. |
- Returns
- A const block expression.
◆ operator()() [2/2]
template<int kROWS, int kCOLS, typename derived_type, concepts::index index_t_1, concepts::index index_t_2>
| decltype(auto) detray::algebra::eigen::storage::block_getter::operator() |
( |
Eigen::MatrixBase< derived_type > & | m, |
|
|
const index_t_1 | row, |
|
|
const index_t_2 | col ) const |
Return a mutable block expression from a matrix.
- Parameters
-
| m | Matrix to access. |
| row | First row of the block. |
| col | First column of the block. |
- Returns
- A mutable block expression.
◆ set()
template<typename derived_type1, typename derived_type2, concepts::index index_t_1, concepts::index index_t_2>
| void detray::algebra::eigen::storage::block_getter::set |
( |
Eigen::MatrixBase< derived_type1 > & | m, |
|
|
const Eigen::MatrixBase< derived_type2 > & | b, |
|
|
const index_t_1 | row, |
|
|
const index_t_2 | col ) const |
Operator setting a block.
- Parameters
-
| m | Matrix to update. |
| b | Block values to write. |
| row | First destination row. |
| col | First destination column. |
◆ vector() [1/2]
template<int SIZE, typename derived_type, concepts::index index_t_1, concepts::index index_t_2>
| decltype(auto) detray::algebra::eigen::storage::block_getter::vector |
( |
const Eigen::MatrixBase< derived_type > & | m, |
|
|
const index_t_1 | row, |
|
|
const index_t_2 | col ) const |
Return a const column segment from a matrix.
- Parameters
-
| m | Source matrix. |
| row | First row of the segment. |
| col | Column containing the segment. |
- Returns
- A const column-block expression.
◆ vector() [2/2]
template<int SIZE, typename derived_type, concepts::index index_t_1, concepts::index index_t_2>
| decltype(auto) detray::algebra::eigen::storage::block_getter::vector |
( |
Eigen::MatrixBase< derived_type > & | m, |
|
|
const index_t_1 | row, |
|
|
const index_t_2 | col ) const |
Return a mutable column segment from a matrix.
- Parameters
-
| m | Matrix to access. |
| row | First row of the segment. |
| col | Column containing the segment. |
- Returns
- A mutable column-block expression.