]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve documentation.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Apr 2006 23:11:23 +0000 (23:11 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Apr 2006 23:11:23 +0000 (23:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@12880 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h

index 1508743b22b4055fa2e0efa978d6b1aec932c039..6c271f29df7d3592fe30c803098aeeedf8f0496d 100644 (file)
@@ -589,8 +589,23 @@ class SparseMatrix : public virtual Subscriptor
     virtual ~SparseMatrix ();
 
                                     /** 
-                                     * Pseudo operator only copying
-                                     * empty objects.
+                                     * Copy operator. Since copying
+                                     * entire sparse matrices is a
+                                     * very expensive operation, we
+                                     * disallow doing so except for
+                                     * the special case of empty
+                                     * matrices of size zero. This
+                                     * doesn't seem particularly
+                                     * useful, but is exactly what
+                                     * one needs if one wanted to
+                                     * have a
+                                     * <code>std::vector@<SparseMatrix@<double@>
+                                     * @></code>: in that case, one
+                                     * can create a vector (which
+                                     * needs the ability to copy
+                                     * objects) of empty matrices
+                                     * that are then later filled
+                                     * with something useful.
                                      */
     SparseMatrix<number>& operator = (const SparseMatrix<number> &);
 

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.