Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: commits

r3717 - trunk/c_src/KinoSearch/Search

 

 

kinosearch commits RSS feed   Index | Next | Previous | View Threaded


marvin at rectangular

Aug 4, 2008, 5:38 PM

Post #1 of 1 (545 views)
Permalink
r3717 - trunk/c_src/KinoSearch/Search

Author: creamyg
Date: 2008-08-04 17:38:01 -0700 (Mon, 04 Aug 2008)
New Revision: 3717

Modified:
trunk/c_src/KinoSearch/Search/Similarity.bp
trunk/c_src/KinoSearch/Search/Similarity.c
Log:
Add Sim_new().


Modified: trunk/c_src/KinoSearch/Search/Similarity.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Similarity.bp 2008-08-04 23:04:27 UTC (rev 3716)
+++ trunk/c_src/KinoSearch/Search/Similarity.bp 2008-08-05 00:38:01 UTC (rev 3717)
@@ -22,6 +22,9 @@
float *norm_decoder;
float *prox_decoder;

+ static incremented Similarity*
+ new();
+
/** Constructor. Takes no arguments.
*/
static Similarity*

Modified: trunk/c_src/KinoSearch/Search/Similarity.c
===================================================================
--- trunk/c_src/KinoSearch/Search/Similarity.c 2008-08-04 23:04:27 UTC (rev 3716)
+++ trunk/c_src/KinoSearch/Search/Similarity.c 2008-08-05 00:38:01 UTC (rev 3717)
@@ -9,6 +9,13 @@
#include "KinoSearch/Store/OutStream.h"

Similarity*
+Sim_new()
+{
+ Similarity *self = (Similarity*)CREATE(NULL, SIMILARITY);
+ return Sim_init(self);
+}
+
+Similarity*
Sim_init(Similarity *self)
{
u32_t i;


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch-commits

kinosearch commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.