[arrayfire] 274/408: Changed SIFT unit test to use std::stable_sort()
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit b5636151fa893aec0e5d4a9a42770e013cc04f7f
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date: Mon Aug 17 15:43:46 2015 -0400
Changed SIFT unit test to use std::stable_sort()
---
test/sift.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/sift.cpp b/test/sift.cpp
index 6ad4c4d..bc84307 100644
--- a/test/sift.cpp
+++ b/test/sift.cpp
@@ -215,8 +215,8 @@ void siftTest(string pTestFile)
vector<feat_desc_t> gold_feat_desc;
array_to_feat_desc(gold_feat_desc, &goldFeat[0].front(), &goldFeat[1].front(), &goldFeat[2].front(), &goldFeat[3].front(), &goldFeat[4].front(), goldDesc, goldFeat[0].size());
- std::sort(out_feat_desc.begin(), out_feat_desc.end(), feat_cmp);
- std::sort(gold_feat_desc.begin(), gold_feat_desc.end(), feat_cmp);
+ std::stable_sort(out_feat_desc.begin(), out_feat_desc.end(), feat_cmp);
+ std::stable_sort(gold_feat_desc.begin(), gold_feat_desc.end(), feat_cmp);
vector<feat_t> out_feat;
vector<desc_t> v_out_desc;
@@ -305,8 +305,8 @@ TEST(SIFT, CPP)
vector<feat_desc_t> gold_feat_desc;
array_to_feat_desc(gold_feat_desc, &goldFeat[0].front(), &goldFeat[1].front(), &goldFeat[2].front(), &goldFeat[3].front(), &goldFeat[4].front(), goldDesc, goldFeat[0].size());
- std::sort(out_feat_desc.begin(), out_feat_desc.end(), feat_cmp);
- std::sort(gold_feat_desc.begin(), gold_feat_desc.end(), feat_cmp);
+ std::stable_sort(out_feat_desc.begin(), out_feat_desc.end(), feat_cmp);
+ std::stable_sort(gold_feat_desc.begin(), gold_feat_desc.end(), feat_cmp);
vector<feat_t> out_feat;
vector<desc_t> v_out_desc;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list