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

Method get_dot_product_csr_csr

src/thundersvm/kernelmatrix.cpp:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189#ifndef USE_CUDA
190void KernelMatrix::get_dot_product_csr_csr(const SyncArray<int> &idx, SyncArray<kernel_type> &dot_product) const {
191 SyncArray<kernel_type> ws_val;
192 SyncArray<int> ws_col_ind;
193 SyncArray<int> ws_row_ptr;
194 get_working_set_ins(val_, col_ind_, row_ptr_, idx, ws_val, ws_col_ind, ws_row_ptr, idx.size());
195 csr_csr_mul(ws_val, idx.size(), ws_col_ind, ws_row_ptr, dot_product);
196}
197
198void KernelMatrix::get_dot_product_dns_dns(const SyncArray<int> &idx, SyncArray<kernel_type> &dot_product) const {
199 SyncArray<kernel_type> data_rows(idx.size() * n_features_);

Callers

nothing calls this directly

Calls 3

get_working_set_insFunction · 0.85
csr_csr_mulFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected