27 #include "algorithms/engines/mt2203/mt2203_types.h"
28 #include "algorithms/engines/engine_family.h"
55 template<
typename algorithmFPType, Method method, CpuType cpu>
56 class BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
64 BatchContainer(daal::services::Environment::env *daalEnv);
71 services::Status compute() DAAL_C11_OVERRIDE;
88 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
89 class DAAL_EXPORT Batch :
public engines::FamilyBatchBase
92 typedef engines::FamilyBatchBase super;
94 typedef typename super::InputType InputType;
95 typedef typename super::ResultType ResultType;
104 static services::SharedPtr<Batch<algorithmFPType, method> > create(
size_t seed = 777, services::Status *st = NULL);
110 virtual int getMethod() const DAAL_C11_OVERRIDE {
return (
int)method; }
116 ResultPtr getResult() {
return _result; }
124 services::Status setResult(
const ResultPtr& result)
126 DAAL_CHECK(result, services::ErrorNullResult)
128 _res = _result.get();
129 return services::Status();
137 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
139 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
147 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
149 services::Status s = this->_result->template allocate<algorithmFPType>(&(this->input), NULL, (
int) method);
150 this->_res = this->_result.get();
155 Batch(
size_t seed = 777): super()
160 Batch(
const Batch<algorithmFPType, method> &other): super(other)
165 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
167 return new Batch<algorithmFPType, method>(*this);
172 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
174 _result.reset(
new ResultType());
180 typedef services::SharedPtr<Batch<> > mt2203Ptr;
181 typedef services::SharedPtr<const Batch<> > mt2203ConstPtr;
184 using interface1::BatchContainer;
185 using interface1::Batch;
186 using interface1::mt2203Ptr;
187 using interface1::mt2203ConstPtr;
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:56
daal::algorithms::engines::mt2203::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: mt2203.h:124
daal::batch
Definition: daal_defines.h:112
daal::algorithms::engines::mt2203::interface1::Batch::getResult
ResultPtr getResult()
Definition: mt2203.h:116
daal::algorithms::engines::mt2203::interface1::BatchContainer::compute
services::Status compute() DAAL_C11_OVERRIDE
daal::algorithms::engines::mt2203::interface1::Batch::allocateResult
virtual services::Status allocateResult() DAAL_C11_OVERRIDE
Definition: mt2203.h:147
daal::algorithms::engines::mt2203::interface1::Batch
Provides methods for mt2203 engine computations in the batch processing mode.
Definition: mt2203.h:89
daal::services::ErrorNullResult
Definition: error_indexes.h:98
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:55
daal::algorithms::engines::mt2203::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: mt2203.h:137
daal::algorithms::engines::mt2203::interface1::BatchContainer::BatchContainer
BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::engines::mt2203::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: mt2203.h:110