DUNE-ACFEM (unstable)

Dune::ACFem::Tensor::ConstantTensor< Field, Seq< Dimensions... > > Class Template Reference

A tensor where all elements evaluate to the same constant value. More...

#include <dune/acfem/tensors/modules/constant.hh>

+ Collaboration diagram for Dune::ACFem::Tensor::ConstantTensor< Field, Seq< Dimensions... > >:

Public Member Functions

template<class... Dummy, std::enable_if_t<(sizeof...(Dummy)==0 &&IsTypedValue< DataType >::value), int > = 0>
 ConstantTensor (Dummy &&...)
 Allow default construction if contained types fulfill IsTypedValue.
 
template<class... Dims, std::enable_if_t<(sizeof...(Dims)==rank &&IsIntegralPack< Dims... >::value), int > = 0>
decltype(auto) operator() (Dims... indices) const
 Insert the current view-indices at their proper positions and foward to the underlying "host" tensor.
 
template<std::size_t... Indices, std::enable_if_t<(sizeof...(Indices)==rank &&ThisType::template isZero< Indices... >()), int > = 0>
decltype(auto) constexpr operator() (Seq< Indices... >) const
 Constant access from index-sequence, zero optimization.
 
template<std::size_t... Indices, std::enable_if_t<(sizeof...(Indices)==rank &&!ThisType::template isZero< Indices... >()), int > = 0>
decltype(auto) constexpr operator() (Seq< Indices... >) const
 Constant access from index-sequence, zero optimization.
 

Detailed Description

template<class Field, std::size_t... Dimensions>
class Dune::ACFem::Tensor::ConstantTensor< Field, Seq< Dimensions... > >

A tensor where all elements evaluate to the same constant value.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 12, 22:29, 2024)