aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-10-17 15:40:33 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-10-17 15:40:33 +0200
commit6e3b22ed8ece70539b6966107342ab8122320a24 (patch)
tree73a91a8598ba36c2c70f9ad598cdda30129c1db2 /src
parentrefactor gensvm_pred to gensvm_predict (diff)
downloadgensvm-6e3b22ed8ece70539b6966107342ab8122320a24.tar.gz
gensvm-6e3b22ed8ece70539b6966107342ab8122320a24.zip
minor documentation fixes
Diffstat (limited to 'src')
-rw-r--r--src/gensvm_predict.c2
-rw-r--r--src/gensvm_sparse.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/gensvm_predict.c b/src/gensvm_predict.c
index 1112e55..8acb626 100644
--- a/src/gensvm_predict.c
+++ b/src/gensvm_predict.c
@@ -1,5 +1,5 @@
/**
- * @file gensvm_pred.c
+ * @file gensvm_predict.c
* @author Gertjan van den Burg
* @date August 9, 2013
* @brief Main functions for predicting class labels..
diff --git a/src/gensvm_sparse.c b/src/gensvm_sparse.c
index ebc2c9d..24f18ed 100644
--- a/src/gensvm_sparse.c
+++ b/src/gensvm_sparse.c
@@ -54,7 +54,7 @@ void gensvm_free_sparse(struct GenSparse *sp)
* @brief Count the number of nonzeros in a matrix
*
* @details
- * This is a utility function to count the number of nonzeros in a dense
+ * This is a utility function to count the number of nonzeros in a dense
* matrix. This is simply done by comparing with 0.0.
*
* @param[in] A a dense matrix (RowMajor order)
@@ -78,9 +78,9 @@ long gensvm_count_nnz(double *A, long rows, long cols)
* @details
* It is only worth to convert to a sparse matrix if the amount of sparsity is
* sufficient. For this to be the case, the number of nonzeros must be
- * smaller than @f$(n(m - 1) - 1)/2@f$. This is tested here. If the amount of
- * nonzero entries is small enough, the function returns the number of
- * nonzeros. If it is too big, it returns -1.
+ * smaller than @f$(n_{row}(n_{col} - 1) - 1)/2@f$. This is tested here. If
+ * the amount of nonzero entries is small enough, the function returns the
+ * number of nonzeros. If it is too big, it returns -1.
*
* @param[in] A matrix in dense format (RowMajor order)
* @param[in] rows number of rows of A
@@ -178,4 +178,3 @@ double *gensvm_sparse_to_dense(struct GenSparse *A)
return B;
}
-