Skip to content

Commit

Permalink
add move coeffs positional argument (default false)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannys4 committed Jan 22, 2024
1 parent fd3ebeb commit 672811b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/julia/src/TriangularMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ void mpart::binding::TriangularMapWrapper(jlcxx::Module &mod) {
.method("GetComponent", &TriangularMap<Kokkos::HostSpace>::GetComponent)
;

mod.method("TriangularMap", [](std::vector<std::shared_ptr<ConditionalMapBase<Kokkos::HostSpace>>> vec){
return std::static_pointer_cast<ConditionalMapBase<Kokkos::HostSpace>>(std::make_shared<TriangularMap<Kokkos::HostSpace>>(vec));
mod.method("TriangularMap", [](std::vector<std::shared_ptr<ConditionalMapBase<Kokkos::HostSpace>>> vec, bool move_coeffs=false){
return std::static_pointer_cast<ConditionalMapBase<Kokkos::HostSpace>>(std::make_shared<TriangularMap<Kokkos::HostSpace>>(vec, move_coeffs));
});

}

0 comments on commit 672811b

Please sign in to comment.