SHOGUN
v3.2.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
lib
common.h
浏览该文件的文档.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 1999-2009 Soeren Sonnenburg
8
* Written (W) 1999-2008 Gunnar Raetsch
9
* Written (W) 2006 Fabio De Bona
10
* Written (W) 2006 Konrad Rieck
11
* Written (W) 2006-2008 Christian Gehl
12
* Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
13
*/
14
15
#ifndef __COMMON_H__
16
#define __COMMON_H__
17
18
#include <stdlib.h>
19
#include <stdio.h>
20
#include <
shogun/lib/config.h
>
21
26
27
#include <stdint.h>
28
29
/* No feature test:
30
* ISO C99: 7.8 Format conversion of integer types <inttypes.h>
31
*
32
* If not supported make sure that your development environment is
33
* supporting ISO C99!
34
*/
35
#ifdef __STDC_FORMAT_MACROS
36
#include <inttypes.h>
37
#else
38
#define __STDC_FORMAT_MACROS 1
39
#include <inttypes.h>
40
#undef __STDC_FORMAT_MACROS
41
#endif
42
47
typedef
float
float32_t
;
48
typedef
double
float64_t
;
49
typedef
long
double
floatmax_t
;
50
52
53
#define STRING_LEN 256
54
#define STRING_LEN_STR "256"
55
typedef
char
string_t
[
STRING_LEN
];
56
57
typedef
int
machine_int_t
;
58
60
typedef
int32_t
index_t
;
61
63
#include <complex>
64
65
typedef
std::complex<float64_t>
complex128_t
;
66
67
#include <
shogun/lib/memory.h
>
68
#endif //__COMMON_H__
complex128_t
std::complex< float64_t > complex128_t
Definition:
common.h:65
memory.h
index_t
int32_t index_t
Definition:
common.h:60
config.h
float64_t
double float64_t
Definition:
common.h:48
floatmax_t
long double floatmax_t
Definition:
common.h:49
STRING_LEN
#define STRING_LEN
Definition:
common.h:53
float32_t
float float32_t
Definition:
common.h:47
machine_int_t
int machine_int_t
Definition:
common.h:57
string_t
char string_t[STRING_LEN]
Definition:
common.h:55
SHOGUN
Machine Learning Toolbox - Documentation