SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
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
using return_type = typename base::type
Public Types inherited from Tags::Variables< tmpl::list< DetSpatialMetric< DataType >, InverseSpatialMetric< DataType, SpatialDim, Frame > > >
using tags_list
using type

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 Typedef Documentation

◆ base

template<typename DataType, size_t SpatialDim, typename Frame>
using gr::Tags::DetAndInverseSpatialMetricCompute< DataType, SpatialDim, Frame >::base
Initial value:
tmpl::list<DetSpatialMetric<DataType>,
Definition VariablesTag.hpp:17
Inverse of the spatial metric.
Definition Tags.hpp:32

Member Data Documentation

◆ function

template<typename DataType, size_t SpatialDim, typename Frame>
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:197
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
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:205

The documentation for this struct was generated from the following file:
  • src/PointwiseFunctions/GeneralRelativity/DetAndInverseSpatialMetric.hpp