24 #ifndef __COSDISTANCE_TYPES_H__
25 #define __COSDISTANCE_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "data_management/data/homogen_numeric_table.h"
31 #include "data_management/data/symmetric_matrix.h"
46 namespace cosine_distance
74 lastResultId = cosineDistance
86 class DAAL_EXPORT Input :
public daal::algorithms::Input
90 Input(
const Input& other) : daal::algorithms::Input(other){}
99 data_management::NumericTablePtr
get(InputId id)
const;
106 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
113 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
120 class DAAL_EXPORT Result :
public daal::algorithms::Result
123 DECLARE_SERIALIZABLE_CAST(Result);
126 virtual ~Result() {};
134 template <
typename algorithmFPType>
135 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
142 data_management::NumericTablePtr
get(ResultId id)
const;
149 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
157 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
161 template<
typename Archive,
bool onDeserialize>
162 services::Status serialImpl(Archive *arch)
164 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
167 typedef services::SharedPtr<Result> ResultPtr;
170 using interface1::Input;
171 using interface1::Result;
172 using interface1::ResultPtr;
daal::algorithms::cosine_distance::interface1::Result
Results obtained with the compute() method of the cosine distance algorithm in the batch processing m...
Definition: cosine_distance_types.h:120
daal::algorithms::cosine_distance::data
Definition: cosine_distance_types.h:64
daal::algorithms::cosine_distance::InputId
InputId
Definition: cosine_distance_types.h:62
daal::algorithms::cosine_distance::defaultDense
Definition: cosine_distance_types.h:55
daal::algorithms::cosine_distance::Method
Method
Definition: cosine_distance_types.h:53
daal::algorithms::cosine_distance::cosineDistance
Definition: cosine_distance_types.h:73
daal::algorithms::cosine_distance::ResultId
ResultId
Definition: cosine_distance_types.h:71
daal::algorithms::cosine_distance::interface1::Input
Input objects for the cosine distance algorithm
Definition: cosine_distance_types.h:86