22 #ifndef __SVD_BATCH_H__
23 #define __SVD_BATCH_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "services/daal_defines.h"
28 #include "algorithms/svd/svd_types.h"
52 template<
typename algorithmFPType, Method method, CpuType cpu>
53 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
61 BatchContainer(daal::services::Environment::env *daalEnv);
63 virtual ~BatchContainer();
67 virtual services::Status compute() DAAL_C11_OVERRIDE;
81 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
82 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
85 typedef algorithms::svd::Input InputType;
86 typedef algorithms::svd::Parameter ParameterType;
87 typedef algorithms::svd::Result ResultType;
90 ParameterType parameter;
103 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
112 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
118 ResultPtr getResult()
126 services::Status setResult(
const ResultPtr& res)
128 DAAL_CHECK(res, services::ErrorNullResult)
130 _res = _result.get();
131 return services::Status();
139 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
141 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
145 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
147 return new Batch<algorithmFPType, method>(*this);
150 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
152 _result.reset(
new ResultType());
153 services::Status s = _result->allocate<algorithmFPType>(_in, 0, 0);
154 _res = _result.get();
160 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
170 using interface1::BatchContainer;
171 using interface1::Batch;
daal::algorithms::svd::interface1::Batch::input
InputType input
Definition: svd_batch.h:89
daal::algorithms::svd::interface1::Batch
Computes results of the SVD algorithm in the batch processing mode.
Definition: svd_batch.h:82
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::algorithms::svd::interface1::Batch::parameter
ParameterType parameter
Definition: svd_batch.h:90
daal::algorithms::svd::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: svd_batch.h:126
daal::algorithms::svd::interface1::BatchContainer
Provides methods to run implementations of the SVD algorithm.
Definition: svd_batch.h:53
daal::batch
Definition: daal_defines.h:106
daal::algorithms::svd::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: svd_batch.h:139
daal::algorithms::svd::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: svd_batch.h:112
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::svd::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: svd_batch.h:103
daal::algorithms::svd::interface1::Batch::getResult
ResultPtr getResult()
Definition: svd_batch.h:118
daal::services::ErrorNullResult
Definition: error_indexes.h:96