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

Invert a square matrix using LU decomposition with partial pivoting. More...

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

Inheritance diagram for detray::algebra::generic::matrix::inverse::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 matrix_t operator() (const matrix_t &m) const
 Compute the inverse from the pivoted LU factors.

Detailed Description

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

Invert a square matrix using LU decomposition with partial pivoting.

Member Typedef Documentation

◆ decomposition_t

template<concepts::square_matrix matrix_t>
using detray::algebra::generic::matrix::inverse::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>
matrix_t detray::algebra::generic::matrix::inverse::partial_pivot_lud< matrix_t >::operator() ( const matrix_t & m) const
constexpr

Compute the inverse from the pivoted LU factors.

Parameters
mNonsingular square matrix to invert.
Returns
The inverse matrix.