48 #ifndef __CHOLESKY_H__ 49 #define __CHOLESKY_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/numeric_table.h" 53 #include "services/daal_defines.h" 54 #include "algorithms/cholesky/cholesky_types.h" 77 template<
typename algorithmFPType, Method method, CpuType cpu>
78 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
85 BatchContainer(daal::services::Environment::env *daalEnv);
91 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::cholesky::Input InputType;
113 typedef algorithms::cholesky::Result ResultType;
127 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input)
139 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
145 ResultPtr getResult()
156 services::Status setResult(
const ResultPtr& result)
158 DAAL_CHECK(result, services::ErrorNullResult)
160 _res = _result.get();
161 return services::Status();
169 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const 171 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
175 virtual Batch<algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
177 return new Batch<algorithmFPType, method>(*this);
180 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
182 services::Status s = _result->allocate<algorithmFPType>(&input, NULL, (int)method);
183 _res = _result.get();
189 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
191 _result.reset(
new ResultType());
202 using interface1::BatchContainer;
203 using interface1::Batch;
daal::algorithms::cholesky::interface1::Batch::~Batch
virtual ~Batch()
Definition: cholesky.h:133
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::cholesky::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: cholesky.h:156
daal::algorithms::cholesky::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: cholesky.h:139
daal::algorithms::cholesky::interface1::Result
Results obtained with the compute() method of the Cholesky algorithm in the batch processing mode...
Definition: cholesky_types.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::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
daal::algorithms::cholesky::interface1::BatchContainer
Provides methods to run implementations of the Cholesky decomposition algorithm. This class is associ...
Definition: cholesky.h:78
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::cholesky::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: cholesky.h:127
daal::algorithms::cholesky::interface1::Batch
Computes Cholesky decomposition in the batch processing mode.
Definition: cholesky.h:109
daal::algorithms::cholesky::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: cholesky.h:169
daal::algorithms::cholesky::interface1::Batch::getResult
ResultPtr getResult()
Definition: cholesky.h:145
daal::algorithms::cholesky::interface1::Batch::input
InputType input
Definition: cholesky.h:195
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::cholesky::interface1::Batch::Batch
Batch()
Definition: cholesky.h:116