PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
q_kernel.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_BACKENDS_OPENMP_Q_KERNEL_HPP_
13 #define PLSSVM_BACKENDS_OPENMP_Q_KERNEL_HPP_
14 #pragma once
15 
16 #include <vector> // std::vector
17 
18 namespace plssvm::openmp {
19 
26 template <typename real_type>
27 void device_kernel_q_linear(std::vector<real_type> &q, const std::vector<std::vector<real_type>> &data);
28 
38 template <typename real_type>
39 void device_kernel_q_polynomial(std::vector<real_type> &q, const std::vector<std::vector<real_type>> &data, int degree, real_type gamma, real_type coef0);
40 
48 template <typename real_type>
49 void device_kernel_q_rbf(std::vector<real_type> &q, const std::vector<std::vector<real_type>> &data, real_type gamma);
50 
51 } // namespace plssvm::openmp
52 
53 #endif // PLSSVM_BACKENDS_OPENMP_Q_KERNEL_HPP_
Namespace containing the C-SVM using the OpenMP backend.
Definition: csvm.hpp:27
void device_kernel_q_polynomial(std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data, int degree, real_type gamma, real_type coef0)
Calculates the q vector using the polynomial C-SVM kernel.
void device_kernel_q_linear(std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data)
Calculates the q vector using the linear C-SVM kernel.
void device_kernel_q_rbf(std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data, real_type gamma)
Calculates the q vector using the radial basis functions C-SVM kernel.