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

Method get_dot_product_dns_csr

src/thundersvm/kernelmatrix.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159#endif
160void KernelMatrix::get_dot_product_dns_csr(const SyncArray<int> &idx, SyncArray<kernel_type> &dot_product) const {
161 SyncArray<kernel_type> data_rows(idx.size() * n_features_);
162 data_rows.mem_set(0);
163 get_working_set_ins(val_, col_ind_, row_ptr_, idx, data_rows, idx.size(), n_features_);
164 dns_csr_mul(data_rows, idx.size(), dot_product);
165}
166
167void KernelMatrix::get_dot_product(const DataSet::node2d &instances, SyncArray<kernel_type> &dot_product) const {
168 SyncArray<kernel_type> dense_ins(instances.size() * n_features_);

Callers

nothing calls this directly

Calls 4

get_working_set_insFunction · 0.85
dns_csr_mulFunction · 0.85
mem_setMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected