Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::TensorTraits< T, std::enable_if_t< std::is_arithmetic< T >::value > > Struct Template Reference

Recognize arithmetic types as scalars. More...

Public Types

using value_type = T
 
using tensor_category = ScalarTag
 
using execution_policy = AnyPolicyTag
 

Detailed Description

template<class T>
struct dg::TensorTraits< T, std::enable_if_t< std::is_arithmetic< T >::value > >

Recognize arithmetic types as scalars.

Member Typedef Documentation

◆ execution_policy

template<class T >
using dg::TensorTraits< T, std::enable_if_t< std::is_arithmetic< T >::value > >::execution_policy = AnyPolicyTag

◆ tensor_category

template<class T >
using dg::TensorTraits< T, std::enable_if_t< std::is_arithmetic< T >::value > >::tensor_category = ScalarTag

◆ value_type

template<class T >
using dg::TensorTraits< T, std::enable_if_t< std::is_arithmetic< T >::value > >::value_type = T

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