Commit e3dd4e1 1 parent 30c789d commit e3dd4e1 Copy full SHA for e3dd4e1
File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 25
25
#include < boost/serialization/nvp.hpp>
26
26
#endif
27
27
#include < memory>
28
+ #include < algorithm>
28
29
29
30
#include < gtsam/base/types.h>
30
31
#include < gtsam/base/FastVector.h>
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ if(GTSAM_UNSTABLE_BUILD_PYTHON)
257
257
COMMAND
258
258
${CMAKE_COMMAND} -E env
259
259
"PYTHONPATH=${GTSAM_PYTHON_BUILD_DIRECTORY} /$ENV{PYTHONPATH} "
260
- pybind11-stubgen -o . --enum-class-locations \"KernelFunctionType|NoiseFormat:gtsam.gtsam\" --enum-class-locations \"OrderingType:gtsam.gtsam.Ordering\" gtsam_unstable
260
+ pybind11-stubgen -o . --enum-class-locations \"KernelFunctionType|NoiseFormat:gtsam.gtsam\" --enum-class-locations \"OrderingType:gtsam.gtsam.Ordering\" --numpy-array-use- type -var gtsam_unstable
261
261
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES} ${GTSAM_PYTHON_TEST_FILES} ${GTSAM_PYTHON_UNSTABLE_TARGET}
262
262
WORKING_DIRECTORY "${GTSAM_PYTHON_BUILD_DIRECTORY} /"
263
263
)
@@ -284,7 +284,7 @@ add_custom_target(
284
284
COMMAND
285
285
${CMAKE_COMMAND} -E env
286
286
"PYTHONPATH=${GTSAM_PYTHON_BUILD_DIRECTORY} /$ENV{PYTHONPATH} "
287
- pybind11-stubgen -o . --enum-class-locations \"KernelFunctionType|NoiseFormat:gtsam.gtsam\" --enum-class-locations \"OrderingType:gtsam.gtsam.Ordering\" gtsam
287
+ pybind11-stubgen -o . --enum-class-locations \"KernelFunctionType|NoiseFormat:gtsam.gtsam\" --enum-class-locations \"OrderingType:gtsam.gtsam.Ordering\" --numpy-array-use- type -var gtsam
288
288
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES} ${GTSAM_PYTHON_TEST_FILES} ${GTSAM_PYTHON_TARGET}
289
289
WORKING_DIRECTORY "${GTSAM_PYTHON_BUILD_DIRECTORY} /"
290
290
)
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ namespace py = pybind11;
39
39
{ module_def} { {
40
40
m_.doc() = " pybind11 wrapper of {module_name}" ;
41
41
42
+ // Specializations for STL classes
43
+ #include " python/gtsam/specializations/{module_name}.h"
44
+
42
45
{submodules_init}
43
46
44
47
{ wrapped_namespace}
45
48
46
- // Specializations for STL classes
47
- #include "python/gtsam/specializations/{ module_name} .h"
48
-
49
49
}}
50
50
You can’t perform that action at this time.
0 commit comments