49 #ifndef __QR_BATCH_H__
50 #define __QR_BATCH_H__
52 #include "algorithms/algorithm.h"
53 #include "data_management/data/numeric_table.h"
54 #include "services/daal_defines.h"
55 #include "algorithms/qr/qr_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>
126 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
135 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
141 ResultPtr getResult()
150 services::Status setResult(
const ResultPtr& res)
152 DAAL_CHECK(res, services::ErrorNullResult)
154 _res = _result.get();
155 return services::Status();
163 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
165 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
169 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
171 return new Batch<algorithmFPType, method>(*this);
174 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
176 _result.reset(
new Result());
177 services::Status s = _result->allocate<algorithmFPType>(&input, 0, 0);
178 _res = _result.get();
184 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
194 using interface1::BatchContainer;
195 using interface1::Batch;
daal::algorithms::qr::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: qr_batch.h:135
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::algorithms::qr::interface1::Batch
Computes the results of the QR decomposition algorithm in the batch processing mode.
Definition: qr_batch.h:109
daal::algorithms::qr::interface1::Parameter
Parameters for the QR decomposition compute method.
Definition: qr_types.h:662
daal::algorithms::qr::interface1::Batch::input
Input input
Definition: qr_batch.h:112
daal::algorithms::qr::interface1::BatchContainer
Provides methods to run implementations of the QR decomposition algorithm in the batch processing mod...
Definition: qr_batch.h:80
daal::algorithms::qr::interface1::Batch::getResult
ResultPtr getResult()
Definition: qr_batch.h:141
daal::batch
Definition: daal_defines.h:131
daal::algorithms::qr::interface1::Batch::parameter
Parameter parameter
Definition: qr_batch.h:113
daal::algorithms::qr::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: qr_batch.h:163
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::qr::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: qr_batch.h:126
daal::algorithms::qr::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: qr_batch.h:150
daal::services::ErrorNullResult
Definition: error_indexes.h:122