DUNE-ACFEM (unstable)
linearstorage.hh
51 : public TensorBase<typename std::decay_t<Container>::value_type, Seq<Dimensions...>, LinearStorageTensor<Container, Seq<Dimensions...> > >
53 , public MPL::UniqueTags<ConditionalType<IsConstantExprArg<Container>::value, ConstantExpression, void> >
56 using BaseType = TensorBase<typename std::decay_t<Container>::value_type, Seq<Dimensions...>, LinearStorageTensor<Container, Seq<Dimensions...> > >;
74 template<class T, std::enable_if_t<std::is_constructible<FieldType, T>::value && !std::is_constructible<Container, std::initializer_list<T> >::value, int> = 0 >
148 //std::clog << "index " << index << " <- " << std::array<std::size_t, rank>({{ (std::size_t)indices... }}) << std::endl;
163 //std::clog << "index " << index << " <- " << std::array<std::size_t, rank>({{ (std::size_t)indices... }}) << std::endl;
decltype(auto) constexpr operator()(Seq< Indices... >) const
Constant access from index-sequence.
Definition: linearstorage.hh:170
LinearStorageTensor(const Tensor &other)
Copy from any other tensor.
Definition: linearstorage.hh:116
LinearStorageTensor()
Allow default construction.
Definition: linearstorage.hh:91
decltype(auto) constexpr operator()(Seq< Indices... >)
Constant access from index-sequence.
Definition: linearstorage.hh:179
A tensor wrapping an object with an operator[].
Definition: linearstorage.hh:30
constexpr decltype(auto) expressionClosure(T &&t)
Do-nothing default implementation for pathologic cases.
Definition: interface.hh:93
decltype(isIntegralPack(std::declval< T >()...)) IsIntegralPack
Decide whether the given parameter pack contains only integral types.
Definition: compare.hh:377
Sequence< std::size_t, V... > IndexSequence
Sequence of std::size_t values.
Definition: types.hh:64
BoolConstant<(std::is_const< T >::value||std::is_const< std::remove_reference_t< T > >::value)> RefersConst
TrueType if const or a reference to a const.
Definition: types.hh:133
BoolConstant< false > FalseType
Alias for std::false_type.
Definition: types.hh:110
constexpr auto multiIndex(IndexSequence< Dims... >, IndexConstant< I >=IndexConstant< I >{})
Generate the multi-index corresponding to the flattened index I where the multiindex varies between t...
Definition: multiindex.hh:60
constexpr std::size_t flattenMultiIndex(Dims, const std::array< std::size_t, N > &indices)
Flatten run-time variable std::array.
Definition: multiindex.hh:111
Terminals may derive from this class to express that they are expressions.
Definition: terminal.hh:25
Definition: types.hh:422
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.80.0
(May 7, 22:32, 2024)