diff options
author | John Langford <jl@humpty.(none)> | 2011-04-25 22:08:39 +0400 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2011-04-25 22:08:39 +0400 |
commit | 2e3a0f4b363c1e4af9dfbbbb1d0c7904617a4f2d (patch) | |
tree | a5baf9d5591966fcf9230c0fa51cc2b25b134f5f /v_array.h | |
parent | 87f0c2a8902d0bdbb79f1415510dc8824d561111 (diff) |
audit features now sorted by size of effect on dot product
Diffstat (limited to 'v_array.h')
-rw-r--r-- | v_array.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |