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

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

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

Classes

struct  determinant_getter_helper
 Helper that evaluates the determinant for a fixed matrix rank. More...
struct  determinant_getter_helper< N >
 Determinant specialization for a one-element matrix. More...

Public Types

using index_type = detray::traits::index_t<matrix_t>
 Index type used to traverse the matrix.
using scalar_type = detray::traits::value_t<matrix_t>
 Scalar type of the determinant.

Public Member Functions

constexpr scalar_type operator() (const matrix_t &m) const
 Compute the determinant of a square matrix.

Detailed Description

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

"Determinant getter", assuming a N X N matrix

Member Function Documentation

◆ operator()()

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

Compute the determinant of a square matrix.

Parameters
mMatrix whose determinant is calculated.
Returns
The determinant.