24 #ifndef __PCA_BATCH_H__
25 #define __PCA_BATCH_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "services/daal_memory.h"
31 #include "algorithms/pca/pca_types.h"
48 template<
typename algorithmFPType, Method method, CpuType cpu>
49 class BatchContainer :
public AnalysisContainerIface<batch>
55 template<
typename algorithmFPType, CpuType cpu>
56 class BatchContainer<algorithmFPType, correlationDense, cpu> :
public AnalysisContainerIface<batch>
64 BatchContainer(daal::services::Environment::env *daalEnv);
70 services::Status compute() DAAL_C11_OVERRIDE;
80 template<
typename algorithmFPType, CpuType cpu>
81 class BatchContainer<algorithmFPType, svdDense, cpu> :
public AnalysisContainerIface<batch>
89 BatchContainer(daal::services::Environment::env *daalEnv);
95 services::Status compute() DAAL_C11_OVERRIDE;
108 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = correlationDense>
109 class DAAL_EXPORT Batch :
public Analysis<batch>
112 typedef algorithms::pca::Input InputType;
113 typedef algorithms::pca::BatchParameter<algorithmFPType, method> ParameterType;
114 typedef algorithms::pca::Result ResultType;
127 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
138 virtual int getMethod() const DAAL_C11_OVERRIDE {
return method; };
144 services::Status setResult(
const ResultPtr& res)
146 DAAL_CHECK(res, services::ErrorNullResult)
148 _res = _result.get();
149 return services::Status();
156 ResultPtr getResult() {
return _result; }
163 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
165 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
169 BatchParameter<algorithmFPType, method> parameter;
174 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
176 return new Batch<algorithmFPType, method>(*this);
179 services::Status allocateResult() DAAL_C11_OVERRIDE
181 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, method);
182 _res = _result.get();
188 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
191 _result.reset(
new ResultType());
197 using interface3::BatchContainer;
198 using interface3::Batch;
daal::algorithms::pca::interface3::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: pca_batch.h:163
daal::algorithms::pca::interface3::Batch::getResult
ResultPtr getResult()
Definition: pca_batch.h:156
daal::batch
Definition: daal_defines.h:112
daal::algorithms::pca::correlationDense
Definition: pca_types.h:57
daal::algorithms::pca::interface3::Batch::parameter
BatchParameter< algorithmFPType, method > parameter
Definition: pca_batch.h:169
daal::algorithms::pca::interface3::BatchParameter
Class that specifies the parameters of the PCA algorithm in the batch computing mode.
Definition: pca_types.h:678
daal::algorithms::pca::interface3::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: pca_batch.h:138
daal::algorithms::pca::svdDense
Definition: pca_types.h:59
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::pca::interface3::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: pca_batch.h:144
daal::algorithms::pca::interface3::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: pca_batch.h:127
daal::algorithms::pca::interface3::Batch::Batch
Batch()
Definition: pca_batch.h:117
daal::algorithms::pca::interface3::Batch::input
InputType input
Definition: pca_batch.h:168
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::pca::interface3::Batch
Computes the results of the PCA algorithm.
Definition: pca_batch.h:109
daal::algorithms::pca::interface3::BatchContainer
Contains version 3.0 of Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) interface...
Definition: pca_batch.h:49