| 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, |
no test coverage detected