Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@humpty.(none)>2011-04-25 22:08:39 +0400
committerJohn Langford <jl@humpty.(none)>2011-04-25 22:08:39 +0400
commit2e3a0f4b363c1e4af9dfbbbb1d0c7904617a4f2d (patch)
treea5baf9d5591966fcf9230c0fa51cc2b25b134f5f /v_array.h
parent87f0c2a8902d0bdbb79f1415510dc8824d561111 (diff)
audit features now sorted by size of effect on dot product
Diffstat (limited to 'v_array.h')
-rw-r--r--v_array.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/v_array.h b/v_array.h
index bb5aab12..a502ce19 100644
--- a/v_array.h
+++ b/v_array.h
@@ -30,7 +30,7 @@ template<class T> inline void push(v_array<T>& v, const T &new_ele)
if(v.end == v.end_array)
{
size_t old_length = v.end_array - v.begin;
- size_t new_length = 2 * old_length + 3;
+ size_t new_length = 2 * old_length + 3;
// size_t new_length = old_length + 1;
v.begin = (T *)realloc(v.begin,sizeof(T) * new_length);
v.end = v.begin + old_length;
@@ -39,7 +39,6 @@ template<class T> inline void push(v_array<T>& v, const T &new_ele)
*(v.end++) = new_ele;
}
-
template<class T> void push_many(v_array<T>& v, const T* begin, size_t num)
{
if(v.end+num >= v.end_array)