SpECTRE  v2024.04.12
gr::Tags::DetAndInverseSpatialMetricCompute< DataType, SpatialDim, Frame > Struct Template Reference

Compute item for spatial metric determinant \(\gamma\) and inverse \(\gamma^{ij}\) in terms of the spatial metric \(\gamma_{ij}\). More...

#include <DetAndInverseSpatialMetric.hpp>

Public Types

using argument_tags = tmpl::list< SpatialMetric< DataType, SpatialDim, Frame > >
 
using base = ::Tags::Variables< tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > > >
 
using return_type = typename base::type
 
- Public Types inherited from Tags::Variables< tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > > >
using tags_list = tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > >
 
using type = ::Variables< tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > > >
 

Static Public Attributes

static constexpr auto function
 

Additional Inherited Members

- Static Public Member Functions inherited from Tags::Variables< tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > > >
static std::string name ()
 

Detailed Description

template<typename DataType, size_t SpatialDim, typename Frame>
struct gr::Tags::DetAndInverseSpatialMetricCompute< DataType, SpatialDim, Frame >

Compute item for spatial metric determinant \(\gamma\) and inverse \(\gamma^{ij}\) in terms of the spatial metric \(\gamma_{ij}\).

Details

Can be retrieved using gr::Tags::DetSpatialMetric and gr::Tags::InverseSpatialMetric.

Member Data Documentation

◆ function

template<typename DataType , size_t SpatialDim, typename Frame >
constexpr auto gr::Tags::DetAndInverseSpatialMetricCompute< DataType, SpatialDim, Frame >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
tmpl::list<SpatialIndex<SpatialDim, UpLo::Lo, Frame>,
Definition: ContractFirstNIndices.hpp:16
Require a pointer to not be a nullptr
Definition: Gsl.hpp:183
Tensor_detail::TensorIndexType< SpatialDim, Ul, Fr, IndexType::Spatial > SpatialIndex
A SpatialIndex holds information about the number of spatial dimensions, whether the index is covaria...
Definition: IndexType.hpp:206
void determinant_and_inverse(const gsl::not_null< Scalar< T > * > det, const gsl::not_null< Tensor< T, Symm, tmpl::list< change_index_up_lo< Index1 >, change_index_up_lo< Index0 > > > * > inv, const Tensor< T, Symm, tmpl::list< Index0, Index1 > > &tensor)
Computes the determinant and inverse of a rank-2 Tensor.
Definition: DeterminantAndInverse.hpp:365

The documentation for this struct was generated from the following file: