Go to the source code of this file.
|
template<typename S > |
py::array_t< S, 0 > | create_recarray (size_t n) |
|
template<typename T > |
py::array | mkarray_via_buffer (size_t n) |
|
std::ostream & | operator<< (std::ostream &os, const ArrayStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const ComplexStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const EnumStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const NestedStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const PackedStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const SimpleStruct &v) |
|
std::ostream & | operator<< (std::ostream &os, const StringStruct &v) |
|
template<typename S > |
py::list | print_recarray (py::array_t< S, 0 > arr) |
|
| PYBIND11_PACKED (struct EnumStruct { E1 e1;E2 e2;}) |
|
| PYBIND11_PACKED (struct NestedStruct { SimpleStruct a;PackedStruct b;}) |
|
| PYBIND11_PACKED (struct PackedStruct { bool bool_;uint32_t uint_;float float_;long double ldbl_;}) |
|
| PYBIND11_PACKED (struct StructWithUglyNames { int8_t __x__;uint64_t __y__;}) |
|
py::array_t< int32_t, 0 > | test_array_ctors (int i) |
|
py::list | test_dtype_ctors () |
|
| TEST_SUBMODULE (numpy_dtypes, m) |
|
◆ PYBIND11_PACKED
#define PYBIND11_PACKED |
( |
|
cls | ) |
__pragma(pack(push, 1)) cls __pragma(pack(pop)) |
◆ SET_TEST_VALS
#define SET_TEST_VALS |
( |
|
s, |
|
|
|
i |
|
) |
| |
◆ E1
◆ E2
◆ create_recarray()
template<typename S >
py::array_t<S, 0> create_recarray |
( |
size_t |
n | ) |
|
◆ mkarray_via_buffer()
◆ operator<<() [1/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ArrayStruct & |
v |
|
) |
| |
◆ operator<<() [2/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ComplexStruct & |
v |
|
) |
| |
◆ operator<<() [3/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const EnumStruct & |
v |
|
) |
| |
◆ operator<<() [4/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const NestedStruct & |
v |
|
) |
| |
◆ operator<<() [5/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const PackedStruct & |
v |
|
) |
| |
◆ operator<<() [6/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const SimpleStruct & |
v |
|
) |
| |
◆ operator<<() [7/7]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const StringStruct & |
v |
|
) |
| |
◆ print_recarray()
template<typename S >
py::list print_recarray |
( |
py::array_t< S, 0 > |
arr | ) |
|
◆ PYBIND11_PACKED() [1/4]
PYBIND11_PACKED |
( |
struct EnumStruct { E1 e1;E2 e2;} |
| ) |
|
◆ PYBIND11_PACKED() [2/4]
PYBIND11_PACKED |
( |
struct NestedStruct { SimpleStruct a;PackedStruct b;} |
| ) |
|
◆ PYBIND11_PACKED() [3/4]
PYBIND11_PACKED |
( |
struct PackedStruct { bool bool_;uint32_t uint_;float float_;long double ldbl_;} |
| ) |
|
◆ PYBIND11_PACKED() [4/4]
PYBIND11_PACKED |
( |
struct StructWithUglyNames { int8_t __x__;uint64_t __y__;} |
| ) |
|
◆ test_array_ctors()
◆ test_dtype_ctors()
py::list test_dtype_ctors |
( |
| ) |
|
◆ TEST_SUBMODULE()
TEST_SUBMODULE |
( |
numpy_dtypes |
, |
|
|
m |
|
|
) |
| |