]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove sadd(scalar,Vector) from VectorSpaceVector interface. 1800/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 19 Nov 2015 20:59:31 +0000 (14:59 -0600)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 19 Nov 2015 20:59:31 +0000 (14:59 -0600)
include/deal.II/lac/la_vector.h
include/deal.II/lac/la_vector.templates.h
include/deal.II/lac/vector_space_vector.h
tests/lac/la_vector_vector.cc

index 893f960b4b6bcbf07ee0633e7ea9e5bdf6ff0ef5..3ef5cda12a95c89160cc2987cc357b932184de09 100644 (file)
@@ -148,11 +148,6 @@ namespace LinearAlgebra
     virtual void add(const Number a, const VectorSpaceVector<Number> &V,
                      const Number b, const VectorSpaceVector<Number> &W);
 
-    /**
-     * Scaling and simple vector addition, i.e. <tt>*this = s*(*this)+V</tt>.
-     */
-    virtual void sadd(const Number s, const VectorSpaceVector<Number> &V);
-
     /**
      * Scaling and simple addition of a multiple of a vector, i.e. <tt>*this =
      * s*(*this)+a*V</tt>.
index 92f8d0bbe751cdeadca07f7f5510c14548e36662..9c69b9c78dff417fbda863e270fa513c8fa6af2a 100644 (file)
@@ -166,15 +166,6 @@ namespace LinearAlgebra
 
 
 
-  template <typename Number>
-  void Vector<Number>::sadd(const Number s, const VectorSpaceVector<Number> &V)
-  {
-    *this *= s;
-    *this += V;
-  }
-
-
-
   template <typename Number>
   void Vector<Number>::sadd(const Number s, const Number a,
                             const VectorSpaceVector<Number> &V)
index 1f09437bac1937b8648bc59222190734db367d5c..b12c8c8564986f42f1ba61c0e11406df15af7516 100644 (file)
@@ -93,11 +93,6 @@ namespace LinearAlgebra
     virtual void add(const Number a, const VectorSpaceVector<Number> &V,
                      const Number b, const VectorSpaceVector<Number> &W) = 0;
 
-    /**
-     * Scaling and simple vector addition, i.e. <tt>*this = s*(*this)+V</tt>.
-     */
-    virtual void sadd(const Number s, const VectorSpaceVector<Number> &V) = 0;
-
     /**
      * Scaling and simple addition of a multiple of a vector, i.e. <tt>*this =
      * s*(*this)+a*V</tt>.
index 1dbc2c4be9cbd69ecd9409cc3a7dbb2af9aa7bfb..1ec01ebc567009dd30b619df8ba16f8593cdd128 100644 (file)
@@ -116,7 +116,7 @@ void check_vectors (LinearAlgebra::Vector<number1> &d1, LinearAlgebra::Vector<nu
 
   deallog << "sadd & scale" << std::endl;
 
-  d2.sadd (2., d1);
+  d2.sadd (2., 1., d1);
   print (d2);
 
   d2.sadd (2., .5, d1);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.