File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/extensions/pybind11 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
22pip install pybind11
33
4- g++ -O3 -Wall -Wextra -shared -std=c++17 -fPIC $(python3 -m pybind11 --includes) mandel.cpp -o mandel$(python3-config --extension-suffix)
4+ g++ -O3 -DNDEBUG -Wall -Wextra -shared -std=c++17 -fPIC $(python3 -m pybind11 --includes) mandel.cpp -o mandel$(python3-config --extension-suffix)
55
66
77see https://stackoverflow.com/questions/44659924/returning-numpy-arrays-via-pybind11
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ This version uses a simple Array class to give us nice indexing into a contiguou
22
33pip install pybind11
44
5- g++ -DNDEBUG -O3 -Wall -Wextra -shared -std=c++17 -fPIC $(python3 -m pybind11 --includes) mandel.cpp -o mandel$(python3-config --extension-suffix)
5+ g++ -DNDEBUG -O3 -Wall -Wextra -shared -std=c++17 -fPIC $(python3 -m pybind11 --includes) mandel.cpp -o mandel$(python3-config --extension-suffix)
66
77
88see https://stackoverflow.com/questions/44659924/returning-numpy-arrays-via-pybind11
You can’t perform that action at this time.
0 commit comments