Skip to content

Commit

Permalink
Add eq, neq bindings for scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
Speierers committed Apr 9, 2020
1 parent f819414 commit 486ddb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/scalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ PYBIND11_MODULE(scalar, s) {
m.def("none_nested", [](bool a) { return !a; });
m.def("count_nested", [](bool a) { return a ? 1 : 0; });

m.def("eq", [](Float a, Float b) { return eq(a, b); });
m.def("neq", [](Float a, Float b) { return neq(a, b); });

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

0 comments on commit 486ddb0

Please sign in to comment.