Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
5db82353
Commit
5db82353
authored
Jul 20, 2016
by
Ivan Smirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename example20 -> example-numpy-dtypes
parent
f9c0defe
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
5 deletions
+6
-5
.gitignore
+1
-0
example/CMakeLists.txt
+1
-1
example/example-numpy-dtypes.cpp
+2
-2
example/example-numpy-dtypes.py
+0
-0
example/example-numpy-dtypes.ref
+0
-0
example/example.cpp
+2
-2
No files found.
.gitignore
View file @
5db82353
...
@@ -31,3 +31,4 @@ MANIFEST
...
@@ -31,3 +31,4 @@ MANIFEST
.DS_Store
.DS_Store
/dist
/dist
/build
/build
/cmake/
example/CMakeLists.txt
View file @
5db82353
...
@@ -26,7 +26,7 @@ set(PYBIND11_EXAMPLES
...
@@ -26,7 +26,7 @@ set(PYBIND11_EXAMPLES
example-stl-binder-vector.cpp
example-stl-binder-vector.cpp
example-eval.cpp
example-eval.cpp
example-custom-exceptions.cpp
example-custom-exceptions.cpp
example
20
.cpp
example
-numpy-dtypes
.cpp
issues.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
Copyright (c) 2016 Ivan Smirnov
...
@@ -169,7 +169,7 @@ void print_dtypes() {
...
@@ -169,7 +169,7 @@ void print_dtypes() {
std
::
cout
<<
to_str
(
py
::
dtype_of
<
StringStruct
>
())
<<
std
::
endl
;
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
(
SimpleStruct
,
x
,
y
,
z
);
PYBIND11_NUMPY_DTYPE
(
PackedStruct
,
x
,
y
,
z
);
PYBIND11_NUMPY_DTYPE
(
PackedStruct
,
x
,
y
,
z
);
PYBIND11_NUMPY_DTYPE
(
NestedStruct
,
a
,
b
);
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 &);
...
@@ -29,7 +29,7 @@ void init_ex_inheritance(py::module &);
void
init_ex_stl_binder_vector
(
py
::
module
&
);
void
init_ex_stl_binder_vector
(
py
::
module
&
);
void
init_ex_eval
(
py
::
module
&
);
void
init_ex_eval
(
py
::
module
&
);
void
init_ex_custom_exceptions
(
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
&
);
void
init_issues
(
py
::
module
&
);
#if defined(PYBIND11_TEST_EIGEN)
#if defined(PYBIND11_TEST_EIGEN)
...
@@ -73,7 +73,7 @@ PYBIND11_PLUGIN(example) {
...
@@ -73,7 +73,7 @@ PYBIND11_PLUGIN(example) {
init_ex_stl_binder_vector
(
m
);
init_ex_stl_binder_vector
(
m
);
init_ex_eval
(
m
);
init_ex_eval
(
m
);
init_ex_custom_exceptions
(
m
);
init_ex_custom_exceptions
(
m
);
init_ex
20
(
m
);
init_ex
_numpy_dtypes
(
m
);
init_issues
(
m
);
init_issues
(
m
);
#if defined(PYBIND11_TEST_EIGEN)
#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