49 #ifndef __PCA_TRANSFORM_BATCH_H__
50 #define __PCA_TRANSFORM_BATCH_H__
52 #include "algorithms/algorithm.h"
53 #include "services/daal_defines.h"
54 #include "algorithms/pca/transform/pca_transform_types.h"
79 template<
typename algorithmFPType, Method method, CpuType cpu>
80 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
88 BatchContainer(daal::services::Environment::env *daalEnv);
90 virtual ~BatchContainer();
94 virtual services::Status compute() DAAL_C11_OVERRIDE;
108 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
109 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
119 Batch(
size_t nComponents = 0): parameter(nComponents)
130 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
139 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
145 ResultPtr getResult()
154 services::Status setResult(
const ResultPtr& res)
156 DAAL_CHECK(res, services::ErrorNullResult)
158 _res = _result.get();
159 return services::Status();
167 services::SharedPtr<daal::algorithms::pca::transform::interface1::Batch<algorithmFPType, method> > clone()
const
169 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
173 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
175 return new Batch<algorithmFPType, method>(*this);
178 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
180 _result.reset(
new Result());
181 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, 0);
182 _res = _result.get();
188 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
198 using interface1::BatchContainer;
199 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::batch
Definition: daal_defines.h:131
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::services::ErrorNullResult
Definition: error_indexes.h:122