12 #ifndef PLSSVM_BACKENDS_OPENMP_SVM_KERNEL_HPP_
13 #define PLSSVM_BACKENDS_OPENMP_SVM_KERNEL_HPP_
31 template <
typename real_type>
32 void device_kernel_linear(
const std::vector<real_type> &q, std::vector<real_type> &ret,
const std::vector<real_type> &d,
const std::vector<std::vector<real_type>> &data, real_type QA_cost, real_type cost, real_type add);
48 template <
typename real_type>
49 void device_kernel_polynomial(
const std::vector<real_type> &q, std::vector<real_type> &ret,
const std::vector<real_type> &d,
const std::vector<std::vector<real_type>> &data, real_type QA_cost, real_type cost, real_type add,
int degree, real_type gamma, real_type coef0);
63 template <
typename real_type>
64 void device_kernel_rbf(
const std::vector<real_type> &q, std::vector<real_type> &ret,
const std::vector<real_type> &d,
const std::vector<std::vector<real_type>> &data, real_type QA_cost, real_type cost, real_type add, real_type gamma);
Namespace containing the C-SVM using the OpenMP backend.
Definition: csvm.hpp:27
void device_kernel_polynomial(const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add, int degree, real_type gamma, real_type coef0)
Calculates the C-SVM kernel using the polynomial kernel function.
void device_kernel_rbf(const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add, real_type gamma)
Calculates the C-SVM kernel using the radial basis function kernel function.
void device_kernel_linear(const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add)
Calculates the C-SVM kernel using the linear kernel function.