[PPL-devel] [GIT] ppl/ppl(sparse_matrices): PIP_Tree.cc: fix optimized version of add_mul_assign_row().

Marco Poletti poletti.marco at gmail.com
Mon Mar 22 21:46:48 CET 2010


Module: ppl/ppl
Branch: sparse_matrices
Commit: cc3261c876763af7a2ff7df334e35b1a978b889f
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=cc3261c876763af7a2ff7df334e35b1a978b889f

Author: Marco Poletti <poletti.marco at gmail.com>
Date:   Mon Mar 22 21:22:36 2010 +0100

PIP_Tree.cc: fix optimized version of add_mul_assign_row().

---

 src/PIP_Tree.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/PIP_Tree.cc b/src/PIP_Tree.cc
index f55a4e7..cbe6925 100644
--- a/src/PIP_Tree.cc
+++ b/src/PIP_Tree.cc
@@ -150,7 +150,7 @@ add_mul_assign_row(PIP_Tree_Node::matrix_row_reference_type x,
     ++i;
   } else
       if (i == i_end
-          || (j != j_end && (*i).first < (*j).first)) {
+          || (j != j_end && (*i).first > (*j).first)) {
         itr = row.find_create(*j);
         (*itr).second *= c;
         ++j;




More information about the PPL-devel mailing list