-
Notifications
You must be signed in to change notification settings - Fork 57
/
header.h
72 lines (42 loc) · 1021 Bytes
/
header.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/************************************************************************
* header.h (2016) by Tong Zhang
*
* For Copyright, see LICENSE.
*
************************************************************************/
#ifndef _RGF_HEADER_H
#define _RGF_HEADER_H
#include <cassert>
#include <string>
#include <queue>
#include <vector>
#include <memory>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <thread>
#include <chrono>
#include <mutex>
#include <atomic>
#include <cmath>
#include <cstring>
#ifdef USE_OMP
#include "omp.h"
#endif
namespace rgf {
#define VER "version 0.7"
const int max_thrds=128;
const int vect_width=8;
using int_t=long;
using src_index_t=int;
using disc_dense_value_t=unsigned short;
using disc_sparse_index_t=int;
using disc_sparse_value_t=unsigned char;
using train_size_t=unsigned int;
}
using namespace std;
using namespace rgf;
#endif