44 #ifndef ROL_BATCHMANAGER_HPP
45 #define ROL_BATCHMANAGER_HPP
48 #include "ROL_Elementwise_Function.hpp"
65 virtual void sumAll(Real* input, Real* output,
int dim) {
66 for (
int i=0; i<
dim; ++i) {
76 const Elementwise::ReductionOp<Real> &r) {
77 for (
int i=0; i<
dim; ++i) {
82 virtual void gatherAll(
const Real *send,
const int ssize, Real *receive,
int const rsize)
const {
83 for (
int i = 0; i < rsize; ++i) {
88 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 int numBatches(void)
virtual void barrier(void)
virtual void sumAll(Real *input, Real *output, int dim)
virtual int batchID(void)
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)