10 #ifndef ROL_BATCHMANAGER_HPP
11 #define ROL_BATCHMANAGER_HPP
14 #include "ROL_Elementwise_Function.hpp"
31 virtual void sumAll(Real* input, Real* output,
int dim) {
32 for (
int i=0; i<
dim; ++i) output[i] = input[i];
40 const Elementwise::ReductionOp<Real> &r) {
41 for (
int i = 0; i <
dim; ++i) output[i] = input[i];
44 virtual void gatherAll(
const Real *send,
const int ssize, Real *receive,
int const rsize)
const {
45 for (
int i = 0; i < rsize; ++i) receive[i] = send[i];
48 virtual void broadcast(Real *input,
int cnt,
int root) {}
virtual void reduceAll(Real *input, Real *output, int dim, const Elementwise::ReductionOp< Real > &r)
virtual void broadcast(Real *input, int cnt, int root)
Defines the linear algebra or vector space interface.
virtual void sumAll(Real *input, Real *output, int dim)
virtual void set(const Vector &x)
Set where .
virtual void gatherAll(const Real *send, const int ssize, Real *receive, int const rsize) const
virtual void sumAll(Vector< Real > &input, Vector< Real > &output)