aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_zv.h
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-10-17 13:41:46 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-10-17 13:41:46 +0200
commite2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba (patch)
tree3564a0b9ed66ccf71d16bf54a304aad320876bbf /include/gensvm_zv.h
parentupdate doxyfile (diff)
downloadgensvm-e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba.tar.gz
gensvm-e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba.zip
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
Diffstat (limited to 'include/gensvm_zv.h')
-rw-r--r--include/gensvm_zv.h32
1 files changed, 32 insertions, 0 deletions
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);