// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* Matrix-vector-multiplication on
* a certain level.
*/
- virtual void vmult(unsigned int level, VECTOR& dst,
- const VECTOR& src) const = 0;
+ virtual void vmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const = 0;
/**
* Adding matrix-vector-multiplication on
* a certain level.
*/
- virtual void vmult_add(unsigned int level, VECTOR& dst,
- const VECTOR& src) const = 0;
+ virtual void vmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const = 0;
/**
* Transpose
* matrix-vector-multiplication on
* a certain level.
*/
- virtual void Tvmult(unsigned int level, VECTOR& dst,
- const VECTOR& src) const = 0;
+ virtual void Tvmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const = 0;
/**
* Adding transpose
* matrix-vector-multiplication on
* a certain level.
*/
- virtual void Tvmult_add(unsigned int level, VECTOR& dst,
- const VECTOR& src) const = 0;
+ virtual void Tvmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const = 0;
};
// $Id$
// Version: $Name$
//
-// Copyright (C) 2003, 2004, 2005 by the deal.II authors
+// Copyright (C) 2003, 2004, 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* Matrix-vector-multiplication on
* a certain level.
*/
- virtual void vmult(unsigned int level, VECTOR& dst,
- const VECTOR& src) const;
+ virtual void vmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const;
- /**
- * Adding matrix-vector-multiplication on
- * a certain level.
- */
- virtual void vmult_add(unsigned int level, VECTOR& dst,
- const VECTOR& src) const;
-
- /**
- * Transpose
- * matrix-vector-multiplication on
- * a certain level.
- */
- virtual void Tvmult(unsigned int level, VECTOR& dst,
- const VECTOR& src) const;
-
- /**
- * Adding transpose
- * matrix-vector-multiplication on
- * a certain level.
- */
- virtual void Tvmult_add(unsigned int level, VECTOR& dst,
- const VECTOR& src) const;
+ /**
+ * Adding matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void vmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const;
+
+ /**
+ * Transpose
+ * matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void Tvmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const;
+
+ /**
+ * Adding transpose
+ * matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void Tvmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const;
/**
* Memory used by this object.
unsigned int memory_consumption () const;
-private:
- /**
- * Pointer to the matrix objects on each level.
- */
- SmartPointer<MGLevelObject<MATRIX> > matrix;
+ private:
+ /**
+ * Pointer to the matrix objects on each level.
+ */
+ SmartPointer<MGLevelObject<MATRIX> > matrix;
};
* Matrix-vector-multiplication on
* a certain level.
*/
- virtual void vmult(unsigned int level, Vector<number>& dst,
- const Vector<number>& src) const;
+ virtual void vmult (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const;
- /**
- * Adding matrix-vector-multiplication on
- * a certain level.
- */
- virtual void vmult_add(unsigned int level, Vector<number>& dst,
+ /**
+ * Adding matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void vmult_add (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const;
+
+ /**
+ * Transpose
+ * matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void Tvmult (const unsigned int level,
+ Vector<number>& dst,
const Vector<number>& src) const;
- /**
- * Transpose
- * matrix-vector-multiplication on
- * a certain level.
- */
- virtual void Tvmult(unsigned int level, Vector<number>& dst,
- const Vector<number>& src) const;
-
- /**
- * Adding transpose
- * matrix-vector-multiplication on
- * a certain level.
- */
- virtual void Tvmult_add(unsigned int level, Vector<number>& dst,
- const Vector<number>& src) const;
+ /**
+ * Adding transpose
+ * matrix-vector-multiplication on
+ * a certain level.
+ */
+ virtual void Tvmult_add (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const;
private:
- /**
- * Pointer to the matrix objects on each level.
- */
- SmartPointer<MGLevelObject<MATRIX> > matrix;
+ /**
+ * Pointer to the matrix objects on each level.
+ */
+ SmartPointer<MGLevelObject<MATRIX> > matrix;
/**
* Row coordinate of selected block.
*/
template <class MATRIX, class VECTOR>
void
-MGMatrix<MATRIX, VECTOR>::vmult (unsigned int level,
- VECTOR& dst,
- const VECTOR& src) const
+MGMatrix<MATRIX, VECTOR>::vmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, class VECTOR>
void
-MGMatrix<MATRIX, VECTOR>::vmult_add (unsigned int level,
- VECTOR& dst,
- const VECTOR& src) const
+MGMatrix<MATRIX, VECTOR>::vmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, class VECTOR>
void
-MGMatrix<MATRIX, VECTOR>::Tvmult (unsigned int level,
- VECTOR& dst,
- const VECTOR& src) const
+MGMatrix<MATRIX, VECTOR>::Tvmult (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, class VECTOR>
void
-MGMatrix<MATRIX, VECTOR>::Tvmult_add (unsigned int level,
- VECTOR& dst,
- const VECTOR& src) const
+MGMatrix<MATRIX, VECTOR>::Tvmult_add (const unsigned int level,
+ VECTOR& dst,
+ const VECTOR& src) const
{
Assert(matrix != 0, ExcNotInitialized());
MGMatrixSelect (const unsigned int row,
const unsigned int col,
MGLevelObject<MATRIX>* p)
- :
- matrix (p, typeid(*this).name()),
- row(row),
- col(col)
+ :
+ matrix (p, typeid(*this).name()),
+ row(row),
+ col(col)
{}
template <class MATRIX, typename number>
void
MGMatrixSelect<MATRIX, number>::
-vmult (unsigned int level,
- Vector<number>& dst,
- const Vector<number>& src) const
+vmult (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, typename number>
void
MGMatrixSelect<MATRIX, number>::
-vmult_add (unsigned int level,
- Vector<number>& dst,
- const Vector<number>& src) const
+vmult_add (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, typename number>
void
MGMatrixSelect<MATRIX, number>::
-Tvmult (unsigned int level,
- Vector<number>& dst,
- const Vector<number>& src) const
+Tvmult (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const
{
Assert(matrix != 0, ExcNotInitialized());
template <class MATRIX, typename number>
void
MGMatrixSelect<MATRIX, number>::
-Tvmult_add (unsigned int level,
- Vector<number>& dst,
- const Vector<number>& src) const
+Tvmult_add (const unsigned int level,
+ Vector<number>& dst,
+ const Vector<number>& src) const
{
Assert(matrix != 0, ExcNotInitialized());