]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add matrix scalar product.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 5 May 2000 16:42:32 +0000 (16:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 5 May 2000 16:42:32 +0000 (16:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@2812 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h

index f2c55884ed14d9262e64479dde1bb09f879097a3..1757d3d8c1db61e3a915f1cbee946532c98ce8bf 100644 (file)
@@ -394,6 +394,14 @@ class SparseMatrix : public Subscriptor
     template <typename somenumber>
     somenumber matrix_norm (const Vector<somenumber> &v) const;
 
+                                    /**
+                                     * Compute the matrix scalar
+                                     * product $\left(u,Mv\right)$.
+                                     */
+    template <typename somenumber>
+    somenumber matrix_scalar_product (const Vector<somenumber> &u,
+                                     const Vector<somenumber> &v) const;
+    
                                     /**
                                      * Return the l1-norm of the matrix, that is
                                      * $|M|_1=max_{all columns j}\sum_{all 

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.