Skip to content

Commit

Permalink
Update print.hpp for latest guanaqo
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Jul 25, 2024
1 parent 291c920 commit cf070cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/alpaqa/include/alpaqa/util/print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ std::ostream &print_python(std::ostream &os,
const Eigen::DenseBase<Derived> &M) {
if constexpr (requires { M.derived().data(); })
return guanaqo::detail::print_python_impl(
os, guanaqo::MatrixView<const typename Derived::Scalar>{
.data = M.derived().data(),
.rows = M.rows(),
.cols = M.cols(),
.stride = M.outerStride(),
});
os, guanaqo::MatrixView<const typename Derived::Scalar>{{
.data = M.derived().data(),
.rows = M.rows(),
.cols = M.cols(),
.outer_stride = M.outerStride(),
}});
else
return print_python(os, M.eval());
}
Expand Down

0 comments on commit cf070cd

Please sign in to comment.