[Rivet-svn] r3892 - trunk/include/Rivet/Math/eigen

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Aug 6 15:43:21 BST 2012


Author: dgrell
Date: Mon Aug  6 15:43:21 2012
New Revision: 3892

Log:
Fixed precision passing in eigen code

Modified:
   trunk/include/Rivet/Math/eigen/matrixbase.h
   trunk/include/Rivet/Math/eigen/vectorbase.h

Modified: trunk/include/Rivet/Math/eigen/matrixbase.h
==============================================================================
--- trunk/include/Rivet/Math/eigen/matrixbase.h	Mon Jul 30 01:23:05 2012	(r3891)
+++ trunk/include/Rivet/Math/eigen/matrixbase.h	Mon Aug  6 15:43:21 2012	(r3892)
@@ -773,7 +773,7 @@
       */
     bool isZero( const T & precision = Util::epsilon<T>() ) const
     {
-        return isNegligible( static_cast<T>(1) );
+      return isNegligible( static_cast<T>(1), precision );
     }
 
     /**

Modified: trunk/include/Rivet/Math/eigen/vectorbase.h
==============================================================================
--- trunk/include/Rivet/Math/eigen/vectorbase.h	Mon Jul 30 01:23:05 2012	(r3891)
+++ trunk/include/Rivet/Math/eigen/vectorbase.h	Mon Aug  6 15:43:21 2012	(r3892)
@@ -607,7 +607,7 @@
       */
     bool isZero( const T & precision = Util::epsilon<T>() ) const
     {
-        return isNegligible( static_cast<T>(1) );
+      return isNegligible( static_cast<T>(1), precision );
     }
 
     /**


More information about the Rivet-svn mailing list