From 6e3b22ed8ece70539b6966107342ab8122320a24 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 17 Oct 2016 15:40:33 +0200 Subject: minor documentation fixes --- include/gensvm_globals.h | 6 ------ include/gensvm_predict.h | 4 ++-- include/gensvm_sparse.h | 8 ++------ 3 files changed, 4 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/gensvm_globals.h b/include/gensvm_globals.h index 74aafd2..d370c93 100644 --- a/include/gensvm_globals.h +++ b/include/gensvm_globals.h @@ -50,10 +50,4 @@ // Multiply a matrix element (RowMajor) #define matrix_mul(M, cols, i, j, val) M[(i)*(cols)+j] *= val -// Set a 3D matrix element (N2 = second dim, N3 = third dim, RowMajor) -#define matrix3_set(M, N2, N3, i, j, k, val) M[k+(N3)*(j+(N2)*(i))] = val - -// Get a 3D matrix element (N2 = second dim, N3 = third dim, RowMajor) -#define matrix3_get(M, N2, N3, i, j, k) M[k+(N3)*(j+(N2)*(i))] - #endif diff --git a/include/gensvm_predict.h b/include/gensvm_predict.h index a60ddd9..1787631 100644 --- a/include/gensvm_predict.h +++ b/include/gensvm_predict.h @@ -1,8 +1,8 @@ /** - * @file gensvm_pred.h + * @file gensvm_predict.h * @author Gertjan van den Burg * @date August, 2013 - * @brief Header file for gensvm_pred.c + * @brief Header file for gensvm_predict.c * * @details * Contains function declarations for prediction functions. diff --git a/include/gensvm_sparse.h b/include/gensvm_sparse.h index bac576a..80945b2 100644 --- a/include/gensvm_sparse.h +++ b/include/gensvm_sparse.h @@ -41,11 +41,7 @@ * Wikipedia for * more details. The total storage requirement for this format is * 2*nnz+n_row+1, so it only makes sense to use this format if the number of - * nonzeros is smaller than @f$(n(m - 1) - 1)/2@f$. - * - * @note - * We use @f$n@f$ for rows, and @f$m@f$ for columns, to conform to GenSVM - * notation. This is in exact contrast with the Wikipedia page. + * nonzeros is smaller than @f$(n_{row}(n_{col} - 1) - 1)/2@f$. * * @param nnz number of nonzero elements * @param n_row rows of the matrix @@ -65,7 +61,7 @@ struct GenSparse { double *values; ///< actual nonzero values, should be of length nnz int *ia; - ///< cumulative row lengths, should be of length n+1 + ///< cumulative row lengths, should be of length n_row+1 int *ja; ///< column indices, should be of length nnz }; -- cgit v1.2.3