[PPL-devel] [GIT] ppl/ppl(sparse_matrices): Sparse_Row_Reference: use unordered iterators in for_each_nonzero() methods.
Marco Poletti
poletti.marco at gmail.com
Wed Apr 14 16:35:04 CEST 2010
Module: ppl/ppl
Branch: sparse_matrices
Commit: 83e901a31d523a00da664918df7b49c44c9490fc
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=83e901a31d523a00da664918df7b49c44c9490fc
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Wed Apr 14 16:35:15 2010 +0200
Sparse_Row_Reference: use unordered iterators in for_each_nonzero() methods.
---
src/Sparse_Row.inlines.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Sparse_Row.inlines.hh b/src/Sparse_Row.inlines.hh
index 8cdba6d..0cfa013 100644
--- a/src/Sparse_Row.inlines.hh
+++ b/src/Sparse_Row.inlines.hh
@@ -719,14 +719,14 @@ template <typename Func>
inline void
Sparse_Row_Reference
::for_each_nonzero(const Func& func, const dimension_type /* n */) {
- std::for_each(begin(), end(), apply_to_data(func));
+ std::for_each(unordered_begin(), unordered_end(), apply_to_data(func));
}
template <typename Func>
inline void
Sparse_Row_Reference
::for_each_nonzero(const Func& func, const dimension_type /* n */) const {
- std::for_each(begin(), end(), apply_to_data(func));
+ std::for_each(unordered_begin(), unordered_end(), apply_to_data(func));
}
template <typename Func>
More information about the PPL-devel
mailing list