PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Public Types | Public Member Functions | List of all members
plssvm::sycl::detail::device_kernel_q_rbf< T > Class Template Reference

Functor to calculate the q vector using the radial basis functions C-SVM kernel. More...

#include <q_kernel.hpp>

Public Types

using real_type = T
 The type of the data.
 

Public Member Functions

 device_kernel_q_rbf (real_type *q, const real_type *data_d, const real_type *data_last, const kernel_index_type num_rows, const kernel_index_type num_cols, const real_type gamma)
 Construct a new device kernel calculating the q vector using the radial basis functions C-SVM kernel. More...
 
void operator() (::sycl::id< 1 > index) const
 Function call operator overload performing the actual calculation. More...
 

Detailed Description

template<typename T>
class plssvm::sycl::detail::device_kernel_q_rbf< T >

Functor to calculate the q vector using the radial basis functions C-SVM kernel.

Currently only single GPU execution is supported.

Template Parameters
Tthe type of the data

Constructor & Destructor Documentation

◆ device_kernel_q_rbf()

template<typename T >
plssvm::sycl::detail::device_kernel_q_rbf< T >::device_kernel_q_rbf ( real_type q,
const real_type data_d,
const real_type data_last,
const kernel_index_type  num_rows,
const kernel_index_type  num_cols,
const real_type  gamma 
)
inline

Construct a new device kernel calculating the q vector using the radial basis functions C-SVM kernel.

Parameters
[out]qthe calculated q vector
[in]data_dthe one-dimensional data matrix
[in]data_lastthe last row in the data matrix
[in]num_rowsthe number of rows in the data matrix
[in]num_colsthe number of columns in the data matrix
[in]gammathe gamma parameter used in the rbf kernel function

Member Function Documentation

◆ operator()()

template<typename T >
void plssvm::sycl::detail::device_kernel_q_rbf< T >::operator() ( ::sycl::id< 1 >  index) const
inline

Function call operator overload performing the actual calculation.

Parameters
[in]indexthe sycl::id identifying an instance of the functor executing at each point in a sycl::range

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