MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / is_I_up

Function is_I_up

include/thundersvm/kernel/smo_kernel.h:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace 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);

Callers 5

calculate_rhoMethod · 0.85
select_working_setMethod · 0.85
select_working_setMethod · 0.85
calculate_rhoMethod · 0.85
c_smo_solve_kernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected