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>
112 typedef algorithms::qr::Input InputType;
113 typedef algorithms::qr::Parameter ParameterType;
114 typedef algorithms::qr::Result ResultType;
117 ParameterType parameter;
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<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 ResultType());
181 services::Status s = _result->allocate<algorithmFPType>(&input, 0, 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::algorithms::qr::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: qr_batch.h:139
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:95
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
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::Result
Provides methods to access final results obtained with the compute() method of the QR decomposition a...
Definition: qr_types.h:418
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:145
daal::batch
Definition: daal_defines.h:132
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::qr::interface1::Batch::input
InputType input
Definition: qr_batch.h:116
daal::algorithms::qr::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: qr_batch.h:167
daal::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
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:130
daal::algorithms::qr::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: qr_batch.h:154
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::qr::interface1::Batch::parameter
ParameterType parameter
Definition: qr_batch.h:117