DUNE-ACFEM (unstable)
Dune::ACFem::Tensor::BlockEye< BlockRank, Seq< Dimensions... >, Field > Class Template Reference
"Identity" block tensor formed of BlockRank many copies of BlockSignature multi-indices. More...
#include <dune/acfem/tensors/modules/blockeye.hh>
Collaboration diagram for Dune::ACFem::Tensor::BlockEye< BlockRank, Seq< Dimensions... >, Field >:
Public Member Functions | |
template<class... Dims, std::enable_if_t<(sizeof...(Dims)==rank &&IsIntegralPack< Dims... >::value), int > = 0> | |
FieldType | 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, int > = 0> | |
decltype(auto) | operator() (Seq< Indices... >) const |
Constant access with index sequence. | |
Detailed Description
template<std::size_t BlockRank, std::size_t... Dimensions, class Field>
class Dune::ACFem::Tensor::BlockEye< BlockRank, Seq< Dimensions... >, Field >
"Identity" block tensor formed of BlockRank many copies of BlockSignature multi-indices.
It evaluates to 1 if the respective multi-indices coincide.
Example: BlockRank = 3, BlockSignature = <2, 4>
BlockEye(1, 2, 1, 2, 1, 2) = 1 BlockEye(0, 2, 1, 2, 1, 2) = 0 BlockEye(0, 2, 0, 2, 1, 2) = 0 BlockEye(0, 2, 0, 2, 0, 2) = 1
The documentation for this class was generated from the following file:
- dune/acfem/tensors/modules/blockeye.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.80.0
(Apr 27, 22:29, 2024)