Commit dc878604 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Comment fix + simplifications in Vector.h and VectorView.h

parent a2f84095
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -49,14 +49,14 @@ class Vector
                    const RealType& thisElementMultiplicator );

   template< typename VectorT >
   Vector< Real, Device, Index >& operator -= ( const VectorT& vector );
   Vector& operator -= ( const VectorT& vector );

   template< typename VectorT >
   Vector< Real, Device, Index >& operator += ( const VectorT& vector );
   Vector& operator += ( const VectorT& vector );

   Vector< Real, Device, Index >& operator *= ( const RealType& c );
   Vector& operator *= ( const RealType& c );

   Vector< Real, Device, Index >& operator /= ( const RealType& c );
   Vector& operator /= ( const RealType& c );

   Real max() const;

@@ -102,7 +102,6 @@ class Vector
                   const Real& multiplicator = 1.0,
                   const Real& thisMultiplicator = 1.0 );


   //! Computes this = thisMultiplicator * this + multiplicator1 * v1 + multiplicator2 * v2.
   template< typename Vector >
   void addVectors( const Vector& v1,
+5 −5
Original line number Diff line number Diff line
@@ -55,14 +55,14 @@ public:
   using ArrayView< Real, Device, Index >::operator!=;

   template< typename Vector >
   VectorView< Real, Device, Index >& operator-=( const Vector& vector );
   VectorView& operator-=( const Vector& vector );

   template< typename Vector >
   VectorView< Real, Device, Index >& operator+=( const Vector& vector );
   VectorView& operator+=( const Vector& vector );

   VectorView< Real, Device, Index >& operator*=( RealType c );
   VectorView& operator*=( RealType c );

   VectorView< Real, Device, Index >& operator/=( RealType c );
   VectorView& operator/=( RealType c );

   NonConstReal max() const;

@@ -102,7 +102,7 @@ public:
   template< typename Vector >
   NonConstReal scalarProduct( const Vector& v );

   //! Computes Y = alpha * X + Y.
   //! Computes this = thisMultiplicator * this + alpha * x.
   template< typename Vector >
   void addVector( const Vector& x,
                   Real alpha = 1.0,