Skip to content

Commit

Permalink
fix python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
artivis committed Mar 21, 2024
1 parent 191a5ba commit a7b890b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/manif/impl/sgal3/SGal3Tangent_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ template <typename _Derived>
typename SGal3TangentBase<_Derived>::Jacobian
SGal3TangentBase<_Derived>::ljac() const {
using ConstRef33 = const Eigen::Ref<const Eigen::Matrix<Scalar, 3, 3>>;
using Ref61 = Eigen::Ref<Eigen::Matrix<Scalar, 6, 1>>;
// The Python binding requires RowMajor
using Ref61 = Eigen::Ref<Eigen::Matrix<Scalar, 6, 1, Jacobian::IsRowMajor? 1 : 0>>;

using Diag = typename Eigen::DiagonalMatrix<Scalar, 3>;
auto I33 = [](const Scalar d){ return Diag(d, d, d).toDenseMatrix(); };

Expand Down

0 comments on commit a7b890b

Please sign in to comment.