Fixed initialization error for active_
parent
2673e1664c
commit
44477e12f2
|
@ -41,7 +41,7 @@ private:
|
||||||
public:
|
public:
|
||||||
/** default constructor for I/O */
|
/** default constructor for I/O */
|
||||||
LinearInequality() :
|
LinearInequality() :
|
||||||
Base() {
|
Base(), active_(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Conversion from HessianFactor (does Cholesky to obtain Jacobian matrix) */
|
/** Conversion from HessianFactor (does Cholesky to obtain Jacobian matrix) */
|
||||||
|
@ -53,21 +53,21 @@ public:
|
||||||
/** Construct unary factor */
|
/** Construct unary factor */
|
||||||
LinearInequality(Key i1, const RowVector& A1, double b, Key dualKey) :
|
LinearInequality(Key i1, const RowVector& A1, double b, Key dualKey) :
|
||||||
Base(i1, A1, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
Base(i1, A1, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
||||||
dualKey) {
|
dualKey), active_(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Construct binary factor */
|
/** Construct binary factor */
|
||||||
LinearInequality(Key i1, const RowVector& A1, Key i2, const RowVector& A2, double b,
|
LinearInequality(Key i1, const RowVector& A1, Key i2, const RowVector& A2, double b,
|
||||||
Key dualKey) :
|
Key dualKey) :
|
||||||
Base(i1, A1, i2, A2, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
Base(i1, A1, i2, A2, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
||||||
dualKey) {
|
dualKey), active_(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Construct ternary factor */
|
/** Construct ternary factor */
|
||||||
LinearInequality(Key i1, const RowVector& A1, Key i2, const RowVector& A2, Key i3,
|
LinearInequality(Key i1, const RowVector& A1, Key i2, const RowVector& A2, Key i3,
|
||||||
const RowVector& A3, double b, Key dualKey) :
|
const RowVector& A3, double b, Key dualKey) :
|
||||||
Base(i1, A1, i2, A2, i3, A3, (Vector(1) << b).finished(),
|
Base(i1, A1, i2, A2, i3, A3, (Vector(1) << b).finished(),
|
||||||
noiseModel::Constrained::All(1)), dualKey_(dualKey) {
|
noiseModel::Constrained::All(1)), dualKey_(dualKey), active_(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Construct an n-ary factor
|
/** Construct an n-ary factor
|
||||||
|
@ -76,7 +76,7 @@ public:
|
||||||
template<typename TERMS>
|
template<typename TERMS>
|
||||||
LinearInequality(const TERMS& terms, double b, Key dualKey) :
|
LinearInequality(const TERMS& terms, double b, Key dualKey) :
|
||||||
Base(terms, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
Base(terms, (Vector(1) << b).finished(), noiseModel::Constrained::All(1)), dualKey_(
|
||||||
dualKey) {
|
dualKey), active_(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Virtual destructor */
|
/** Virtual destructor */
|
||||||
|
|
Loading…
Reference in New Issue