From: Matthias Maier Date: Fri, 7 Apr 2017 13:35:58 +0000 (-0500) Subject: simplify an expression X-Git-Tag: v9.0.0-rc1~1713^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ba04d3307e04862401255e925010be64aaaa150;p=dealii.git simplify an expression --- diff --git a/include/deal.II/lac/eigen.h b/include/deal.II/lac/eigen.h index b0e1f3d3b4..46612c6fea 100644 --- a/include/deal.II/lac/eigen.h +++ b/include/deal.II/lac/eigen.h @@ -385,9 +385,7 @@ EigenInverse::solve (double &value, --i; // Compute unshifted eigenvalue - value = (entry * x (i) < 0.) ? -length : length; - value = 1./value; - value -= current_shift; + value = (entry * x(i) < 0. ? -1. : 1.) / length - current_shift; if (iter==goal) {