]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change assertions to the constraints that were in the old library from
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Mar 1999 18:07:52 +0000 (18:07 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Mar 1999 18:07:52 +0000 (18:07 +0000)
which this code was taken.

git-svn-id: https://svn.dealii.org/trunk@1045 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 2a153096f5ed3ff55e4489e8cad41f422cb704fd..35e5f5e3cc172ba35d9ad8e075c9ce23dba2517c 100644 (file)
@@ -435,9 +435,9 @@ template <typename number>
 template <typename number2>
 void FullMatrix<number>::backward (Vector<number2>& dst, const Vector<number2>& src) const
 {
-  Assert(n() == m(), ExcNotQuadratic());
+  Assert(n() <= m(), ExcNotQuadratic());
   Assert(dst.size() == n(), ExcDimensionMismatch(dst.size(), n()));
-  Assert(src.size() == n(), ExcDimensionMismatch(src.size(), n()));
+  Assert(src.size() == m(), ExcDimensionMismatch(src.size(), n()));
 
   unsigned int j;
   unsigned int nu = (m()<n() ? m() : n());
@@ -1400,7 +1400,7 @@ FullMatrix<number>::householder(Vector<number2>& src)
 {
   // m > n, src.n() = m
   Assert (dim_range <= dim_image, ExcDimensionMismatch(dim_range, dim_image));
-  Assert (src.size() == dim_range, ExcDimensionMismatch(src.size(), dim_range));
+  Assert (src.size() == dim_image, ExcDimensionMismatch(src.size(), dim_image));
 
   for (unsigned int j=0 ; j<n() ; ++j)
   {

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.