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

Compute a determinant from an LU decomposition with partial pivoting. More...

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

Inheritance diagram for detray::algebra::generic::matrix::determinant::partial_pivot_lud< matrix_t >:
[legend]

Public Types

using decomposition_t
 LU decomposition implementation used to factor the matrix.
using element_getter_t = detray::traits::element_getter_t<matrix_t>
 Function (object) used for accessing a matrix element.
using index_t = detray::traits::index_t<matrix_t>
 Matrix index type.
using scalar_t = detray::traits::value_t<matrix_t>
 Matrix element type.

Public Member Functions

constexpr scalar_t operator() (const matrix_t &m) const
 Compute the determinant as the signed product of LU diagonal entries.

Detailed Description

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

Compute a determinant from an LU decomposition with partial pivoting.

Member Typedef Documentation

◆ decomposition_t

template<concepts::square_matrix matrix_t>
using detray::algebra::generic::matrix::determinant::partial_pivot_lud< matrix_t >::decomposition_t
Initial value:
matrix_t>
"Partial Pivot LU Decomposition", assuming a N X N matrix
Definition partial_pivot_lud.hpp:23

LU decomposition implementation used to factor the matrix.

Member Function Documentation

◆ operator()()

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

Compute the determinant as the signed product of LU diagonal entries.

Parameters
mSquare matrix whose determinant is calculated.
Returns
The determinant.