Skip to content

Commit f3de013

Browse files
committed
remove (inexplicably) failing code from sorting article
1 parent 838a405 commit f3de013

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/2013-01-31-sorting.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ NumericVector stl_nth_element(NumericVector x, int n) {
106106
*/
107107

108108
/*** R
109-
# check that the nth sorted elements of the vectors are equal
110-
stopifnot(all.equal(stl_nth_element(x, 43)[43], sort(x, partial=43)[43]))
111-
112109
# benchmark nth_element and sort
113110
benchmark(stl_nth_element(z, n),
114111
sort(z, partial=n),

0 commit comments

Comments
 (0)