From 4005c18490c2007ee7ca9f1155de1ffaa37faf26 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@dune-project.org> Date: Wed, 23 Jul 2008 15:25:21 +0000 Subject: [PATCH] add cast to scalar [[Imported from SVN: r927]] --- istl/scaledidmatrix.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/istl/scaledidmatrix.hh b/istl/scaledidmatrix.hh index f938f0db2..525f0b6b4 100644 --- a/istl/scaledidmatrix.hh +++ b/istl/scaledidmatrix.hh @@ -309,6 +309,9 @@ namespace Dune { //===== conversion operator + /** \brief Cast to a scalar */ + operator K () const {return p_;} + /** \brief Sends the matrix to an output stream */ friend std::ostream& operator<< (std::ostream& s, const ScaledIdentityMatrix<K,n>& a) { -- GitLab