tesseract++
0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
core
include
config.h
Go to the documentation of this file.
1
#ifndef CONFIG_H
2
#define CONFIG_H
3
21
#ifdef __GNUC__
22
#define FORCE_INLINE inline __attribute__((always_inline))
23
#elif defined(_MSC_VER)
24
#define FORCE_INLINE __forceinline
25
#else
26
#define FORCE_INLINE inline
27
#endif
28
36
#if __cplusplus >= 201103L
37
#define DEFINE_TYPE_ALIAS(type, name) using name = type
38
#else
39
#define DEFINE_TYPE_ALIAS(type, name) typedef type name
40
#endif
41
49
#include "
error_handler/error_handler.h
"
50
#ifdef ARDUINO
51
#include "
error_handler/arduino_serial_error_handler.h
"
52
using
MyErrorHandler
=
ErrorHandler<SerialErrorHandler>
;
53
#else
54
#include "
error_handler/pc_error_handler.h
"
55
using
MyErrorHandler
=
ErrorHandler<PCErrorHandler>
;
56
#define TESSERACT_CONDITIONAL_NOEXCEPT
57
#endif
58
66
// #define DEBUG_FUSED_MATRIX
67
72
// #define DEBUG_FUSED_TENSOR
73
85
// #define COMPILETIME_CHECK_DIMENSIONS_COUNT_MISMATCH
86
89
// #define COMPILETIME_CHECK_DIMENSIONS_SIZE_MISMATCH
90
101
#define RUNTIME_CHECK_DIMENSIONS_COUNT_MISMATCH
102
105
#define RUNTIME_CHECK_DIMENSIONS_SIZE_MISMATCH
106
109
#define RUNTIME_USE_BOUNDS_CHECKING
110
117
#define PRECISION_TOLERANCE 1e-4
118
126
#define my_size_t size_t
127
132
#define TESSERACT_USE_FMAD
133
134
#endif
// CONFIG_H
arduino_serial_error_handler.h
ErrorHandler
Definition
error_handler.h:15
error_handler.h
pc_error_handler.h
Generated by
1.9.8