Commit 5db82353 by Ivan Smirnov

Rename example20 -> example-numpy-dtypes

parent f9c0defe
......@@ -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
)
......
/*
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment