Skip to content

Commit

Permalink
Create addto! binding
Browse files Browse the repository at this point in the history
  • Loading branch information
dannys4 committed Apr 26, 2023
1 parent b046e33 commit 5ada136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/julia/src/MultiIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ void mpart::binding::MultiIndexWrapper(jlcxx::Module &mod) {
.method("NumActiveForward", &MultiIndexSet::NumActiveForward)
.method("NumForward", &MultiIndexSet::NumForward)
.method("Size", &MultiIndexSet::Size)
.method("addto!", [](MultiIndexSet &mset, MultiIndex const& idx){ return mset += idx; })
.method("addto!", [](MultiIndexSet &mset, MultiIndexSet const& mset2){ return mset += mset2; })
;

mod.method("MultiIndexSet", [](jlcxx::ArrayRef<int,2> idxs) {
Expand Down

0 comments on commit 5ada136

Please sign in to comment.