]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Frobenius norm
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2005 21:58:39 +0000 (21:58 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2005 21:58:39 +0000 (21:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@10205 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index 5d7d8296f3a11ee5e653b1afad49b68d1865c13c..d40337acf31fa18768d9dae214c0d5b79a750351 100644 (file)
@@ -1,4 +1,4 @@
-//----------------------------  full_matrix.templates.h  ---------------------------
+//---------------------------------------------------------------------------
 //    $Id$
 //    Version: $Name$
 //
@@ -9,7 +9,7 @@
 //    to the file deal.II/doc/license.html for the  text  and
 //    further information on this license.
 //
-//----------------------------  full_matrix.templates.h  ---------------------------
+//---------------------------------------------------------------------------
 #ifndef __deal2__full_matrix_templates_h
 #define __deal2__full_matrix_templates_h
 
@@ -1236,7 +1236,7 @@ FullMatrix<number>::determinant () const
 
 template <typename number>
 number
-FullMatrix<number>::norm2 () const
+FullMatrix<number>::frobenius_norm () const
 {
   Assert (!this->empty(), ExcEmptyMatrix());
   
@@ -1248,6 +1248,15 @@ FullMatrix<number>::norm2 () const
 
 
 
+template <typename number>
+number
+FullMatrix<number>::norm2 () const
+{
+  return frobenius_norm();
+}
+
+
+
 template <typename number>
 number
 FullMatrix<number>::relative_symmetry_norm2 () const

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.