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);
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()));
}
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