mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Rename example20 -> example-numpy-dtypes
This commit is contained in:
parent
f9c0defed7
commit
5db82353f7
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ MANIFEST
|
||||
.DS_Store
|
||||
/dist
|
||||
/build
|
||||
/cmake/
|
||||
|
@ -26,7 +26,7 @@ set(PYBIND11_EXAMPLES
|
||||
example-stl-binder-vector.cpp
|
||||
example-eval.cpp
|
||||
example-custom-exceptions.cpp
|
||||
example20.cpp
|
||||
example-numpy-dtypes.cpp
|
||||
issues.cpp
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
example/example20.cpp -- Usage of structured numpy dtypes
|
||||
example/example-numpy-dtypes.cpp -- Structured and compound NumPy dtypes
|
||||
|
||||
Copyright (c) 2016 Ivan Smirnov
|
||||
|
||||
@ -169,7 +169,7 @@ void print_dtypes() {
|
||||
std::cout << to_str(py::dtype_of<StringStruct>()) << std::endl;
|
||||
}
|
||||
|
||||
void init_ex20(py::module &m) {
|
||||
void init_ex_numpy_dtypes(py::module &m) {
|
||||
PYBIND11_NUMPY_DTYPE(SimpleStruct, x, y, z);
|
||||
PYBIND11_NUMPY_DTYPE(PackedStruct, x, y, z);
|
||||
PYBIND11_NUMPY_DTYPE(NestedStruct, a, b);
|
@ -29,7 +29,7 @@ void init_ex_inheritance(py::module &);
|
||||
void init_ex_stl_binder_vector(py::module &);
|
||||
void init_ex_eval(py::module &);
|
||||
void init_ex_custom_exceptions(py::module &);
|
||||
void init_ex20(py::module &);
|
||||
void init_ex_numpy_dtypes(py::module &);
|
||||
void init_issues(py::module &);
|
||||
|
||||
#if defined(PYBIND11_TEST_EIGEN)
|
||||
@ -73,7 +73,7 @@ PYBIND11_PLUGIN(example) {
|
||||
init_ex_stl_binder_vector(m);
|
||||
init_ex_eval(m);
|
||||
init_ex_custom_exceptions(m);
|
||||
init_ex20(m);
|
||||
init_ex_numpy_dtypes(m);
|
||||
init_issues(m);
|
||||
|
||||
#if defined(PYBIND11_TEST_EIGEN)
|
||||
|
Loading…
Reference in New Issue
Block a user