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) {
75 virtual void reduceAll(Real *input, Real* output,
int dim,
76 const Elementwise::ReductionOp<Real> &r) {
77 for (
int i=0; i<dim; ++i) {
82 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 sumAll(Vector< Real > &input, Vector< Real > &output)