From: wolf Date: Fri, 5 May 2000 16:42:32 +0000 (+0000) Subject: Add matrix scalar product. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9accd7672411f7f1bfa919bcdad5c99efbfa89f7;p=dealii-svn.git Add matrix scalar product. git-svn-id: https://svn.dealii.org/trunk@2812 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/sparse_matrix.h b/deal.II/lac/include/lac/sparse_matrix.h index f2c55884ed..1757d3d8c1 100644 --- a/deal.II/lac/include/lac/sparse_matrix.h +++ b/deal.II/lac/include/lac/sparse_matrix.h @@ -394,6 +394,14 @@ class SparseMatrix : public Subscriptor template somenumber matrix_norm (const Vector &v) const; + /** + * Compute the matrix scalar + * product $\left(u,Mv\right)$. + */ + template + somenumber matrix_scalar_product (const Vector &u, + const Vector &v) const; + /** * Return the l1-norm of the matrix, that is * $|M|_1=max_{all columns j}\sum_{all