]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
vmult for simple vector restored
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Jul 2004 14:22:45 +0000 (14:22 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Jul 2004 14:22:45 +0000 (14:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@9494 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_matrix_base.h

index 6346271572310e795b28f75ef473a35f7a8bfe91..b25abae0ac4dde72f02efd068dbfa15c98d1eed3 100644 (file)
@@ -18,6 +18,7 @@
 #include <base/table.h>
 #include <base/smartpointer.h>
 #include <lac/block_indices.h>
+#include <lac/vector.h>
 
 #include <cmath>
 
@@ -514,10 +515,9 @@ class BlockMatrixBase : public Subscriptor
                                      * applicable if the matrix has
                                      * only one block.
                                      */
-    template <class BlockVectorType,
-              class VectorType>
-    void vmult (VectorType       &dst,
-               const VectorType &src) const;
+    template <typename number>
+    void vmult (Vector<number>       &dst,
+               const Vector<number> &src) const;
     
                                     /**
                                      * Matrix-vector multiplication:
@@ -562,10 +562,9 @@ class BlockMatrixBase : public Subscriptor
                                      * applicable if the matrix has
                                      * only one block.
                                      */
-    template <class BlockVectorType,
-              class VectorType>
-    void Tvmult (VectorType       &dst,
-                const VectorType &src) const;
+    template <typename number>
+    void Tvmult (Vector<number>       &dst,
+                const Vector<number> &src) const;
     
                                     /**
                                      * Adding Matrix-vector
@@ -1351,11 +1350,10 @@ BlockMatrixBase<MatrixType>::vmult (BlockVectorType  &dst,
 
 
 template <class MatrixType>
-template <class BlockVectorType,
-          class VectorType>
+template <typename number>
 void
-BlockMatrixBase<MatrixType>::vmult (VectorType       &dst,
-                                    const VectorType &src) const
+BlockMatrixBase<MatrixType>::vmult (Vector<number>       &dst,
+                                    const Vector<number> &src) const
 {
   Assert (1 == n_block_rows(),
          ExcDimensionMismatch(1, n_block_rows()));
@@ -1455,11 +1453,10 @@ BlockMatrixBase<MatrixType>::Tvmult (VectorType    &dst,
 
 
 template <class MatrixType>
-template <class BlockVectorType,
-          class VectorType>
+template <typename number>
 void
-BlockMatrixBase<MatrixType>::Tvmult (VectorType       &dst,
-                                     const VectorType &src) const
+BlockMatrixBase<MatrixType>::Tvmult (Vector<number>       &dst,
+                                     const Vector<number> &src) const
 {
   Assert (1 == n_block_cols(),
          ExcDimensionMismatch(1, n_block_cols()));

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.