diff --git a/vec.h b/vec.h index 43018c4..e01fb7b 100644 --- a/vec.h +++ b/vec.h @@ -213,7 +213,7 @@ template<> inline NRVec & NRVec::operator-=(const double &a) { copyonwrite(); - cblas_daxpy(nn, 1.0, &a, 0, v, 1); + cblas_daxpy(nn, -1.0, &a, 0, v, 1); return *this; }