From 47b5cab33083557a52ffea167742db1c9877cf20 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 2 Jul 2014 13:21:20 +0200 Subject: moved realloc around, fix for kernels in trainmsvmmaj and fix memory leak consistency repeats --- include/msvmmaj_init.h | 1 + include/msvmmaj_train_dataset.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/msvmmaj_init.h b/include/msvmmaj_init.h index febfb4a..281214c 100644 --- a/include/msvmmaj_init.h +++ b/include/msvmmaj_init.h @@ -21,6 +21,7 @@ struct MajModel *msvmmaj_init_model(); struct MajData *msvmmaj_init_data(); void msvmmaj_allocate_model(struct MajModel *model); +void msvmmaj_reallocate_model(struct MajModel *model, long n, long m); void msvmmaj_free_model(struct MajModel *model); void msvmmaj_free_data(struct MajData *data); diff --git a/include/msvmmaj_train_dataset.h b/include/msvmmaj_train_dataset.h index 0889626..95e2c74 100644 --- a/include/msvmmaj_train_dataset.h +++ b/include/msvmmaj_train_dataset.h @@ -135,7 +135,5 @@ double cross_validation(struct MajModel *model, struct MajData *data, void make_model_from_task(struct Task *task, struct MajModel *model); void copy_model(struct MajModel *from, struct MajModel *to); -void msvmmaj_reallocate_model(struct MajModel *model, long n, long m); - void print_progress_string(struct Task *task, long N); #endif -- cgit v1.2.3