From: Jonathan Robey Date: Wed, 7 Aug 2019 20:46:04 +0000 (-0600) Subject: Add real_value and use as return type X-Git-Tag: v9.2.0-rc1~1286^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8465%2Fhead;p=dealii.git Add real_value and use as return type --- diff --git a/include/deal.II/lac/block_matrix_base.h b/include/deal.II/lac/block_matrix_base.h index 86b97c4063..27151967a4 100644 --- a/include/deal.II/lac/block_matrix_base.h +++ b/include/deal.II/lac/block_matrix_base.h @@ -360,6 +360,7 @@ public: * library containers. */ using value_type = typename BlockType::value_type; + using real_type = typename numbers::NumberTraits::real_type; using pointer = value_type *; using const_pointer = const value_type *; using reference = value_type &; @@ -702,7 +703,7 @@ public: * Return the frobenius norm of the matrix, i.e. the square root of the sum * of squares of all entries in the matrix. */ - value_type + real_type frobenius_norm() const; /** @@ -2409,7 +2410,7 @@ BlockMatrixBase::matrix_norm_square(const BlockVectorType &v) const template -typename BlockMatrixBase::value_type +typename BlockMatrixBase::real_type BlockMatrixBase::frobenius_norm() const { value_type norm_sqr = 0;