diff --git a/cpp/Matrix.cpp b/cpp/Matrix.cpp index 0ece773c4..4983d3864 100644 --- a/cpp/Matrix.cpp +++ b/cpp/Matrix.cpp @@ -802,18 +802,21 @@ return collect(matrices); } /* ************************************************************************* */ -// row scaling -Matrix vector_scale(const Vector& v, const Matrix& A) { - Matrix M(A); +// row scaling, in-place +void vector_scale_inplace(const Vector& v, Matrix& A) { size_t m = A.size1(); size_t n = A.size2(); for (size_t i=0; i