|
tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
|
Global configuration for the tesseract tensor library. More...

Go to the source code of this file.
Macros | |
| #define | FORCE_INLINE inline |
| Hint the compiler to always inline a function. | |
| #define | DEFINE_TYPE_ALIAS(type, name) typedef type name |
| Portable type alias macro. | |
| #define | TESSERACT_CONDITIONAL_NOEXCEPT |
| #define | PRECISION_TOLERANCE 1e-4 |
| Tolerance for floating-point comparisons (e.g. symmetry checks, Cholesky). | |
| #define | my_size_t size_t |
| Size/index type used throughout the library. | |
| #define | TESSERACT_USE_FMAD |
| Enable fused multiply-add pattern detection in expression evaluation. | |
Runtime Checks | |
Dynamic bounds and dimension validation. | |
| #define | RUNTIME_CHECK_DIMENSIONS_COUNT_MISMATCH |
| Check number of indices/dimensions at runtime. | |
| #define | RUNTIME_CHECK_DIMENSIONS_SIZE_MISMATCH |
| Check dimension sizes at runtime. | |
| #define | RUNTIME_USE_BOUNDS_CHECKING |
| Enable element-access bounds checking. | |
Typedefs | |
| using | MyErrorHandler = ErrorHandler< PCErrorHandler > |
| Platform-specific error handler selection. | |
Global configuration for the tesseract tensor library.
Controls platform detection, error handling backend selection, debug output, compile-time vs runtime safety checks, and numeric precision settings. Intended to be included (directly or indirectly) by every translation unit in the library.
| #define DEFINE_TYPE_ALIAS | ( | type, | |
| name | |||
| ) | typedef type name |
Portable type alias macro.
Uses using on C++11 and later, falls back to typedef for pre-C++11 compilers.
| #define FORCE_INLINE inline |
Hint the compiler to always inline a function.
Resolves to __attribute__((always_inline)) on GCC/Clang, __forceinline on MSVC, and plain inline elsewhere.
| #define my_size_t size_t |
Size/index type used throughout the library.
Defaults to size_t. Can be changed to uint32_t for memory-constrained targets.
| #define PRECISION_TOLERANCE 1e-4 |
Tolerance for floating-point comparisons (e.g. symmetry checks, Cholesky).
| #define RUNTIME_CHECK_DIMENSIONS_COUNT_MISMATCH |
Check number of indices/dimensions at runtime.
| #define RUNTIME_CHECK_DIMENSIONS_SIZE_MISMATCH |
Check dimension sizes at runtime.
| #define RUNTIME_USE_BOUNDS_CHECKING |
Enable element-access bounds checking.
| #define TESSERACT_CONDITIONAL_NOEXCEPT |
| #define TESSERACT_USE_FMAD |
Enable fused multiply-add pattern detection in expression evaluation.
| using MyErrorHandler = ErrorHandler<PCErrorHandler> |
Platform-specific error handler selection.
On Arduino targets, errors are reported over serial via SerialErrorHandler. On desktop/PC targets, PCErrorHandler is used (typically throws exceptions or prints to stderr).