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

kernel_function_types_linear.h
1 /* file: kernel_function_types_linear.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 // Kernel function parameter structure
21 //--
22 */
23 
24 #ifndef __KERNEL_FUNCTION_TYPES_LINEAR_H__
25 #define __KERNEL_FUNCTION_TYPES_LINEAR_H__
26 
27 #include "algorithms/kernel_function/kernel_function_types.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
42 namespace kernel_function
43 {
47 namespace linear
48 {
49 
54 enum Method
55 {
56  defaultDense = 0,
57  fastCSR = 1
58 };
59 
63 namespace interface1
64 {
71 /* [Linear input object source code] */
72 struct DAAL_EXPORT Parameter: public ParameterBase
73 {
74  Parameter(double k = 1.0, double b = 0.0);
75  double k;
76  double b;
77 };
78 /* [Linear input object source code] */
79 
84 class DAAL_EXPORT Input : public kernel_function::Input
85 {
86 public:
87  Input();
88  Input(const Input& other);
89 
90  virtual ~Input() {}
91 
97  services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
98 };
100 } // namespace interface1
101 using interface1::Input;
102 using interface1::Parameter;
103 
104 } // linear
105 } // namespace kernel_function
106 } // namespace algorithms
107 } // namespace daal
108 #endif
daal::algorithms::kernel_function::linear::fastCSR
Definition: kernel_function_types_linear.h:57
daal::algorithms::kernel_function::linear::interface1::Input
Input objects for the kernel function linear algorithm
Definition: kernel_function_types_linear.h:84
daal::algorithms::kernel_function::linear::interface1::Parameter
Parameters for the linear kernel function k(X,Y) + b.
Definition: kernel_function_types_linear.h:72
daal::algorithms::kernel_function::linear::interface1::Parameter::k
double k
Definition: kernel_function_types_linear.h:75
daal::algorithms::kernel_function::linear::interface1::Parameter::b
double b
Definition: kernel_function_types_linear.h:76
daal::algorithms::kernel_function::linear::defaultDense
Definition: kernel_function_types_linear.h:56
daal::algorithms::kernel_function::linear::Method
Method
Definition: kernel_function_types_linear.h:54

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