SHOGUN  6.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
Macros | Typedefs | Variables
common.h File Reference

Go to the source code of this file.

Macros

#define STRING_LEN   256
 
#define STRING_LEN_STR   "256"
 
#define SG_FORCED_INLINE   inline __attribute__((always_inline))
 

Typedefs

typedef char string_t [STRING_LEN]
 
typedef int machine_int_t
 
typedef int32_t index_t
 
typedef std::complex< float64_tcomplex128_t
 

Variables

constexpr size_t CPU_CACHE_LINE_SIZE = 64
 
constexpr size_t CPU_CACHE_LINE_SIZE_BYTES = CPU_CACHE_LINE_SIZE/8
 

Standard Types

Definition of Platform independent Types

#define __STDC_FORMAT_MACROS   1
 
typedef float float32_t
 
typedef double float64_t
 
typedef long double floatmax_t
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS   1

Definition at line 50 of file common.h.

#define SG_FORCED_INLINE   inline __attribute__((always_inline))

Definition at line 91 of file common.h.

#define STRING_LEN   256

Definition at line 65 of file common.h.

#define STRING_LEN_STR   "256"

Definition at line 66 of file common.h.

Typedef Documentation

typedef std::complex<float64_t> complex128_t

complex type

Definition at line 77 of file common.h.

typedef float float32_t

Implementations tend to follow IEEE754

See also
http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=4610935

Definition at line 59 of file common.h.

typedef double float64_t

Definition at line 60 of file common.h.

typedef long double floatmax_t

Definition at line 61 of file common.h.

typedef int32_t index_t

index type

Definition at line 72 of file common.h.

typedef int machine_int_t

Definition at line 69 of file common.h.

typedef char string_t[STRING_LEN]

Definition at line 67 of file common.h.

Variable Documentation

constexpr size_t CPU_CACHE_LINE_SIZE = 64

CPU cache line size

Definition at line 80 of file common.h.

constexpr size_t CPU_CACHE_LINE_SIZE_BYTES = CPU_CACHE_LINE_SIZE/8

Definition at line 81 of file common.h.


SHOGUN Machine Learning Toolbox - Documentation