Skip to content

Commit

Permalink
Add select python binding for scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
Speierers committed Apr 14, 2020
1 parent b9adeb1 commit 1cc24d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/scalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ PYBIND11_MODULE(scalar, s) {
m.def("eq", [](Float a, Float b) { return eq(a, b); });
m.def("neq", [](Float a, Float b) { return neq(a, b); });

m.def("select", [](bool a, Float b, Float c) { return enoki::select(a, b, c); });

bind_scalar_0d(m, s);
bind_scalar_1d(m, s);
bind_scalar_2d(m, s);
Expand Down

0 comments on commit 1cc24d0

Please sign in to comment.