]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
make arguments const
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2008 21:39:00 +0000 (21:39 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2008 21:39:00 +0000 (21:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@15739 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/pointer_matrix.h

index d2c27fef8e884477e17189581f8a0f24822bb77e..68182aa9ab84af8c0ae8d32134db6f7778944175 100644 (file)
@@ -554,7 +554,7 @@ template <typename number> class TridiagonalMatrix;
  */
 template <typename numberv>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(IdentityMatrix& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const IdentityMatrix& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<IdentityMatrix, Vector<numberv> >(&matrix, name);
 }
@@ -568,7 +568,7 @@ new_pointer_matrix_base(IdentityMatrix& matrix, const Vector<numberv>&, const ch
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(FullMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const FullMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<FullMatrix<numberm>, Vector<numberv> >(&matrix, name);
 }
@@ -582,7 +582,7 @@ new_pointer_matrix_base(FullMatrix<numberm>& matrix, const Vector<numberv>&, con
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(LAPACKFullMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const LAPACKFullMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<LAPACKFullMatrix<numberm>, Vector<numberv> >(&matrix, name);
 }
@@ -596,7 +596,7 @@ new_pointer_matrix_base(LAPACKFullMatrix<numberm>& matrix, const Vector<numberv>
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(SparseMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const SparseMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<SparseMatrix<numberm>, Vector<numberv> >(&matrix, name);
 }
@@ -610,7 +610,7 @@ new_pointer_matrix_base(SparseMatrix<numberm>& matrix, const Vector<numberv>&, c
  */
 template <class VECTOR, typename numberm>
 PointerMatrixBase<VECTOR>*
-new_pointer_matrix_base(BlockSparseMatrix<numberm>& matrix, const VECTOR&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const BlockSparseMatrix<numberm>& matrix, const VECTOR&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<BlockSparseMatrix<numberm>, VECTOR>(&matrix, name);
 }
@@ -624,7 +624,7 @@ new_pointer_matrix_base(BlockSparseMatrix<numberm>& matrix, const VECTOR&, const
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(SparseMatrixEZ<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const SparseMatrixEZ<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<SparseMatrixEZ<numberm>, Vector<numberv> >(&matrix, name);
 }
@@ -638,7 +638,7 @@ new_pointer_matrix_base(SparseMatrixEZ<numberm>& matrix, const Vector<numberv>&,
  */
 template <class VECTOR, typename numberm>
 PointerMatrixBase<VECTOR>*
-new_pointer_matrix_base(BlockSparseMatrixEZ<numberm>& matrix, const VECTOR&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const BlockSparseMatrixEZ<numberm>& matrix, const VECTOR&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<BlockSparseMatrixEZ<numberm>, VECTOR>(&matrix, name);
 }
@@ -652,7 +652,7 @@ new_pointer_matrix_base(BlockSparseMatrixEZ<numberm>& matrix, const VECTOR&, con
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<BlockVector<numberv> >*
-new_pointer_matrix_base(BlockMatrixArray<numberm>& matrix, const BlockVector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const BlockMatrixArray<numberm>& matrix, const BlockVector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<BlockMatrixArray<numberm>, BlockVector<numberv> >(&matrix, name);
 }
@@ -666,7 +666,7 @@ new_pointer_matrix_base(BlockMatrixArray<numberm>& matrix, const BlockVector<num
  */
 template <typename numberv, typename numberm>
 PointerMatrixBase<Vector<numberv> >*
-new_pointer_matrix_base(TridiagonalMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
+new_pointer_matrix_base(const TridiagonalMatrix<numberm>& matrix, const Vector<numberv>&, const char* name = "PointerMatrix")
 {
   return new PointerMatrix<TridiagonalMatrix<numberm>, Vector<numberv> >(&matrix, name);
 }

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.