We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bef73d9 commit 3159f42Copy full SHA for 3159f42
src/ccutil/genericvector.h
@@ -286,14 +286,6 @@ class GenericVector {
286
size_used_ = last_write + 1;
287
}
288
289
- T dot_product(const GenericVector<T>& other) const {
290
- T result = static_cast<T>(0);
291
- for (int i = std::min(size_used_, other.size_used_) - 1; i >= 0; --i) {
292
- result += data_[i] * other.data_[i];
293
- }
294
- return result;
295
296
-
297
// Returns the index of what would be the target_index_th item in the array
298
// if the members were sorted, without actually sorting. Members are
299
// shuffled around, but it takes O(n) time.
0 commit comments