C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

List of all members
Batch< algorithmFPType, method > Class Template Reference

Computes the cosine distance in the batch processing mode. More...

Class Declaration

template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
class daal::algorithms::cosine_distance::interface1::Batch< algorithmFPType, method >

Template Parameters
algorithmFPTypeData type to use in intermediate computations for the cosine distance, double or float
methodCosine distance computation method, Method
Enumerations
  • Method Cosine distance computation methods
  • InputId Identifiers of cosine distance input objects
  • ResultId Identifiers of cosine distance results

Constructor & Destructor Documentation

◆ Batch()

Batch ( const Batch< algorithmFPType, method > &  other)
inline

Constructs a cosine distance algorithm by copying input objects of another cosine distance algorithm

Parameters
[in]otherAn algorithm to be used as the source to initialize the input objects and parameters of the algorithm

Member Function Documentation

◆ clone()

services::SharedPtr<Batch<algorithmFPType, method> > clone ( ) const
inline

Returns a pointer to the newly allocated cosine distance algorithm with a copy of input objects of this cosine distance algorithm

Returns
Pointer to the newly allocated algorithm

◆ getMethod()

virtual int getMethod ( ) const
inlinevirtual

Returns the method of the algorithm

Returns
Method of the algorithm

Implements AlgorithmIface.

◆ getResult()

ResultPtr getResult ( )
inline

Returns the structure that contains the cosine distance

Returns
Structure that contains the cosine distance

◆ setResult()

services::Status setResult ( const ResultPtr res)
inline

Sets the memory to store results of the cosine distance algorithm

Parameters
[in]resStructure to store results of the algorithm

Member Data Documentation

◆ input

InputType input

Input objects of the algorithm


The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.