| 11 | |
| 12 | namespace svm_kernel { |
| 13 | __host__ __device__ inline bool is_I_up(float_type a, float_type y, float_type Cp, float_type Cn) { |
| 14 | return (y > 0 && a < Cp) || (y < 0 && a > 0); |
| 15 | } |
| 16 | |
| 17 | __host__ __device__ inline bool is_I_low(float_type a, float_type y, float_type Cp, float_type Cn) { |
| 18 | return (y > 0 && a > 0) || (y < 0 && a < Cn); |
no outgoing calls
no test coverage detected