Skip to content

Commit

Permalink
Fix julia bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
dannys4 committed Apr 26, 2023
1 parent 455f4a8 commit b046e33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions bindings/julia/src/JlArrayConversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ StridedMatrix<double, Kokkos::HostSpace> JuliaToKokkos(jlcxx::ArrayRef<double,2>
Eigen::Map<const Eigen::Matrix<int,Eigen::Dynamic, Eigen::Dynamic>,0,Eigen::OuterStride<>> JuliaToEigenMat(jlcxx::ArrayRef<int,2> mat) {
int* mptr = mat.data();
unsigned int rows = size(mat,0);
unsigned int cols = size(mat,1);
return Eigen::Map<const Eigen::Matrix<int,Eigen::Dynamic, Eigen::Dynamic>,0,Eigen::OuterStride<>>(mptr, rows, cols, Eigen::OuterStride<>(rows));
}

Expand Down
1 change: 0 additions & 1 deletion bindings/julia/src/MultiIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ void mpart::binding::MultiIndexWrapper(jlcxx::Module &mod) {
mod.method("length", [](FixedMultiIndexSet<Kokkos::HostSpace> &mset){return mset.Length();});
mod.method("size", [](FixedMultiIndexSet<Kokkos::HostSpace> &mset){return mset.Size();});
mod.method("vec", [](MultiIndex const& idx){ return idx.Vector(); });
mod.method("copy", [](MultiIndexSet const& mset){ MultiIndexSet mset_copy = mset; return mset_copy;});
mod.method("==", [](MultiIndex const& idx1, MultiIndex const& idx2){ return idx1 == idx2; });
mod.method("!=", [](MultiIndex const& idx1, MultiIndex const& idx2){ return idx1 != idx2; });
mod.method("<", [](MultiIndex const& idx1, MultiIndex const& idx2){ return idx1 < idx2; });
Expand Down

0 comments on commit b046e33

Please sign in to comment.