]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make two functions in dSMatrix const
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Mar 1998 13:49:59 +0000 (13:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Mar 1998 13:49:59 +0000 (13:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@70 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dsmatrix.h
deal.II/lac/source/dsmatrix.cc

index 763ceac0aa590aa631400a56332eed3221eb7a7d..303c41cd5c6bbd2d00d6873e41c78394ed958982 100644 (file)
@@ -155,9 +155,9 @@ class dSMatrix
     void add(int i,int j,double value) { val[cols->operator()(i,j)]+= value; }
   
                                     //
-    void vmult (dVector& dst,const dVector& src);
+    void vmult (dVector& dst,const dVector& src) const;
                                     //
-    void Tvmult(dVector& dst,const dVector& src);
+    void Tvmult(dVector& dst,const dVector& src) const;
   
                                     //
     double residual (dVector& dst,const dVector& x,const dVector& b);
index 1124ea772e1120d0a240b816324ef07b179e4a70..7a69579c1814b906de838b2a977bad480ef14a72 100644 (file)
@@ -325,7 +325,7 @@ dSMatrix::reinit (dSMatrixStruct &sparsity) {
 
 
 void
-dSMatrix::vmult(dVector& dst,const dVector& src)
+dSMatrix::vmult(dVector& dst,const dVector& src) const
 {
   Assert (cols != 0, ExcMatrixNotInitialized());
   Assert(m() == dst.n(), ExcDimensionsDontMatch(m(),dst.n()));
@@ -344,7 +344,7 @@ dSMatrix::vmult(dVector& dst,const dVector& src)
 }
 
 void
-dSMatrix::Tvmult(dVector& dst,const dVector& src) 
+dSMatrix::Tvmult(dVector& dst,const dVector& src) const
 {
   Assert (cols != 0, ExcMatrixNotInitialized());
   Assert(n() == dst.n(), ExcDimensionsDontMatch(n(),dst.n()));

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.