C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

correlation_distance_types.h
1 /* file: correlation_distance_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Implementation of correlation distance algorithm interface.
21 //--
22 */
23 
24 #ifndef __CORDISTANCE_TYPES_H__
25 #define __CORDISTANCE_TYPES_H__
26 
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"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
46 namespace correlation_distance
47 {
48 
53 enum Method
54 {
55  defaultDense = 0
56 };
57 
62 enum InputId
63 {
64  data,
65  lastInputId = data
66 };
71 enum ResultId
72 {
73  correlationDistance,
74  lastResultId = correlationDistance
75 };
76 
80 namespace interface1
81 {
86 class DAAL_EXPORT Input : public daal::algorithms::Input
87 {
88 public:
89  Input();
90  Input(const Input& other) : daal::algorithms::Input(other){}
91 
92  virtual ~Input() {}
93 
99  data_management::NumericTablePtr get(InputId id) const;
100 
106  void set(InputId id, const data_management::NumericTablePtr &ptr);
107 
113  services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
114 };
115 
120 class DAAL_EXPORT Result : public daal::algorithms::Result
121 {
122 public:
123  DECLARE_SERIALIZABLE_CAST(Result);
124  Result();
125 
126  virtual ~Result() {};
127 
134  template <typename algorithmFPType>
135  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, const int method);
136 
142  data_management::NumericTablePtr get(ResultId id) const;
143 
149  void set(ResultId id, const data_management::NumericTablePtr &ptr);
150 
157  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
158 
159 protected:
161  template<typename Archive, bool onDeserialize>
162  services::Status serialImpl(Archive *arch)
163  {
164  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
165  }
166 };
167 typedef services::SharedPtr<Result> ResultPtr;
169 } // namespace interface1
170 using interface1::Input;
171 using interface1::Result;
172 using interface1::ResultPtr;
173 
174 } // namespace correlation_distance
175 } // namespace algorithms
176 } // namespace daal
177 #endif
daal::algorithms::correlation_distance::interface1::Input
Input objects for the correlation distance algorithm
Definition: correlation_distance_types.h:86
daal::algorithms::correlation_distance::interface1::Result
Results obtained with compute() method of the correlation distance algorithm in the batch processing ...
Definition: correlation_distance_types.h:120
daal::algorithms::correlation_distance::data
Definition: correlation_distance_types.h:64
daal::algorithms::correlation_distance::correlationDistance
Definition: correlation_distance_types.h:73
daal::algorithms::correlation_distance::ResultId
ResultId
Definition: correlation_distance_types.h:71
daal::algorithms::correlation_distance::InputId
InputId
Definition: correlation_distance_types.h:62
daal_defines.h
daal::algorithms::correlation_distance::Method
Method
Definition: correlation_distance_types.h:53
daal::algorithms::correlation_distance::defaultDense
Definition: correlation_distance_types.h:55

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