24 #ifndef __KERNEL_FUNCTION_LINEAR_H__
25 #define __KERNEL_FUNCTION_LINEAR_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "algorithms/kernel_function/kernel_function_types_linear.h"
30 #include "algorithms/kernel_function/kernel_function.h"
36 namespace kernel_function
58 template<
typename algorithmFPType, Method method, CpuType cpu>
59 class BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
67 BatchContainer(daal::services::Environment::env *daalEnv);
73 virtual services::Status compute() DAAL_C11_OVERRIDE;
92 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
93 class DAAL_EXPORT Batch :
public KernelIface
96 typedef KernelIface super;
98 typedef algorithms::kernel_function::linear::Input InputType;
99 typedef algorithms::kernel_function::linear::Parameter ParameterType;
100 typedef typename super::ResultType ResultType;
102 ParameterType parameter;
117 Batch(
const Batch<algorithmFPType, method> &other) : KernelIface(other), parameter(other.parameter), input(other.input)
126 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
132 virtual InputType * getInput() DAAL_C11_OVERRIDE {
return &input; }
138 virtual ParameterBase * getParameter() DAAL_C11_OVERRIDE {
return ¶meter; }
145 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
147 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
153 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
158 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
160 return new Batch<algorithmFPType, method>(*this);
163 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
165 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, (int) method);
166 _res = _result.get();
172 using interface1::BatchContainer;
173 using interface1::Batch;
daal::algorithms::kernel_function::linear::interface1::Batch
Computes a linear kernel function in the batch processing mode.
Definition: kernel_function_linear.h:93
daal::algorithms::kernel_function::linear::interface1::Batch::getParameter
virtual ParameterBase * getParameter() DAAL_C11_OVERRIDE
Definition: kernel_function_linear.h:138
daal::batch
Definition: daal_defines.h:112
daal::algorithms::kernel_function::linear::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: kernel_function_linear.h:145
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:55
daal::algorithms::kernel_function::linear::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: kernel_function_linear.h:126
daal::algorithms::kernel_function::linear::interface1::Batch::getInput
virtual InputType * getInput() DAAL_C11_OVERRIDE
Definition: kernel_function_linear.h:132
daal::algorithms::kernel_function::linear::interface1::Batch::input
InputType input
Definition: kernel_function_linear.h:103
daal::algorithms::kernel_function::linear::interface1::BatchContainer::compute
virtual services::Status compute() DAAL_C11_OVERRIDE
daal::algorithms::kernel_function::linear::interface1::Batch::Batch
Batch()
Definition: kernel_function_linear.h:106
daal::algorithms::kernel_function::linear::interface1::BatchContainer
Provides methods to run implementations of the linear kernel function algorithm. This class is associ...
Definition: kernel_function_linear.h:59
daal::algorithms::kernel_function::linear::interface1::Batch::parameter
ParameterType parameter
Definition: kernel_function_linear.h:102
daal::algorithms::kernel_function::linear::interface1::BatchContainer::~BatchContainer
~BatchContainer()
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::kernel_function::linear::interface1::BatchContainer::BatchContainer
BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::kernel_function::linear::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: kernel_function_linear.h:117