Skip to content

Commit 3159f42

Browse files
committed
Remove unused GenericVector::dot_product
Signed-off-by: Stefan Weil <[email protected]>
1 parent bef73d9 commit 3159f42

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/ccutil/genericvector.h

-8
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,6 @@ class GenericVector {
286286
size_used_ = last_write + 1;
287287
}
288288

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-
297289
// Returns the index of what would be the target_index_th item in the array
298290
// if the members were sorted, without actually sorting. Members are
299291
// shuffled around, but it takes O(n) time.

0 commit comments

Comments
 (0)