Intrepid2
src
Shared
Intrepid2_DataDef.hpp
Go to the documentation of this file.
1
//
2
// Intrepid2_DataDef.hpp
3
// Created by Roberts, Nathan V on 6/1/23.
4
//
5
6
#ifndef Intrepid2_DataDef_h
7
#define Intrepid2_DataDef_h
8
13
14
#include "
Intrepid2_DataCombiners.hpp
"
15
16
namespace
Intrepid2 {
17
// forward declaration of a class that assists in in-place sums/products, etc. for Data containers. Defined in Intrepid2_DataCombiners.hpp.
18
template
<
class
DataScalar,
typename
DeviceType,
class
BinaryOperator>
19
class
DataCombiner
;
20
21
template
<
class
DataScalar,
typename
DeviceType>
22
template
<
class
BinaryOperator>
23
void
Data<DataScalar,DeviceType>::storeInPlaceCombination
(
const
Data<DataScalar,DeviceType>
&A,
const
Data<DataScalar,DeviceType>
&B, BinaryOperator binaryOperator)
24
{
25
using
DC =
DataCombiner<DataScalar,DeviceType,BinaryOperator>
;
26
DC::storeInPlaceCombination(*
this
,A,B,binaryOperator);
27
}
28
}
29
#endif
/* Intrepid2_DataDef_h */
Intrepid2_DataCombiners.hpp
Defines functors that help with combinations of Data objects, such as in-place sums and products.
Intrepid2::DataCombiner
Definition
Intrepid2_DataCombiners.hpp:150
Intrepid2::Data::storeInPlaceCombination
void storeInPlaceCombination(const Data< DataScalar, DeviceType > &A, const Data< DataScalar, DeviceType > &B, BinaryOperator binaryOperator)
Places the result of an in-place combination (e.g., entrywise sum) into this data container.
Definition
Intrepid2_DataDef.hpp:23
Intrepid2::Data::Data
Data(std::vector< DimensionInfo > dimInfoVector)
Constructor in terms of DimensionInfo for each logical dimension; does not require a View to be speci...
Definition
Intrepid2_Data.hpp:512
Generated by
1.17.0