Functions
DeterminantAndInverse.hpp File Reference

Defines function computing the determinant and inverse of a tensor. More...

#include <type_traits>
#include <utility>
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "ErrorHandling/Assert.hpp"
#include "Utilities/MakeWithValue.hpp"
#include "Utilities/Requires.hpp"

Go to the source code of this file.

Functions

template<typename T , typename Symm , typename Index0 , typename Index1 >
auto determinant_and_inverse (const Tensor< T, Symm, tmpl::list< Index0, Index1 >> &tensor) noexcept -> std::pair< Scalar< T >, Tensor< T, Symm, tmpl::list< change_index_up_lo< Index1 >, change_index_up_lo< Index0 >>>>
 Computes the determinant and inverse of a rank-2 Tensor. More...
 

Detailed Description

Defines function computing the determinant and inverse of a tensor.