*/
template<class VECTOR>
void Tvmult (VECTOR&, const VECTOR&) const;
+ /**
+ * Apply preconditioner, adding to the previous value.
+ */
+ template<class VECTOR>
+ void vmult_add (VECTOR&, const VECTOR&) const;
+
+ /**
+ * Apply transpose
+ * preconditioner, adding. Since this is
+ * the identity, this function is
+ * the same as
+ * @ref{vmult}.
+ */
+ template<class VECTOR>
+ void Tvmult_add (VECTOR&, const VECTOR&) const;
};
dst = src;
}
+template<class VECTOR>
+inline void
+PreconditionIdentity::vmult_add (VECTOR& dst, const VECTOR& src) const
+{
+ dst.add(src);
+}
+
+
+
+template<class VECTOR>
+inline void
+PreconditionIdentity::Tvmult_add (VECTOR& dst, const VECTOR& src) const
+{
+ dst.add(src);
+}
+
//----------------------------------------------------------------------//
template <class MATRIX>
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