Unverified Commit 7d79ffed authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #225 from jcarpent/devel

Expose boolean matrices
parents 49056d5e 0bf595ba
Pipeline #13705 passed with stage
in 13 minutes and 39 seconds
# #
# Copyright (c) 2014-2019 CNRS # Copyright (c) 2014-2019 CNRS
# Copyright (c) 2018-2020 INRIA # Copyright (c) 2018-2021 INRIA
# #
CMAKE_MINIMUM_REQUIRED(VERSION 3.1) CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
...@@ -163,6 +163,7 @@ SET(${PROJECT_NAME}_SOURCES ...@@ -163,6 +163,7 @@ SET(${PROJECT_NAME}_SOURCES
src/matrix-double.cpp src/matrix-double.cpp
src/matrix-long-double.cpp src/matrix-long-double.cpp
src/matrix-complex-long-double.cpp src/matrix-complex-long-double.cpp
src/matrix-bool.cpp
src/matrix-int.cpp src/matrix-int.cpp
src/matrix-long.cpp src/matrix-long.cpp
src/angle-axis.cpp src/angle-axis.cpp
......
/* /*
* Copyright 2014-2019, CNRS * Copyright 2014-2019, CNRS
* Copyright 2018-2020, INRIA * Copyright 2018-2021, INRIA
*/ */
#include "eigenpy/eigenpy.hpp" #include "eigenpy/eigenpy.hpp"
...@@ -14,6 +14,7 @@ namespace eigenpy ...@@ -14,6 +14,7 @@ namespace eigenpy
srand(seed_value); srand(seed_value);
} }
void exposeMatrixBool();
void exposeMatrixInt(); void exposeMatrixInt();
void exposeMatrixLong(); void exposeMatrixLong();
void exposeMatrixFloat(); void exposeMatrixFloat();
...@@ -59,6 +60,7 @@ namespace eigenpy ...@@ -59,6 +60,7 @@ namespace eigenpy
bp::def("seed",&seed,bp::arg("seed_value"), bp::def("seed",&seed,bp::arg("seed_value"),
"Initialize the pseudo-random number generator with the argument seed_value."); "Initialize the pseudo-random number generator with the argument seed_value.");
exposeMatrixBool();
exposeMatrixInt(); exposeMatrixInt();
exposeMatrixLong(); exposeMatrixLong();
exposeMatrixFloat(); exposeMatrixFloat();
......
/*
* Copyright 2021 INRIA
*/
#include "eigenpy/eigenpy.hpp"
namespace eigenpy
{
void exposeMatrixBool()
{
exposeType<bool>();
exposeType<bool,Eigen::RowMajor>();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment