From e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 17 Oct 2016 13:41:46 +0200 Subject: Update predictions to work with sparse matrices This is done by pulling the Z*V routines from the gensvm_optimize file to a seperate file, since they are shared by prediction and get_loss --- include/gensvm_zv.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/gensvm_zv.h (limited to 'include/gensvm_zv.h') diff --git a/include/gensvm_zv.h b/include/gensvm_zv.h new file mode 100644 index 0000000..1134640 --- /dev/null +++ b/include/gensvm_zv.h @@ -0,0 +1,32 @@ +/** + * @file gensvm_zv.h + * @author Gertjan van den Burg + * @date 2016-10-17 + * @brief Header file for gensvm_zv.c + + * Copyright (C) + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + */ + +#include "gensvm_base.h" + +void gensvm_calculate_ZV(struct GenModel *model, struct GenData *data, + double *ZV); +void gensvm_calculate_ZV_sparse(struct GenModel *model, + struct GenData *data, double *ZV); +void gensvm_calculate_ZV_dense(struct GenModel *model, + struct GenData *data, double *ZV); -- cgit v1.2.3