]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove more deprecated functions in lac
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2007 16:59:41 +0000 (16:59 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Aug 2007 16:59:41 +0000 (16:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@15011 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_matrix_base.h
deal.II/lac/include/lac/sparse_matrix.h
deal.II/lac/include/lac/sparse_matrix.templates.h
deal.II/lac/include/lac/sparse_matrix_ez.h
deal.II/lac/source/sparse_matrix_matrix.in.h

index c6af8a22898cc1dc4d974e40d03150ba895f1a9b..34f11e932c9bb8e964edb17026f33b803827a3ba 100644 (file)
@@ -585,25 +585,6 @@ class BlockMatrixBase : public Subscriptor
              const BlockMatrixType &matrix);    
   
     
-                                    /**
-                                     * @deprecated Add
-                                     * <tt>matrix</tt> scaled by
-                                     * <tt>factor</tt> to this
-                                     * matrix, i.e. the matrix
-                                     * <tt>factor*matrix</tt> is
-                                     * added to <tt>this</tt>.
-                                     *
-                                     * This function is
-                                     * deprecated. Use <tt>add</tt>
-                                     * instead, since this has the
-                                     * same interface as the other
-                                     * matrix and vector classes in
-                                     * the library.
-                                     */
-    template <class BlockMatrixType>
-    void add_scaled (const value_type       factor,
-                    const BlockMatrixType &matrix);    
-    
                                     /**
                                      * Adding Matrix-vector
                                      * multiplication. Add $M*src$ on
@@ -1714,21 +1695,6 @@ BlockMatrixBase<MatrixType>::operator /= (const value_type factor)
 
 
 
-template <class MatrixType>
-template <class BlockMatrixType>
-void
-BlockMatrixBase<MatrixType>::
-add_scaled (const value_type factor,
-           const BlockMatrixType &matrix)
-{
-  for (unsigned int r=0; r<n_block_rows(); ++r)
-    for (unsigned int c=0; c<n_block_cols(); ++c)
-      block(r,c).add (factor, matrix.block(r,c));
-}
-
-
-
-
 template <class MatrixType>
 template <class BlockVectorType>
 void
index d00c221956f44cbb02fbcbcea802b6f0f09144ab..297d84298c4929f8abbf6496a28664e0842ef585 100644 (file)
@@ -926,24 +926,6 @@ class SparseMatrix : public virtual Subscriptor
     void add (const number factor,
              const SparseMatrix<somenumber> &matrix);    
     
-                                    /**
-                                     * @deprecated Add
-                                     * <tt>matrix</tt> scaled by
-                                     * <tt>factor</tt> to this
-                                     * matrix, i.e. the matrix
-                                     * <tt>factor*matrix</tt> is
-                                     * added to <tt>this</tt>.
-                                     *
-                                     * This function is
-                                     * deprecated. Use <tt>add</tt>
-                                     * instead, since this has the
-                                     * same interface as the other
-                                     * matrix and vector classes in
-                                     * the library.
-                                     */
-    template <typename somenumber>
-    void add_scaled (const number factor,
-                    const SparseMatrix<somenumber> &matrix);
 //@}
 /**
  * @name Entry Access
index 236d13979a0b0976d0605bf550dea4f2bd057266..8ba5136940525bf704267a4cb2db1bad8e620860 100644 (file)
@@ -325,16 +325,6 @@ SparseMatrix<number>::add (const number factor,
 }
 
 
-template <typename number>
-template <typename somenumber>
-void
-SparseMatrix<number>::add_scaled (const number factor,
-                                 const SparseMatrix<somenumber> &matrix)
-{
-  add(factor, matrix);
-}
-
-
 template <typename number>
 template <class OutVector, class InVector>
 void
index 88a5d84d54f7457bc42ce538678f355fe8baa6df..5ca5b709947ddafe317f6666b39510b8b8359730 100644 (file)
@@ -520,22 +520,6 @@ class SparseMatrixEZ : public Subscriptor
     void add (const number factor,
              const MATRIX &matrix);
 
-                                    /**
-                                     * @deprecated Add @p matrix
-                                     * scaled by @p factor to this
-                                     * matrix.
-                                     *
-                                     * This function is
-                                     * deprecated. Use <tt>add</tt>
-                                     * instead, since this has the
-                                     * same interface as the other
-                                     * matrix and vector classes in
-                                     * the library.
-                                     */
-    template <class MATRIX>
-    void add_scaled (const number factor,
-                    const MATRIX &matrix);
-    
                                     /**
                                      * Return the value of the entry
                                      * (i,j).  This may be an
@@ -1465,16 +1449,6 @@ SparseMatrixEZ<number>::add (const number factor,
 }
 
 
-template<typename number>
-template <class MATRIX>
-inline
-void
-SparseMatrixEZ<number>::add_scaled (const number factor,
-                                   const MATRIX& M)
-{
-  add (factor, M);
-}
-
 
 template<typename number>
 template <class MATRIXA, class MATRIXB>
index bb0a3cdc2cd1eded9b15beecfc3028e58ddbc6c3..df8b2b21bfd29199308ac6c54c6c2629bf99da6c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -27,7 +27,4 @@ void SparseMatrix<TYPEMAT>::copy_from<TYPE2> (const FullMatrix<TYPE2> &);
 template void SparseMatrix<TYPEMAT>::add<TYPE2> (const TYPEMAT,
                                                 const SparseMatrix<TYPE2> &);
 
-template void SparseMatrix<TYPEMAT>::add_scaled<TYPE2> (const TYPEMAT,
-                                                       const SparseMatrix<TYPE2> &);
-
 DEAL_II_NAMESPACE_CLOSE

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.