Boost logo

Boost-Commit :

From: guwi17_at_[hidden]
Date: 2007-09-12 17:44:37


Author: guwi17
Date: 2007-09-12 17:44:37 EDT (Wed, 12 Sep 2007)
New Revision: 39227
URL: http://svn.boost.org/trac/boost/changeset/39227

Log:
lu.hpp: introduced temporary to avoid strange compiler problem.

Text files modified:
   trunk/boost/numeric/ublas/lu.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/numeric/ublas/lu.hpp
==============================================================================
--- trunk/boost/numeric/ublas/lu.hpp (original)
+++ trunk/boost/numeric/ublas/lu.hpp 2007-09-12 17:44:37 EDT (Wed, 12 Sep 2007)
@@ -101,7 +101,8 @@
             matrix_column<M> mci (column (m, i));
             matrix_row<M> mri (row (m, i));
             if (m (i, i) != value_type/*zero*/()) {
- project (mci, range (i + 1, size1)) *= value_type (1) / m (i, i);
+ value_type m_inv = value_type (1) / m (i, i);
+ project (mci, range (i + 1, size1)) *= m_inv;
             } else if (singular == 0) {
                 singular = i + 1;
             }
@@ -144,7 +145,8 @@
                 } else {
                     BOOST_UBLAS_CHECK (pm (i) == i_norm_inf, external_logic ());
                 }
- project (mci, range (i + 1, size1)) *= value_type (1) / m (i, i);
+ value_type m_inv = value_type (1) / m (i, i);
+ project (mci, range (i + 1, size1)) *= m_inv;
             } else if (singular == 0) {
                 singular = i + 1;
             }


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