diff --git a/CMakeLists.txt b/CMakeLists.txt index c45fa58f30481fdfd5bbed84031370313a36c5f5..7dfc8c49fcbd59a144b1ce39d1ba511a5c7fbe8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # # Copyright (c) 2014-2019 CNRS -# Copyright (c) 2018-2020 INRIA +# Copyright (c) 2018-2021 INRIA # CMAKE_MINIMUM_REQUIRED(VERSION 3.1) @@ -163,6 +163,7 @@ SET(${PROJECT_NAME}_SOURCES src/matrix-double.cpp src/matrix-long-double.cpp src/matrix-complex-long-double.cpp + src/matrix-bool.cpp src/matrix-int.cpp src/matrix-long.cpp src/angle-axis.cpp diff --git a/src/eigenpy.cpp b/src/eigenpy.cpp index 805581fca167dba9588500765f37b66aed62f58a..f152f9e22f9b17a209228117f5849a99555c1960 100644 --- a/src/eigenpy.cpp +++ b/src/eigenpy.cpp @@ -1,6 +1,6 @@ /* * Copyright 2014-2019, CNRS - * Copyright 2018-2020, INRIA + * Copyright 2018-2021, INRIA */ #include "eigenpy/eigenpy.hpp" @@ -14,6 +14,7 @@ namespace eigenpy srand(seed_value); } + void exposeMatrixBool(); void exposeMatrixInt(); void exposeMatrixLong(); void exposeMatrixFloat(); @@ -59,6 +60,7 @@ namespace eigenpy bp::def("seed",&seed,bp::arg("seed_value"), "Initialize the pseudo-random number generator with the argument seed_value."); + exposeMatrixBool(); exposeMatrixInt(); exposeMatrixLong(); exposeMatrixFloat(); diff --git a/src/matrix-bool.cpp b/src/matrix-bool.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7985df9a375aab01324a8aa3f7966b0976f90219 --- /dev/null +++ b/src/matrix-bool.cpp @@ -0,0 +1,14 @@ +/* + * Copyright 2021 INRIA + */ + +#include "eigenpy/eigenpy.hpp" + +namespace eigenpy +{ + void exposeMatrixBool() + { + exposeType<bool>(); + exposeType<bool,Eigen::RowMajor>(); + } +}