44 #ifndef TPETRA_TRANSFORM_HPP
45 #define TPETRA_TRANSFORM_HPP
47 #include "TpetraCore_config.h"
73 template<
class ExecutionSpace,
74 class GlobalDataStructure,
75 class UnaryFunctionType>
78 ExecutionSpace execSpace,
79 GlobalDataStructure& input,
80 GlobalDataStructure& output,
99 template<
class GlobalDataStructure,
100 class UnaryFunctionType>
103 GlobalDataStructure& input,
104 GlobalDataStructure& output,
105 UnaryFunctionType f);
111 template<
class ExecutionSpace,
112 class GlobalDataStructure>
115 template<
class UnaryFunctionType>
118 ExecutionSpace execSpace,
119 GlobalDataStructure& input,
120 GlobalDataStructure& output,
121 UnaryFunctionType f);
124 template<
class BinaryFunctionType>
127 ExecutionSpace execSpace,
128 GlobalDataStructure& input1,
129 GlobalDataStructure& input2,
130 GlobalDataStructure& output,
131 BinaryFunctionType f);
138 template<
class ExecutionSpace,
139 class GlobalDataStructure,
140 class UnaryFunctionType>
143 ExecutionSpace execSpace,
144 GlobalDataStructure& input,
145 GlobalDataStructure& output,
150 using UFT = UnaryFunctionType;
152 impl_type::template transform<UFT> (kernelLabel, execSpace,
158 template<
class GlobalDataStructure,
159 class UnaryFunctionType>
162 GlobalDataStructure& input,
163 GlobalDataStructure& output,
166 using execution_space =
167 typename GlobalDataStructure::device_type::execution_space;
170 using UFT = UnaryFunctionType;
172 execution_space execSpace;
173 impl_type::template transform<UFT> (kernelLabel, execSpace,
179 template<
class ExecutionSpace,
180 class GlobalDataStructure,
181 class BinaryFunctionType>
184 ExecutionSpace execSpace,
185 GlobalDataStructure& input1,
186 GlobalDataStructure& input2,
187 GlobalDataStructure& output,
188 BinaryFunctionType f)
192 using BFT = BinaryFunctionType;
194 impl_type::template transform<BFT> (kernelLabel, execSpace,
195 input1, input2, output, f);
200 #endif // TPETRA_TRANSFORM_HPP
void transform(const char kernelLabel[], ExecutionSpace execSpace, GlobalDataStructure &input, GlobalDataStructure &output, UnaryFunctionType f)
For each local entry input_i of input, assign f(input_i) to the corresponding local entry output_i of...