Skip to content

Commit

Permalink
Merge pull request #229 from MeasureTransport/dannys4/totalOrderJulia
Browse files Browse the repository at this point in the history
Add CreateTotalOrder for Julia
  • Loading branch information
mparno authored Sep 12, 2022
2 parents ffcf2b4 + 5d80ea2 commit e86e265
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 @@ -49,6 +49,8 @@ void mpart::binding::MultiIndexWrapper(jlcxx::Module &mod) {
return MultiIndexSet(JuliaToEigenMat(idxs));
});

mod.method("CreateTotalOrder", [](unsigned int length, unsigned int maxOrder){return MultiIndexSet::CreateTotalOrder(length, maxOrder, MultiIndexLimiter::None()); });

mod.set_override_module(jl_base_module);
mod.method("sum", [](MultiIndex const& idx){ return idx.Sum(); });
mod.method("setindex!", [](MultiIndex& idx, unsigned int val, unsigned int ind) { return idx.Set(ind, val); });
Expand Down

0 comments on commit e86e265

Please sign in to comment.