Skip to content

Commit 845ab3c

Browse files
committed
type alias moved to CRTP
1 parent efa1735 commit 845ab3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/constraints.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ using Matfun::sign;
4545

4646
namespace Constraint {
4747

48-
using VectorXidx = Eigen::Vector<Eigen::Index,Eigen::Dynamic>;
49-
50-
5148
MatrixXd Orthogonal::Jacobian( const VectorXidx & idxx,
5249
const VectorXd &l0,
5350
const VectorXd &l) const

src/constraints.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@ class ConstraintCRTP : public ConstraintBase
9898
ConstraintCRTP() = default;
9999
ConstraintCRTP(ConstraintCRTP&&) noexcept = default;
100100
friend Derived;
101+
102+
using VectorXidx = Vector<Index,Dynamic>;
101103
};
102104

105+
103106
//! Concurrence constraint (three copunctual straight lines)
104107
class Copunctual : public ConstraintCRTP<Copunctual>
105108
{

0 commit comments

Comments
 (0)