提交 79397053 编写于 作者: L Liu Yiqun

Add the missing return statement.

上级 1e76feea
...@@ -106,6 +106,7 @@ T dotProduct(const int n, const T* x, const T* y) { ...@@ -106,6 +106,7 @@ T dotProduct(const int n, const T* x, const T* y) {
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
result += x[i] * y[i]; result += x[i] * y[i];
} }
return result;
} }
template <class T> template <class T>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册