51 #include "algorithms/engines/mt19937/mt19937_types.h"
52 #include "algorithms/engines/engine.h"
79 template<
typename algorithmFPType, Method method, CpuType cpu>
80 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
88 BatchContainer(daal::services::Environment::env *daalEnv);
95 services::Status compute() DAAL_C11_OVERRIDE;
112 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
113 class DAAL_EXPORT Batch :
public engines::BatchBase
116 typedef engines::BatchBase super;
124 static services::SharedPtr<Batch<algorithmFPType, method> > create(
size_t seed = 777);
130 virtual int getMethod() const DAAL_C11_OVERRIDE {
return (
int)method; }
136 ResultPtr getResult() {
return _result; }
144 services::Status setResult(
const ResultPtr& result)
146 DAAL_CHECK(result, services::ErrorNullResult)
148 _res = _result.get();
149 return services::Status();
157 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
159 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
167 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
169 services::Status s = this->_result->template allocate<algorithmFPType>(&(this->input), NULL, (
int) method);
170 this->_res = this->_result.get();
175 Batch(
size_t seed = 777)
180 Batch(
const Batch<algorithmFPType, method> &other): super(other)
185 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
187 return new Batch<algorithmFPType, method>(*this);
192 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
194 _result.reset(
new Result());
200 typedef services::SharedPtr<Batch<> > mt19937Ptr;
203 using interface1::BatchContainer;
204 using interface1::Batch;
205 using interface1::mt19937Ptr;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::algorithms::engines::mt19937::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: mt19937.h:144
daal::algorithms::engines::mt19937::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: mt19937.h:130
daal::batch
Definition: daal_defines.h:131
daal::algorithms::engines::mt19937::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: mt19937.h:157
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::engines::mt19937::interface1::Batch
Provides methods for mt19937 engine computations in the batch processing mode.
Definition: mt19937.h:113
daal::algorithms::engines::mt19937::interface1::Batch::allocateResult
virtual services::Status allocateResult() DAAL_C11_OVERRIDE
Definition: mt19937.h:167
daal::algorithms::engines::mt19937::interface1::Batch::getResult
ResultPtr getResult()
Definition: mt19937.h:136
daal::algorithms::engines::mt19937::interface1::BatchContainer
Provides methods to run implementations of the mt19937 engine. This class is associated with the mt19...
Definition: mt19937.h:80
daal::services::ErrorNullResult
Definition: error_indexes.h:122