This commit is contained in:
Jan Möbius
2016-11-08 12:27:32 +01:00
parent 12ad76fccf
commit f846b75202

View File

@@ -382,7 +382,7 @@ class VectorT {
auto operator|(const VectorT<OtherScalar, DIM>& _rhs) const ->
decltype(*this->data() * *_rhs.data()) {
return std::inner_product(begin(), begin() + DIM, _rhs.begin() + 1,
return std::inner_product(begin() + 1, begin() + DIM, _rhs.begin() + 1,
*begin() * *_rhs.begin());
}