From 044dc5a93c33d7aa4c9c98a626890c16446a56fc Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 16 May 2016 18:47:09 +0200 Subject: major refactor of the code --- include/gensvm_init.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'include/gensvm_init.h') diff --git a/include/gensvm_init.h b/include/gensvm_init.h index 980366b..3f4a1cb 100644 --- a/include/gensvm_init.h +++ b/include/gensvm_init.h @@ -1,28 +1,21 @@ /** * @file gensvm_init.h * @author Gertjan van den Burg - * @date January, 2014 + * @date May, 2016 * @brief Header file for gensvm_init.c * * @details - * Contains function declarations for the initialization functions for - * GenModel and GenData structures. + * Contains function declarations for the initialization functions for the + * model weights and model V matrix. */ #ifndef GENSVM_INIT_H #define GENSVM_INIT_H -// include -#include "globals.h" -#include "gensvm.h" +#include "gensvm_base.h" -struct GenModel *gensvm_init_model(); - -struct GenData *gensvm_init_data(); - -void gensvm_allocate_model(struct GenModel *model); -void gensvm_reallocate_model(struct GenModel *model, long n, long m); -void gensvm_free_model(struct GenModel *model); -void gensvm_free_data(struct GenData *data); +void gensvm_init_V(struct GenModel *from_model, struct GenModel *to_model, + struct GenData *data); +void gensvm_initialize_weights(struct GenData *data, struct GenModel *model); #endif -- cgit v1.2.3