Skip to content

Commit

Permalink
Merge pull request artivis#271 from willat343/devel
Browse files Browse the repository at this point in the history
replaced ::Constant(0) with ::Zero() due to ceres::Jet compile error
  • Loading branch information
artivis authored Jun 6, 2023
2 parents 08719cb + 9dedec1 commit bc1e90f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/manif/impl/bundle/BundleTangent_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ struct GeneratorEvaluator<BundleTangentBase<Derived>>
run(const unsigned int i, intseq<_Idx...>)
{
using LieAlg = typename BundleTangentBase<Derived>::LieAlg;
LieAlg Ei = LieAlg::Constant(0);
LieAlg Ei = LieAlg::Zero();
// c++11 "fold expression"
auto l = {((Ei.template block<
Derived::template Element<_Idx>::LieAlg::RowsAtCompileTime,
Expand Down
6 changes: 3 additions & 3 deletions include/manif/impl/rn/RnTangent_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ template <typename _Derived>
typename RnTangentBase<_Derived>::LieAlg
RnTangentBase<_Derived>::hat() const
{
LieAlg t_hat = LieAlg::Constant(0);
LieAlg t_hat = LieAlg::Zero();
t_hat.template topRightCorner<Dim, 1>() = coeffs();
return t_hat;
}
Expand Down Expand Up @@ -161,7 +161,7 @@ template <typename _Derived>
typename RnTangentBase<_Derived>::Jacobian
RnTangentBase<_Derived>::smallAdj() const
{
static const Jacobian smallAdj = Jacobian::Constant(0);
static const Jacobian smallAdj = Jacobian::Zero();
return smallAdj;
}

Expand All @@ -184,7 +184,7 @@ struct GeneratorEvaluator<RnTangentBase<Derived>>

using LieAlg = typename RnTangentBase<Derived>::LieAlg;

LieAlg Ei = LieAlg::Constant(0);
LieAlg Ei = LieAlg::Zero();

Ei(i, RnTangentBase<Derived>::DoF) = 1;

Expand Down

0 comments on commit bc1e90f

Please sign in to comment.