From: Wolfgang Bangerth Date: Mon, 16 Mar 1998 13:49:59 +0000 (+0000) Subject: Make two functions in dSMatrix const X-Git-Tag: v8.0.0~23181 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4931422b1c7ec75e45464d4f1e1a17c3274bfc63;p=dealii.git Make two functions in dSMatrix const git-svn-id: https://svn.dealii.org/trunk@70 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/dsmatrix.h b/deal.II/lac/include/lac/dsmatrix.h index 763ceac0aa..303c41cd5c 100644 --- a/deal.II/lac/include/lac/dsmatrix.h +++ b/deal.II/lac/include/lac/dsmatrix.h @@ -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); diff --git a/deal.II/lac/source/dsmatrix.cc b/deal.II/lac/source/dsmatrix.cc index 1124ea772e..7a69579c18 100644 --- a/deal.II/lac/source/dsmatrix.cc +++ b/deal.II/lac/source/dsmatrix.cc @@ -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()));