From: Wolfgang Bangerth Date: Fri, 5 May 2000 16:42:32 +0000 (+0000) Subject: Add matrix scalar product. X-Git-Tag: v8.0.0~20591 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a75682f73b55b908ab92b08819d374eeffd80ba;p=dealii.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