GMatElastic 0.5.3
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
7#ifndef GMATELASTIC_CONFIG_H
8#define GMATELASTIC_CONFIG_H
9
10#include <GMatTensor/config.h>
11
29#ifdef GMATELASTIC_ENABLE_ASSERT
30#define GMATELASTIC_ASSERT(expr) GMATTENSOR_ASSERT_IMPL(expr, __FILE__, __LINE__)
31#else
32#define GMATELASTIC_ASSERT(expr)
33#endif
34
38namespace GMatElastic {
39
43namespace array_type {
44
45#ifdef GMATELASTIC_USE_XTENSOR_PYTHON
46
50template <typename T, size_t N>
51using tensor = xt::pytensor<T, N>;
52
53#else
54
58template <typename T, size_t N>
59using tensor = xt::xtensor<T, N>;
60
61#endif
62
63} // namespace array_type
64
65} // namespace GMatElastic
66
67#endif
Macros used in the library.
xt::xtensor< T, N > tensor
Fixed (static) rank array.
Definition: config.h:59
Linear elastic material model.
Definition: Cartesian3d.h:15