BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_inv.hpp File Reference

Inverse of a square matrix. More...

Go to the source code of this file.

Namespaces

namespace  belfem
 USER GUIDES:

Functions

template<typename T>
auto belfem::inv (const Matrix< T > &aA) -> decltype(inv(aA.matrix_data())) const
 Inverse of a square matrix.
template<typename T>
auto belfem::inv (Matrix< T > &aA) -> decltype(inv(aA.matrix_data()))

Detailed Description

Inverse of a square matrix.

Forwards to the backend's own inverse. For the fixed 2x2 and 3x3 cases prefer belfem::inv2 and belfem::inv3, which use the closed-form adjugate and avoid the backend call entirely.