File tree Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ SET(${PROJECT_NAME}_HEADERS
67
67
68
68
SET (${PROJECT_NAME} _SOURCES
69
69
src/cppad.cpp
70
+ src/expose-type-double.cpp
71
+ src/expose-type-double-row-major.cpp
70
72
)
71
73
72
74
IF (BUILD_WITH_CPPAD_CODEGEN_BINDINGS )
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2021 INRIA
2
+ * Copyright 2021-2024 INRIA
3
3
*/
4
4
5
5
#ifdef PYCPPAD_WITH_CPPAD_CODEGEN_BINDINGS
9
9
#include " pycppad/cppad.hpp"
10
10
#include " pycppad/cppad-scalar.hpp"
11
11
12
+
13
+ // Use explicit template instantiation to build these
14
+ // function in different translation unit and avoid consuming
15
+ // too much memory on Windows
16
+ typedef ::CppAD::AD<double > ADScalar;
17
+ extern template void eigenpy::exposeType<ADScalar>();
18
+ extern template void eigenpy::exposeType<ADScalar,Eigen::RowMajor>();
19
+
12
20
namespace pycppad
13
21
{
14
22
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2024 INRIA
3
+ */
4
+
5
+ #include " pycppad/cppad.hpp"
6
+ #include " pycppad/cppad-scalar.hpp"
7
+
8
+ typedef ::CppAD::AD<double > ADScalar;
9
+ template void eigenpy::exposeType<ADScalar, Eigen::RowMajor>();
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2024 INRIA
3
+ */
4
+
5
+ #include " pycppad/cppad.hpp"
6
+ #include " pycppad/cppad-scalar.hpp"
7
+
8
+ typedef ::CppAD::AD<double > ADScalar;
9
+ template void eigenpy::exposeType<ADScalar>();
You can’t perform that action at this time.
0 commit comments