Skip to content

Commit 0bf595b

Browse files
committed
core: expose boolean matrices
1 parent 49056d5 commit 0bf595b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright (c) 2014-2019 CNRS
3-
# Copyright (c) 2018-2020 INRIA
3+
# Copyright (c) 2018-2021 INRIA
44
#
55

66
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
@@ -163,6 +163,7 @@ SET(${PROJECT_NAME}_SOURCES
163163
src/matrix-double.cpp
164164
src/matrix-long-double.cpp
165165
src/matrix-complex-long-double.cpp
166+
src/matrix-bool.cpp
166167
src/matrix-int.cpp
167168
src/matrix-long.cpp
168169
src/angle-axis.cpp

src/eigenpy.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2014-2019, CNRS
3-
* Copyright 2018-2020, INRIA
3+
* Copyright 2018-2021, INRIA
44
*/
55

66
#include "eigenpy/eigenpy.hpp"
@@ -14,6 +14,7 @@ namespace eigenpy
1414
srand(seed_value);
1515
}
1616

17+
void exposeMatrixBool();
1718
void exposeMatrixInt();
1819
void exposeMatrixLong();
1920
void exposeMatrixFloat();
@@ -59,6 +60,7 @@ namespace eigenpy
5960
bp::def("seed",&seed,bp::arg("seed_value"),
6061
"Initialize the pseudo-random number generator with the argument seed_value.");
6162

63+
exposeMatrixBool();
6264
exposeMatrixInt();
6365
exposeMatrixLong();
6466
exposeMatrixFloat();

src/matrix-bool.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright 2021 INRIA
3+
*/
4+
5+
#include "eigenpy/eigenpy.hpp"
6+
7+
namespace eigenpy
8+
{
9+
void exposeMatrixBool()
10+
{
11+
exposeType<bool>();
12+
exposeType<bool,Eigen::RowMajor>();
13+
}
14+
}

0 commit comments

Comments
 (0)