diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-17 15:40:33 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-17 15:40:33 +0200 |
| commit | 6e3b22ed8ece70539b6966107342ab8122320a24 (patch) | |
| tree | 73a91a8598ba36c2c70f9ad598cdda30129c1db2 /include | |
| parent | refactor gensvm_pred to gensvm_predict (diff) | |
| download | gensvm-6e3b22ed8ece70539b6966107342ab8122320a24.tar.gz gensvm-6e3b22ed8ece70539b6966107342ab8122320a24.zip | |
minor documentation fixes
Diffstat (limited to 'include')
| -rw-r--r-- | include/gensvm_globals.h | 6 | ||||
| -rw-r--r-- | include/gensvm_predict.h | 4 | ||||
| -rw-r--r-- | include/gensvm_sparse.h | 8 |
3 files changed, 4 insertions, 14 deletions
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 @@ * <a href="https://en.wikipedia.org/wiki/Sparse_matrix">Wikipedia</a> 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 }; |
