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 SimpleStruct &v) |
|
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 S > |
py::list | print_recarray (py::array_t< S, 0 > arr) |
|
| PYBIND11_PACKED (struct PackedStruct{bool bool_;uint32_t uint_;float float_;long double ldbl_;}) |
|
| PYBIND11_PACKED (struct NestedStruct{SimpleStruct a;PackedStruct b;}) |
|
| PYBIND11_PACKED (struct StructWithUglyNames{int8_t __x__;uint64_t __y__;}) |
|
| PYBIND11_PACKED (struct EnumStruct{E1 e1;E2 e2;}) |
|
py::array_t< int32_t, 0 > | test_array_ctors (int i) |
|
py::list | test_dtype_ctors () |
|
| TEST_SUBMODULE (numpy_dtypes, m) |
|
#define PYBIND11_PACKED |
( |
|
cls | ) |
__pragma(pack(push, 1)) cls __pragma(pack(pop)) |
#define SET_TEST_VALS |
( |
|
s, |
|
|
|
i |
|
) |
| |
template<typename S >
py::array_t<S, 0> create_recarray |
( |
size_t |
n | ) |
|
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const SimpleStruct & |
v |
|
) |
| |
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 S >
py::list print_recarray |
( |
py::array_t< S, 0 > |
arr | ) |
|
PYBIND11_PACKED |
( |
struct PackedStruct{bool bool_;uint32_t uint_;float float_;long double ldbl_;} |
| ) |
|
PYBIND11_PACKED |
( |
struct NestedStruct{SimpleStruct a;PackedStruct b;} |
| ) |
|
PYBIND11_PACKED |
( |
struct StructWithUglyNames{int8_t __x__;uint64_t __y__;} |
| ) |
|
PYBIND11_PACKED |
( |
struct EnumStruct{E1 e1;E2 e2;} |
| ) |
|
py::list test_dtype_ctors |
( |
| ) |
|
TEST_SUBMODULE |
( |
numpy_dtypes |
, |
|
|
m |
|
|
) |
| |