Boost logo

Boost-Commit :

From: thomas.klimpel_at_[hidden]
Date: 2008-05-22 04:53:09


Author: klimpel
Date: 2008-05-22 04:53:08 EDT (Thu, 22 May 2008)
New Revision: 45640
URL: http://svn.boost.org/trac/boost/changeset/45640

Log:
Relaxed accuracy requirements of some tests slightly,
to make them pass with msvc 9.0.

Text files modified:
   sandbox/libs/numeric/bindings/lapack/test/ublas_hbev.cpp | 3 ++-
   sandbox/libs/numeric/bindings/lapack/test/ublas_heev.cpp | 3 ++-
   sandbox/libs/numeric/bindings/lapack/test/ublas_syev.cpp | 3 ++-
   3 files changed, 6 insertions(+), 3 deletions(-)

Modified: sandbox/libs/numeric/bindings/lapack/test/ublas_hbev.cpp
==============================================================================
--- sandbox/libs/numeric/bindings/lapack/test/ublas_hbev.cpp (original)
+++ sandbox/libs/numeric/bindings/lapack/test/ublas_hbev.cpp 2008-05-22 04:53:08 EDT (Thu, 22 May 2008)
@@ -65,6 +65,7 @@
 int check_residual(H const& h, E const& e, Z const& z) {
    typedef typename H::value_type value_type ;
    typedef typename E::value_type real_type ;
+ real_type safety_factor(1.5);
 
    // Check eigen decomposition
    int n = h.size1();
@@ -78,7 +79,7 @@
       error .minus_assign( outer_prod( column(z, i), e(i) * conj( column(z, i) ) ) ) ;
    }
    return (norm_frobenius( error )
- >= n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
+ >= safety_factor*n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
 } // check_residual()
 
 

Modified: sandbox/libs/numeric/bindings/lapack/test/ublas_heev.cpp
==============================================================================
--- sandbox/libs/numeric/bindings/lapack/test/ublas_heev.cpp (original)
+++ sandbox/libs/numeric/bindings/lapack/test/ublas_heev.cpp 2008-05-22 04:53:08 EDT (Thu, 22 May 2008)
@@ -47,6 +47,7 @@
 int check_residual(H const& h, E const& e, Z const& z) {
    typedef typename H::value_type value_type ;
    typedef typename E::value_type real_type ;
+ real_type safety_factor(1.5);
 
    // Check eigen decomposition
    int n = h.size1();
@@ -60,7 +61,7 @@
       error .minus_assign( outer_prod( column(z, i), e(i) * conj( column(z, i) ) ) ) ;
    }
    return (norm_frobenius( error )
- >= n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
+ >= safety_factor*n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
 } // check_residual()
 
 

Modified: sandbox/libs/numeric/bindings/lapack/test/ublas_syev.cpp
==============================================================================
--- sandbox/libs/numeric/bindings/lapack/test/ublas_syev.cpp (original)
+++ sandbox/libs/numeric/bindings/lapack/test/ublas_syev.cpp 2008-05-22 04:53:08 EDT (Thu, 22 May 2008)
@@ -47,6 +47,7 @@
 int check_residual(H const& h, E const& e, Z const& z) {
    typedef typename H::value_type value_type ;
    typedef typename E::value_type real_type ;
+ real_type safety_factor(1.5);
 
    // Check eigen decomposition
    int n = h.size1();
@@ -60,7 +61,7 @@
       error .minus_assign( outer_prod( column(z, i), e(i) * conj( column(z, i) ) ) ) ;
    }
    return (norm_frobenius( error )
- >= n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
+ >= safety_factor*n* norm_2( e ) * std::numeric_limits< real_type >::epsilon() ) ;
 } // check_residual()
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk