Mercurial > hg > audiodb
diff lshlib.cpp @ 520:0767731a6cce multiprobeLSH
Fixed boundary {-1,+1} order, array syntax in generate_multiprobe_keys(), boundary error in MultiProbe::valid()
author | mas01mc |
---|---|
date | Mon, 26 Jan 2009 13:19:09 +0000 |
parents | fdcd436d7cbd |
children | 237d5a03d317 |
line wrap: on
line diff
--- a/lshlib.cpp Mon Jan 26 05:42:15 2009 +0000 +++ b/lshlib.cpp Mon Jan 26 13:19:09 2009 +0000 @@ -343,7 +343,7 @@ // according the the boundary distances of the current query void H::generate_multiprobe_keys(Uns32T*g, Uns32T* r1, Uns32T* r2){ assert(!multiProbePtr->empty()); // Test this for now, until all is stable - Uns32T* mpg = new Uns32T(H::k); // temporary array storage + Uns32T* mpg = new Uns32T[H::k]; // temporary array storage // Copy the hash bucket identifiers Uns32T* mpgPtr = mpg;