File: features_double.h

package info (click to toggle)
libocas 0.97%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,760 kB
  • sloc: ansic: 7,956; makefile: 103; sh: 7
file content (37 lines) | stat: -rw-r--r-- 1,461 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*-----------------------------------------------------------------------
 * features_double.h: Helper functions for the OCAS solver working with 
 *                   features in double precision.
 *-------------------------------------------------------------------- */

#ifndef _features_double_h
#define _features_double_h

#include <stdint.h>

/* dense double features */
extern int full_compute_output( double *output, void* user_data );
extern int full_add_new_cut( double *new_col_H, 
                       uint32_t *new_cut, 
                       uint32_t cut_length, 
                       uint32_t nSel,
                       void* user_data);

/* sparse double features */
extern int sparse_add_new_cut( double *new_col_H, 
                         uint32_t *new_cut, 
                         uint32_t cut_length, 
                         uint32_t nSel, 
                         void* user_data );
extern int sparse_compute_output( double *output, void* user_data );


/* dense double features for multi-class solver */
extern int msvm_full_add_new_cut( double *new_col_H, uint32_t *new_cut, uint32_t nSel, void* user_data);
extern int msvm_full_compute_output( double *output, void* user_data );

/* sparse double features for multi-class solver */
extern int msvm_sparse_add_new_cut( double *new_col_H, uint32_t *new_cut, uint32_t nSel, void* user_data );
extern int msvm_sparse_compute_output( double *output, void* user_data );


#endif