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
6767
6868SET (${PROJECT_NAME} _SOURCES
6969 src/cppad.cpp
70+ src/expose-type -double.cpp
71+ src/expose-type -double-row-major.cpp
7072 )
7173
7274IF (BUILD_WITH_CPPAD_CODEGEN_BINDINGS)
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2021 INRIA
2+ * Copyright 2021-2024 INRIA
33 */
44
55#ifdef PYCPPAD_WITH_CPPAD_CODEGEN_BINDINGS
99#include " pycppad/cppad.hpp"
1010#include " pycppad/cppad-scalar.hpp"
1111
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+
1220namespace pycppad
1321{
1422
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