From 019ff216d160ed9eab16f6a6beb3915ea8f19fe8 Mon Sep 17 00:00:00 2001 From: Jonathan Robey Date: Wed, 7 Aug 2019 14:46:04 -0600 Subject: [PATCH] Add real_value and use as return type --- include/deal.II/lac/block_matrix_base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5