22 #ifndef __CHOLESKY_H__
23 #define __CHOLESKY_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "services/daal_defines.h"
28 #include "algorithms/cholesky/cholesky_types.h"
51 template<
typename algorithmFPType, Method method, CpuType cpu>
52 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
59 BatchContainer(daal::services::Environment::env *daalEnv);
65 virtual services::Status compute() DAAL_C11_OVERRIDE;
82 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
83 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
86 typedef algorithms::cholesky::Input InputType;
87 typedef algorithms::cholesky::Result ResultType;
101 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input)
113 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
119 ResultPtr getResult()
130 services::Status setResult(
const ResultPtr& result)
132 DAAL_CHECK(result, services::ErrorNullResult)
134 _res = _result.get();
135 return services::Status();
143 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
145 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
149 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
151 return new Batch<algorithmFPType, method>(*this);
154 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
156 services::Status s = _result->allocate<algorithmFPType>(&input, NULL, (int)method);
157 _res = _result.get();
163 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
165 _result.reset(
new ResultType());
176 using interface1::BatchContainer;
177 using interface1::Batch;
daal::algorithms::cholesky::interface1::Batch::~Batch
virtual ~Batch()
Definition: cholesky.h:107
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::cholesky::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: cholesky.h:130
daal::algorithms::cholesky::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: cholesky.h:113
daal::batch
Definition: daal_defines.h:106
daal::algorithms::cholesky::interface1::BatchContainer
Provides methods to run implementations of the Cholesky decomposition algorithm. This class is associ...
Definition: cholesky.h:52
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::cholesky::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: cholesky.h:101
daal::algorithms::cholesky::interface1::Batch
Computes Cholesky decomposition in the batch processing mode.
Definition: cholesky.h:83
daal::algorithms::cholesky::interface1::Batch::getResult
ResultPtr getResult()
Definition: cholesky.h:119
daal::algorithms::cholesky::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: cholesky.h:143
daal::algorithms::cholesky::interface1::Batch::input
InputType input
Definition: cholesky.h:169
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::cholesky::interface1::Batch::Batch
Batch()
Definition: cholesky.h:90