Intrepid2
Main Page
Related Pages
Classes
Files
File List
File Members
src
Shared
Intrepid2_DataDef.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Intrepid2 Package
4
//
5
// Copyright 2007 NTESS and the Intrepid2 contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
//
10
// Intrepid2_DataDef.hpp
11
// Created by Roberts, Nathan V on 6/1/23.
12
//
13
14
#ifndef Intrepid2_DataDef_h
15
#define Intrepid2_DataDef_h
16
22
#include "
Intrepid2_DataCombiners.hpp
"
23
24
namespace
Intrepid2 {
25
// forward declaration of a class that assists in in-place sums/products, etc. for Data containers. Defined in Intrepid2_DataCombiners.hpp.
26
template
<
class
DataScalar,
typename
DeviceType,
class
BinaryOperator>
27
class
DataCombiner;
28
29
template
<
class
DataScalar,
typename
DeviceType>
30
template
<
class
BinaryOperator>
31
void
Data<DataScalar,DeviceType>::storeInPlaceCombination
(
const
Data<DataScalar,DeviceType>
&A,
const
Data<DataScalar,DeviceType>
&B, BinaryOperator binaryOperator)
32
{
33
using
DC =
DataCombiner<DataScalar,DeviceType,BinaryOperator>
;
34
DC::storeInPlaceCombination(*
this
,A,B,binaryOperator);
35
}
36
}
37
#endif
/* Intrepid2_DataDef_h */
Intrepid2::Data
Wrapper around a Kokkos::View that allows data that is constant or repeating in various logical dimen...
Definition:
Intrepid2_Data.hpp:77
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:31
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:157
Generated by
1.8.5