From 8ba04d3307e04862401255e925010be64aaaa150 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 7 Apr 2017 08:35:58 -0500 Subject: [PATCH] simplify an expression --- include/deal.II/lac/eigen.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.39.5