25 #include "algorithms/engines/mt2203/mt2203_types.h"
26 #include "algorithms/engines/engine_family.h"
53 template<
typename algorithmFPType, Method method, CpuType cpu>
54 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
62 BatchContainer(daal::services::Environment::env *daalEnv);
69 services::Status compute() DAAL_C11_OVERRIDE;
86 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
87 class DAAL_EXPORT Batch :
public engines::FamilyBatchBase
90 typedef engines::FamilyBatchBase super;
92 typedef typename super::InputType InputType;
93 typedef typename super::ResultType ResultType;
102 static services::SharedPtr<Batch<algorithmFPType, method> > create(
size_t seed = 777, services::Status *st = NULL);
108 virtual int getMethod() const DAAL_C11_OVERRIDE {
return (
int)method; }
114 ResultPtr getResult() {
return _result; }
122 services::Status setResult(
const ResultPtr& result)
124 DAAL_CHECK(result, services::ErrorNullResult)
126 _res = _result.get();
127 return services::Status();
135 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
137 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
145 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
147 services::Status s = this->_result->template allocate<algorithmFPType>(&(this->input), NULL, (
int) method);
148 this->_res = this->_result.get();
153 Batch(
size_t seed = 777): super()
158 Batch(
const Batch<algorithmFPType, method> &other): super(other)
163 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
165 return new Batch<algorithmFPType, method>(*this);
170 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
172 _result.reset(
new ResultType());
178 typedef services::SharedPtr<Batch<> > mt2203Ptr;
179 typedef services::SharedPtr<const Batch<> > mt2203ConstPtr;
182 using interface1::BatchContainer;
183 using interface1::Batch;
184 using interface1::mt2203Ptr;
185 using interface1::mt2203ConstPtr;
daal::algorithms::engines::mt2203::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: mt2203.h:108
daal
Definition: algorithm_base_common.h:31
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:53
daal::batch
Definition: daal_defines.h:110
daal::algorithms::engines::mt2203::interface1::Batch::getResult
ResultPtr getResult()
Definition: mt2203.h:114
daal::algorithms::engines::mt2203::interface1::Batch::allocateResult
virtual services::Status allocateResult() DAAL_C11_OVERRIDE
Definition: mt2203.h:145
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::engines::mt2203::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: mt2203.h:122
daal::algorithms::engines::mt2203::interface1::Batch
Provides methods for mt2203 engine computations in the batch processing mode.
Definition: mt2203.h:87
daal::algorithms::engines::mt2203::interface1::BatchContainer
Provides methods to run implementations of the mt2203 engine. This class is associated with the mt220...
Definition: mt2203.h:54
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::engines::mt2203::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: mt2203.h:135