1 /*-----------------------------------------------------------------------
2  * features_double.h: Helper functions for the OCAS solver working with
3  *                   features in double precision.
4  *-------------------------------------------------------------------- */
5 
6 #ifndef _features_double_h
7 #define _features_double_h
8 
9 #include <stdint.h>
10 
11 /* dense double features */
12 extern int full_compute_output( double *output, void* user_data );
13 extern int full_add_new_cut( double *new_col_H,
14                        uint32_t *new_cut,
15                        uint32_t cut_length,
16                        uint32_t nSel,
17                        void* user_data);
18 
19 /* sparse double features */
20 extern int sparse_add_new_cut( double *new_col_H,
21                          uint32_t *new_cut,
22                          uint32_t cut_length,
23                          uint32_t nSel,
24                          void* user_data );
25 extern int sparse_compute_output( double *output, void* user_data );
26 
27 
28 /* dense double features for multi-class solver */
29 extern int msvm_full_add_new_cut( double *new_col_H, uint32_t *new_cut, uint32_t nSel, void* user_data);
30 extern int msvm_full_compute_output( double *output, void* user_data );
31 
32 /* sparse double features for multi-class solver */
33 extern int msvm_sparse_add_new_cut( double *new_col_H, uint32_t *new_cut, uint32_t nSel, void* user_data );
34 extern int msvm_sparse_compute_output( double *output, void* user_data );
35 
36 
37 #endif
38