From 9a846e05097031ceba30e53782805e188b5a4999 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 30 Sep 2016 14:58:44 +0200 Subject: reorder initialization and allocation --- src/gensvm_train.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gensvm_train.c b/src/gensvm_train.c index 4c0f332..d83613d 100644 --- a/src/gensvm_train.c +++ b/src/gensvm_train.c @@ -31,12 +31,12 @@ void gensvm_train(struct GenModel *model, struct GenData *data, model->m = data->m; model->K = data->K; - // initialize the V matrix (potentially with a seed model) - gensvm_init_V(seed_model, model, data); - // allocate model gensvm_allocate_model(model); + // initialize the V matrix (potentially with a seed model) + gensvm_init_V(seed_model, model, data); + // preprocess kernel gensvm_kernel_preprocess(model, data); -- cgit v1.2.3