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

Function c_smo_solve

src/thundersvm/kernel/smo_kernel.cpp:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void c_smo_solve(const SyncArray<int> &y, SyncArray<float_type> &f_val, SyncArray<float_type> &alpha,
117 SyncArray<float_type> &alpha_diff,
118 const SyncArray<int> &working_set, float_type Cp, float_type Cn,
119 const SyncArray<kernel_type> &k_mat_rows,
120 const SyncArray<kernel_type> &k_mat_diag, int row_len, float_type eps, SyncArray<float_type> &diff,
121 int max_iter) {
122 c_smo_solve_kernel(y.host_data(), f_val.host_data(), alpha.host_data(), alpha_diff.host_data(),
123 working_set.host_data(), working_set.size(), Cp, Cn, k_mat_rows.host_data(),
124 k_mat_diag.host_data(), row_len, eps, diff.host_data(), max_iter);
125 }
126
127 void nu_smo_solve_kernel(const int *y, float_type *f_val, float_type *alpha, float_type *alpha_diff,
128 const int *working_set, int ws_size, float_type C, const kernel_type *k_mat_rows,

Callers 1

smo_kernelMethod · 0.85

Calls 3

c_smo_solve_kernelFunction · 0.85
host_dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected