Skip to content

Commit

Permalink
ENH: Add armadillo conversion to test file
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Dec 16, 2023
1 parent c6e6376 commit d4108a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ int main() {
auto mat = carma::arr_to_mat(arr);
auto mat2 = carma::arr_to_mat(std::move(farr));

auto matr = arma::Mat<double>(10, 10, arma::fill::randu);

auto rconv = carma::internal::DefaultArmaConverter();
py::array_t<double> rarr = rconv(std::move(matr));

// auto mat = my_custom_converter()(std::move(arr));
// auto mat2 = my_custom_converter()(std::move(farr));

Expand Down

0 comments on commit d4108a5

Please sign in to comment.