Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
5db82353
Commit
5db82353
authored
Jul 20, 2016
by
Ivan Smirnov
Browse files
Rename example20 -> example-numpy-dtypes
parent
f9c0defe
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
5 deletions
+6
-5
.gitignore
.gitignore
+1
-0
example/CMakeLists.txt
example/CMakeLists.txt
+1
-1
example/example-numpy-dtypes.cpp
example/example-numpy-dtypes.cpp
+2
-2
example/example-numpy-dtypes.py
example/example-numpy-dtypes.py
+0
-0
example/example-numpy-dtypes.ref
example/example-numpy-dtypes.ref
+0
-0
example/example.cpp
example/example.cpp
+2
-2
No files found.
.gitignore
View file @
5db82353
...
...
@@ -31,3 +31,4 @@ MANIFEST
.DS_Store
/dist
/build
/cmake/
example/CMakeLists.txt
View file @
5db82353
...
...
@@ -26,7 +26,7 @@ set(PYBIND11_EXAMPLES
example-stl-binder-vector.cpp
example-eval.cpp
example-custom-exceptions.cpp
example
20
.cpp
example
-numpy-dtypes
.cpp
issues.cpp
)
...
...
example/example
20
.cpp
→
example/example
-numpy-dtypes
.cpp
View file @
5db82353
/*
example/example
20.cpp -- Usage of structured nump
y dtypes
example/example
-numpy-dtypes.cpp -- Structured and compound NumP
y 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_ex
20
(
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
);
...
...
example/example
20
.py
→
example/example
-numpy-dtypes
.py
View file @
5db82353
File moved
example/example
20
.ref
→
example/example
-numpy-dtypes
.ref
View file @
5db82353
File moved
example/example.cpp
View file @
5db82353
...
...
@@ -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_ex
20
(
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_ex
20
(
m
);
init_ex
_numpy_dtypes
(
m
);
init_issues
(
m
);
#if defined(PYBIND11_TEST_EIGEN)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment