48 #ifndef __COSDISTANCE_TYPES_H__
49 #define __COSDISTANCE_TYPES_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "services/daal_defines.h"
54 #include "data_management/data/homogen_numeric_table.h"
55 #include "data_management/data/symmetric_matrix.h"
70 namespace cosine_distance
98 lastResultId = cosineDistance
110 class DAAL_EXPORT Input :
public daal::algorithms::Input
114 Input(
const Input& other) : daal::algorithms::Input(other){}
123 data_management::NumericTablePtr
get(InputId id)
const;
130 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
137 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
144 class DAAL_EXPORT Result :
public daal::algorithms::Result
147 DECLARE_SERIALIZABLE_CAST(Result);
150 virtual ~Result() {};
158 template <
typename algorithmFPType>
159 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
166 data_management::NumericTablePtr
get(ResultId id)
const;
173 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
181 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
185 template<
typename Archive,
bool onDeserialize>
186 services::Status serialImpl(Archive *arch)
188 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
191 typedef services::SharedPtr<Result> ResultPtr;
194 using interface1::Input;
195 using interface1::Result;
196 using interface1::ResultPtr;
daal::algorithms::cosine_distance::InputId
InputId
Definition: cosine_distance_types.h:86
daal
Definition: algorithm_base_common.h:57
daal::algorithms::cosine_distance::ResultId
ResultId
Definition: cosine_distance_types.h:95
daal::algorithms::cosine_distance::cosineDistance
Definition: cosine_distance_types.h:97
daal::algorithms::cosine_distance::defaultDense
Definition: cosine_distance_types.h:79
daal::algorithms::cosine_distance::Method
Method
Definition: cosine_distance_types.h:77
daal::algorithms::cosine_distance::data
Definition: cosine_distance_types.h:88
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:144