Functor used to extract a block from SMatrix matrices.
More...
#include <algebra/impl/smatrix_getter.hpp>
|
| template<unsigned int ROWS, unsigned int COLS, unsigned int oROWS, unsigned int oCOLS, concepts::scalar scalar_t> |
| ROOT::Math::SMatrix< scalar_t, ROWS, COLS > | operator() (const ROOT::Math::SMatrix< scalar_t, oROWS, oCOLS > &m, unsigned int row, unsigned int col) const |
| | Extract a rectangular block from a matrix.
|
| template<unsigned int ROWS, unsigned int COLS, concepts::scalar scalar_t, concepts::matrix input_matrix_type> |
| void | set (input_matrix_type &m, const ROOT::Math::SMatrix< scalar_t, ROWS, COLS > &b, std::size_t row, std::size_t col) const |
| | Operator setting a block with a matrix.
|
| template<unsigned int ROWS, concepts::scalar scalar_t, concepts::matrix input_matrix_type> |
| void | set (input_matrix_type &m, const ROOT::Math::SVector< scalar_t, ROWS > &b, unsigned int row, unsigned int col) const |
| | Operator setting a block with a vector.
|
| template<unsigned int SIZE, unsigned int ROWS, unsigned int COLS, concepts::scalar scalar_t> |
| ROOT::Math::SVector< scalar_t, SIZE > | vector (const ROOT::Math::SMatrix< scalar_t, ROWS, COLS > &m, unsigned int row, unsigned int col) const |
| | Extract a contiguous segment from one matrix column.
|
Functor used to extract a block from SMatrix matrices.
◆ operator()()
template<unsigned int ROWS, unsigned int COLS, unsigned int oROWS, unsigned int oCOLS, concepts::scalar scalar_t>
| ROOT::Math::SMatrix< scalar_t, ROWS, COLS > detray::algebra::smatrix::storage::block_getter::operator() |
( |
const ROOT::Math::SMatrix< scalar_t, oROWS, oCOLS > & | m, |
|
|
unsigned int | row, |
|
|
unsigned int | col ) const |
Extract a rectangular block from a matrix.
- Parameters
-
| m | Source matrix. |
| row | First row of the block. |
| col | First column of the block. |
- Returns
- A matrix containing the selected block.
◆ set() [1/2]
template<unsigned int ROWS, unsigned int COLS, concepts::scalar scalar_t, concepts::matrix input_matrix_type>
| void detray::algebra::smatrix::storage::block_getter::set |
( |
input_matrix_type & | m, |
|
|
const ROOT::Math::SMatrix< scalar_t, ROWS, COLS > & | b, |
|
|
std::size_t | row, |
|
|
std::size_t | col ) const |
Operator setting a block with a matrix.
- Parameters
-
| m | Matrix to update. |
| b | Block values to write. |
| row | First destination row. |
| col | First destination column. |
◆ set() [2/2]
template<unsigned int ROWS, concepts::scalar scalar_t, concepts::matrix input_matrix_type>
| void detray::algebra::smatrix::storage::block_getter::set |
( |
input_matrix_type & | m, |
|
|
const ROOT::Math::SVector< scalar_t, ROWS > & | b, |
|
|
unsigned int | row, |
|
|
unsigned int | col ) const |
Operator setting a block with a vector.
- Parameters
-
| m | Matrix to update. |
| b | Vector values to write. |
| row | First destination row. |
| col | Destination column. |
◆ vector()
template<unsigned int SIZE, unsigned int ROWS, unsigned int COLS, concepts::scalar scalar_t>
| ROOT::Math::SVector< scalar_t, SIZE > detray::algebra::smatrix::storage::block_getter::vector |
( |
const ROOT::Math::SMatrix< scalar_t, ROWS, COLS > & | m, |
|
|
unsigned int | row, |
|
|
unsigned int | col ) const |
Extract a contiguous segment from one matrix column.
- Parameters
-
| m | Source matrix. |
| row | First row of the segment. |
| col | Column containing the segment. |
- Returns
- A vector containing the selected segment.