Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::TensorTraits< Vector, Enable > Struct Template Reference

The vector traits. More...

Public Types

using value_type = void
 
using tensor_category = NotATensorTag
 
using execution_policy = NoPolicyTag
 

Detailed Description

template<class Vector, class Enable = void>
struct dg::TensorTraits< Vector, Enable >

The vector traits.

Specialize this struct if you want to enable your own vector/container class for the use in blas1 functions. The contained types are

  • value_type the elementary data type of the contained data
  • tensor_category the layout of the data (derives from AnyMatrixTag)
  • execution_policy for SharedVectorTag the execution policy (derives from AnyPolicyTag) indicates the type of hardware memory is physically allocated on in a vector class and therefore indicates the possible parallelization and optimization strategies.
    See also
    The dg dispatch system

Member Typedef Documentation

◆ execution_policy

template<class Vector , class Enable = void>
using dg::TensorTraits< Vector, Enable >::execution_policy = NoPolicyTag

◆ tensor_category

template<class Vector , class Enable = void>
using dg::TensorTraits< Vector, Enable >::tensor_category = NotATensorTag

◆ value_type

template<class Vector , class Enable = void>
using dg::TensorTraits< Vector, Enable >::value_type = void

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