diff --git a/src/TNL/Containers/Vector.h b/src/TNL/Containers/Vector.h index 8a131ab847d0d7f7f369b9a08f280bb16f6fae19..dbce6fb808de38135a7493de7ee5dbbb443f1beb 100644 --- a/src/TNL/Containers/Vector.h +++ b/src/TNL/Containers/Vector.h @@ -285,6 +285,7 @@ public: * \brief Returns the result of following: thisMultiplicator * this + multiplicator * v. */ template< typename Vector, typename Scalar1 = Real, typename Scalar2 = Real > + [[deprecated("addVector is deprecated - use expression templates instead.")]] void addVector( const Vector& v, const Scalar1 multiplicator = 1.0, const Scalar2 thisMultiplicator = 1.0 ); @@ -293,6 +294,7 @@ public: * \brief Returns the result of following: thisMultiplicator * this + multiplicator1 * v1 + multiplicator2 * v2. */ template< typename Vector1, typename Vector2, typename Scalar1, typename Scalar2, typename Scalar3 = Real > + [[deprecated("addVectors is deprecated - use expression templates instead.")]] void addVectors( const Vector1& v1, const Scalar1 multiplicator1, const Vector2& v2, diff --git a/src/TNL/Containers/VectorView.h b/src/TNL/Containers/VectorView.h index c5a0edcf6e008e6b636f5571fae30b6b71d90516..b552d1b46de67ca562c697305a2cb009f5bf30d2 100644 --- a/src/TNL/Containers/VectorView.h +++ b/src/TNL/Containers/VectorView.h @@ -182,12 +182,14 @@ public: //! Computes this = thisMultiplicator * this + alpha * x. template< typename Vector, typename Scalar1 = Real, typename Scalar2 = Real > + [[deprecated("addVector is deprecated - use expression templates instead.")]] void addVector( const Vector& x, Scalar1 alpha = 1.0, Scalar2 thisMultiplicator = 1.0 ); //! Computes this = thisMultiplicator * this + multiplicator1 * v1 + multiplicator2 * v2. template< typename Vector1, typename Vector2, typename Scalar1, typename Scalar2, typename Scalar3 = Real > + [[deprecated("addVectors is deprecated - use expression templates instead.")]] void addVectors( const Vector1& v1, Scalar1 multiplicator1, const Vector2& v2,