22 #ifndef __PCA_BATCH_H__
23 #define __PCA_BATCH_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "services/daal_defines.h"
28 #include "services/daal_memory.h"
29 #include "algorithms/pca/pca_types.h"
46 template<
typename algorithmFPType, Method method, CpuType cpu>
47 class DAAL_EXPORT BatchContainer :
public AnalysisContainerIface<batch>
53 template<
typename algorithmFPType, CpuType cpu>
54 class DAAL_EXPORT BatchContainer<algorithmFPType, correlationDense, cpu> :
public AnalysisContainerIface<batch>
62 BatchContainer(daal::services::Environment::env *daalEnv);
68 services::Status compute() DAAL_C11_OVERRIDE;
78 template<
typename algorithmFPType, CpuType cpu>
79 class DAAL_EXPORT BatchContainer<algorithmFPType, svdDense, cpu> :
public AnalysisContainerIface<batch>
87 BatchContainer(daal::services::Environment::env *daalEnv);
93 services::Status compute() DAAL_C11_OVERRIDE;
106 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = correlationDense>
107 class DAAL_EXPORT Batch :
public Analysis<batch>
110 typedef algorithms::pca::Input InputType;
111 typedef algorithms::pca::BatchParameter<algorithmFPType, method> ParameterType;
112 typedef algorithms::pca::Result ResultType;
125 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
136 virtual int getMethod() const DAAL_C11_OVERRIDE {
return method; };
142 services::Status setResult(
const ResultPtr& res)
144 DAAL_CHECK(res, services::ErrorNullResult)
146 _res = _result.get();
147 return services::Status();
154 ResultPtr getResult() {
return _result; }
161 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
163 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
167 BatchParameter<algorithmFPType, method> parameter;
172 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
174 return new Batch<algorithmFPType, method>(*this);
177 services::Status allocateResult() DAAL_C11_OVERRIDE
179 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, method);
180 _res = _result.get();
186 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
189 _result.reset(
new ResultType());
195 using interface3::BatchContainer;
196 using interface3::Batch;
daal::algorithms::pca::interface3::Batch::Batch
Batch()
Definition: pca_batch.h:115
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::pca::interface3::BatchParameter
Class that specifies the parameters of the PCA algorithm in the batch computing mode.
Definition: pca_types.h:676
daal::algorithms::pca::interface3::Batch::input
InputType input
Definition: pca_batch.h:166
daal::algorithms::pca::interface3::Batch::parameter
BatchParameter< algorithmFPType, method > parameter
Definition: pca_batch.h:167
daal::algorithms::pca::interface3::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: pca_batch.h:136
daal::algorithms::pca::interface3::BatchContainer
Contains version 3.0 of Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) interface...
Definition: pca_batch.h:47
daal::batch
Definition: daal_defines.h:110
daal::algorithms::pca::svdDense
Definition: pca_types.h:57
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::pca::interface3::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: pca_batch.h:142
daal::algorithms::pca::interface3::Batch::getResult
ResultPtr getResult()
Definition: pca_batch.h:154
daal::algorithms::pca::interface3::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: pca_batch.h:125
daal::algorithms::pca::interface3::Batch
Computes the results of the PCA algorithm.
Definition: pca_batch.h:107
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::pca::interface3::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: pca_batch.h:161
daal::algorithms::pca::correlationDense
Definition: pca_types.h:55