ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::algebra::generic::matrix::adjoint::cofactor< matrix_t > Struct Template Reference

"Adjoint getter", assuming a N X N matrix More...

#include <detray/algebra/generic/algorithms/matrix/inverse/cofactor.hpp>

Classes

struct  adjoint_getter_helper
 Helper that computes the adjugate for a fixed matrix rank. More...
struct  adjoint_getter_helper< N >
 Adjugate specialization for a one-element matrix. More...

Public Types

using index_type = detray::traits::index_t<matrix_t>
 Index type used to traverse matrix rows and columns.

Public Member Functions

constexpr matrix_t operator() (const matrix_t &m) const
 Return the adjugate of a square matrix.

Detailed Description

template<concepts::square_matrix matrix_t>
struct detray::algebra::generic::matrix::adjoint::cofactor< matrix_t >

"Adjoint getter", assuming a N X N matrix

Member Function Documentation

◆ operator()()

template<concepts::square_matrix matrix_t>
matrix_t detray::algebra::generic::matrix::adjoint::cofactor< matrix_t >::operator() ( const matrix_t & m) const
constexpr

Return the adjugate of a square matrix.

Parameters
mMatrix whose adjugate is calculated.
Returns
The transposed cofactor matrix.