SpECTRE  v2024.04.12
Tags::EuclideanMagnitude< Tag > Struct Template Reference

The Euclidean magnitude of a (co)vector. More...

#include <Magnitude.hpp>

Public Types

using base = Magnitude< Tag >
 
using return_type = typename base::type
 
using argument_tags = tmpl::list< Tag >
 
- Public Types inherited from Tags::Magnitude< Tag >
using tag = Tag
 
using type = Scalar< DataVector >
 

Static Public Attributes

static constexpr auto function
 

Detailed Description

template<typename Tag>
struct Tags::EuclideanMagnitude< Tag >

The Euclidean magnitude of a (co)vector.

This tag inherits from Tags::Magnitude<Tag>

Member Data Documentation

◆ function

template<typename Tag >
constexpr auto Tags::EuclideanMagnitude< Tag >::function
staticconstexpr
Initial value:
=
static_cast<void (*)(const gsl::not_null<return_type*>,
const typename Tag::type&)>(&magnitude)
Require a pointer to not be a nullptr
Definition: Gsl.hpp:183
Scalar< DataType > magnitude(const Tensor< DataType, Symmetry< 1 >, index_list< Index > > &vector)
Compute the Euclidean magnitude of a rank-1 tensor.
Definition: Magnitude.hpp:27

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