48 #ifndef __KERNEL_FUNCTION_TYPES_H__
49 #define __KERNEL_FUNCTION_TYPES_H__
51 #include "data_management/data/homogen_numeric_table.h"
66 namespace kernel_function
112 struct DAAL_EXPORT ParameterBase :
public daal::algorithms::Parameter
114 ParameterBase(
size_t rowIndexX = 0,
size_t rowIndexY = 0,
size_t rowIndexResult = 0, ComputationMode computationMode = matrixMatrix);
118 size_t rowIndexResult;
119 ComputationMode computationMode;
127 class DAAL_EXPORT Input :
public daal::algorithms::Input
131 Input(
const Input& other);
140 data_management::NumericTablePtr
get(InputId id)
const;
147 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
150 services::Status checkCSR()
const;
152 services::Status checkDense()
const;
159 class DAAL_EXPORT Result :
public daal::algorithms::Result
162 DECLARE_SERIALIZABLE_CAST(Result);
165 virtual ~Result() {};
172 template <
typename algorithmFPType>
173 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
180 data_management::NumericTablePtr
get(ResultId id)
const;
187 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
195 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
199 template<
typename Archive,
bool onDeserialize>
200 services::Status serialImpl(Archive *arch)
202 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
205 typedef services::SharedPtr<Result> ResultPtr;
208 using interface1::ParameterBase;
209 using interface1::Input;
210 using interface1::Result;
211 using interface1::ResultPtr;
daal::algorithms::kernel_function::ResultId
ResultId
Definition: kernel_function_types.h:94
daal
Definition: algorithm_base_common.h:57
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:159
daal::algorithms::kernel_function::ComputationMode
ComputationMode
Definition: kernel_function_types.h:72
daal::algorithms::kernel_function::interface1::ParameterBase
Optional input objects for the kernel function algorithm.
Definition: kernel_function_types.h:112
daal::algorithms::kernel_function::vectorVector
Definition: kernel_function_types.h:74
daal::algorithms::kernel_function::X
Definition: kernel_function_types.h:85
daal::algorithms::kernel_function::Y
Definition: kernel_function_types.h:86
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexY
size_t rowIndexY
Definition: kernel_function_types.h:117
daal::algorithms::kernel_function::values
Definition: kernel_function_types.h:96
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexX
size_t rowIndexX
Definition: kernel_function_types.h:116
daal::algorithms::kernel_function::InputId
InputId
Definition: kernel_function_types.h:83
daal::algorithms::kernel_function::matrixMatrix
Definition: kernel_function_types.h:76
daal::algorithms::kernel_function::interface1::ParameterBase::rowIndexResult
size_t rowIndexResult
Definition: kernel_function_types.h:118
daal::algorithms::kernel_function::interface1::ParameterBase::computationMode
ComputationMode computationMode
Definition: kernel_function_types.h:119
daal::algorithms::kernel_function::matrixVector
Definition: kernel_function_types.h:75