From e2775869588e1df2d19265eac5c167651168a414 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 28 Apr 2010 18:51:38 -0400 Subject: Complete rework of global math functions and NumTraits. * Now completely generic so all standard integer types (like char...) are supported. ** add unit test for that (integer_types). * NumTraits does no longer inherit numeric_limits * All math functions are now templated * Better guard (static asserts) against using certain math functions on integer types. --- Eigen/src/Core/IO.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/IO.h') diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index c98742246..853506288 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -153,13 +153,13 @@ std::ostream & ei_print_matrix(std::ostream & s, const Derived& _m, const IOForm } else if(fmt.precision == FullPrecision) { - if (NumTraits::HasFloatingPoint) + if (NumTraits::IsInteger) { - explicit_precision = ei_significant_decimals_impl::run(); + explicit_precision = 0; } else { - explicit_precision = 0; + explicit_precision = ei_significant_decimals_impl::run(); } } else -- cgit v1.2.3