22 #ifndef __KERNEL_FUNCTION_TYPES_H__
23 #define __KERNEL_FUNCTION_TYPES_H__
25 #include "data_management/data/homogen_numeric_table.h"
40 namespace kernel_function
86 struct DAAL_EXPORT ParameterBase :
public daal::algorithms::Parameter
88 ParameterBase(
size_t rowIndexX = 0,
size_t rowIndexY = 0,
size_t rowIndexResult = 0, ComputationMode computationMode = matrixMatrix);
92 size_t rowIndexResult;
93 ComputationMode computationMode;
101 class DAAL_EXPORT Input :
public daal::algorithms::Input
105 Input(
const Input& other);
114 data_management::NumericTablePtr
get(InputId id)
const;
121 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
124 services::Status checkCSR()
const;
126 services::Status checkDense()
const;
133 class DAAL_EXPORT Result :
public daal::algorithms::Result
136 DECLARE_SERIALIZABLE_CAST(Result);
139 virtual ~Result() {};
146 template <
typename algorithmFPType>
147 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
154 data_management::NumericTablePtr
get(ResultId id)
const;
161 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
169 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
173 template<
typename Archive,
bool onDeserialize>
174 services::Status serialImpl(Archive *arch)
176 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
179 typedef services::SharedPtr<Result> ResultPtr;
182 using interface1::ParameterBase;
183 using interface1::Input;
184 using interface1::Result;
185 using interface1::ResultPtr;
daal::algorithms::kernel_function::ResultId
ResultId
Definition: kernel_function_types.h:68
daal
Definition: algorithm_base_common.h:31
daal::algorithms::kernel_function::interface1::Result
Results obtained with the compute() method of the kernel function algorithm in the batch processing m...
Definition: kernel_function_types.h:133
daal::algorithms::kernel_function::ComputationMode
ComputationMode
Definition: kernel_function_types.h:46
daal::algorithms::kernel_function::interface1::ParameterBase
Optional input objects for the kernel function algorithm.
Definition: kernel_function_types.h:86
daal::algorithms::kernel_function::vectorVector
Definition: kernel_function_types.h:48
daal::algorithms::kernel_function::X
Definition: kernel_function_types.h:59
daal::algorithms::kernel_function::Y
Definition: kernel_function_types.h:60
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexY
size_t rowIndexY
Definition: kernel_function_types.h:91
daal::algorithms::kernel_function::values
Definition: kernel_function_types.h:70
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexX
size_t rowIndexX
Definition: kernel_function_types.h:90
daal::algorithms::kernel_function::InputId
InputId
Definition: kernel_function_types.h:57
daal::algorithms::kernel_function::matrixMatrix
Definition: kernel_function_types.h:50
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexResult
size_t rowIndexResult
Definition: kernel_function_types.h:92
daal::algorithms::kernel_function::interface1::ParameterBase::computationMode
ComputationMode computationMode
Definition: kernel_function_types.h:93
daal::algorithms::kernel_function::matrixVector
Definition: kernel_function_types.h:49