diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2016-12-07 12:42:49 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2016-12-07 12:42:49 +0100 |
| commit | 845631ad78415e022295373d8b0c9517ae17403e (patch) | |
| tree | 896e8e293fdce2df98b104755b5995c132dae0d6 /include | |
| parent | document undocumented elements (diff) | |
| download | gensvm-845631ad78415e022295373d8b0c9517ae17403e.tar.gz gensvm-845631ad78415e022295373d8b0c9517ae17403e.zip | |
switch some integer variables to long for cross platform size guarantees
Diffstat (limited to 'include')
| -rw-r--r-- | include/gensvm_cross_validation.h | 2 | ||||
| -rw-r--r-- | include/gensvm_gridsearch.h | 2 | ||||
| -rw-r--r-- | include/gensvm_sparse.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/gensvm_cross_validation.h b/include/gensvm_cross_validation.h index 16c7223..fd62e30 100644 --- a/include/gensvm_cross_validation.h +++ b/include/gensvm_cross_validation.h @@ -36,6 +36,6 @@ // function declarations double gensvm_cross_validation(struct GenModel *model, struct GenData **train_folds, struct GenData **test_folds, - int folds, long n_total); + long folds, long n_total); #endif diff --git a/include/gensvm_gridsearch.h b/include/gensvm_gridsearch.h index f0be067..46142fd 100644 --- a/include/gensvm_gridsearch.h +++ b/include/gensvm_gridsearch.h @@ -44,7 +44,7 @@ void gensvm_fill_queue(struct GenGrid *grid, struct GenQueue *queue, struct GenData *train_data, struct GenData *test_data); bool gensvm_kernel_changed(struct GenTask *newtask, struct GenTask *oldtask); -void gensvm_kernel_folds(int folds, struct GenModel *model, +void gensvm_kernel_folds(long folds, struct GenModel *model, struct GenData **train_folds, struct GenData **test_folds); void gensvm_gridsearch_progress(struct GenTask *task, long N, double perf, double duration, double current_max); diff --git a/include/gensvm_sparse.h b/include/gensvm_sparse.h index 4d55ae3..570e19a 100644 --- a/include/gensvm_sparse.h +++ b/include/gensvm_sparse.h @@ -62,9 +62,9 @@ struct GenSparse { double *values; ///< actual nonzero values, should be of length nnz - int *ia; + long *ia; ///< cumulative row lengths, should be of length n_row+1 - int *ja; + long *ja; ///< column indices, should be of length nnz }; |
