Go to the source code of this file.
|
| enum | E1 : int64_t { A = -1,
B = 1
} |
| |
| enum | E2 : uint8_t { X = 1,
Y = 2
} |
| |
|
| std::ostream & | operator<< (std::ostream &os, const SimpleStruct &v) |
| |
| | __pragma (pack(push, 1)) struct PackedStruct |
| |
| | __pragma (pack(pop)) |
| |
| std::ostream & | operator<< (std::ostream &os, const PackedStruct &v) |
| |
| std::ostream & | operator<< (std::ostream &os, const NestedStruct &v) |
| |
| std::ostream & | operator<< (std::ostream &os, const ComplexStruct &v) |
| |
| std::ostream & | operator<< (std::ostream &os, const StringStruct &v) |
| |
| std::ostream & | operator<< (std::ostream &os, const ArrayStruct &v) |
| |
| std::ostream & | operator<< (std::ostream &os, const EnumStruct &v) |
| |
| template<typename T > |
| py::array | mkarray_via_buffer (size_t n) |
| |
| template<typename S > |
| py::array_t< S, 0 > | create_recarray (size_t n) |
| |
| template<typename S > |
| py::list | print_recarray (py::array_t< S, 0 > arr) |
| |
| py::array_t< int32_t, 0 > | test_array_ctors (int i) |
| |
| py::list | test_dtype_ctors () |
| |
| void | test_submodule_numpy_dtypes (py::module &) |
| |
◆ PYBIND11_PACKED
◆ SET_TEST_VALS
| #define SET_TEST_VALS |
( |
|
s, |
|
|
|
i |
|
) |
| |
Value:do { \
s.bool_ = (
i) % 2 != 0; \
s.uint_ = (uint32_t) (
i); \
s.float_ = (float) (
i) * 1.5f; \
s.ldbl_ = (
long double) (
i) * -2.5L; }
while (0)
Definition at line 149 of file test_numpy_dtypes.cpp.
◆ E1
◆ E2
◆ __pragma() [1/2]
| __pragma |
( |
pack(push, 1) |
| ) |
|
◆ __pragma() [2/2]
◆ create_recarray()
◆ mkarray_via_buffer()
◆ operator<<() [1/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const SimpleStruct & |
v |
|
) |
| |
◆ operator<<() [2/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const PackedStruct & |
v |
|
) |
| |
◆ operator<<() [3/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const NestedStruct & |
v |
|
) |
| |
◆ operator<<() [4/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ComplexStruct & |
v |
|
) |
| |
◆ operator<<() [5/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const StringStruct & |
v |
|
) |
| |
◆ operator<<() [6/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ArrayStruct & |
v |
|
) |
| |
◆ operator<<() [7/7]
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const EnumStruct & |
v |
|
) |
| |
◆ print_recarray()
◆ test_array_ctors()
◆ test_dtype_ctors()
◆ test_submodule_numpy_dtypes()
| void test_submodule_numpy_dtypes |
( |
py::module & |
m | ) |
|
◆ numpy_dtypes