]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Un-deprecated a function and explain alternatives when appropriate.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 30 Dec 2012 02:09:20 +0000 (02:09 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 30 Dec 2012 02:09:20 +0000 (02:09 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_deprecated@27871 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/sparsity_pattern.h

index 633c11c8e8939c01a44f461b617371b64f32a1d5..411b81b6e02324abc064397be03b22b88be3e130 100644 (file)
@@ -790,10 +790,16 @@ public:
    * complexity of this function is <i>log(m)</i> if the sparsity pattern is
    * compressed.
    *
-   * @deprecated Use SparseMatrix::const_iterator
+   * @note This function is not cheap since it has to search through all
+   * of the elements of the given row <tt>i</tt> to find whether index
+   * <tt>j</tt> exists. Thus, it is more expensive than necessary in cases
+   * where you want to loop over all of the nonzero elements of this
+   * sparsity pattern (or of a sparse matrix associated with it) or of a
+   * single row. In such cases, it is more efficient to use iterators over
+   * the elements of the sparsity pattern or of the sparse matrix.
    */
   unsigned int operator() (const unsigned int i,
-                           const unsigned int j) const DEAL_II_DEPRECATED;
+                           const unsigned int j) const;
 
   /**
    * This is the inverse operation to operator()(): given a global index, find

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.