]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide template default arguments 880/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 26 Apr 2015 12:51:20 +0000 (14:51 +0200)
committerMatthias Maier <tamiko@43-1.org>
Sun, 26 Apr 2015 19:20:34 +0000 (21:20 +0200)
doc/doxygen/headers/laoperators.h
include/deal.II/lac/linear_operator.h

index 049035160fac336f1f024773fa163fbbb28b2569..161682635706c5a89b35e3fb53a6823657e15846 100644 (file)
@@ -67,7 +67,7 @@
  * addition and subtraction, scalar multiplication and composition (of
  * compatible linear operators) are implemented:
  * @code
- * dealii::LinearOperator op_a, op_b;
+ * dealii::LinearOperator<> op_a, op_b;
  * double k;
  *
  * // vector space addition, subtraction and scalar multiplication
index bc7bf3b04a4eb8602782b19c7090c38d63efc20a..c238222d4239df63e9eec735cb6b5e4a922b7d92 100644 (file)
@@ -32,7 +32,8 @@ DEAL_II_NAMESPACE_OPEN
 template <typename Number> class Vector;
 template <typename Number> class BlockVector;
 
-template <typename Range, typename Domain> class LinearOperator;
+template <typename Range = Vector<double>, typename Domain = Range>
+class LinearOperator;
 
 template <typename Range = Vector<double>,
           typename Domain = Range,

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.