37 if (!dynamic_cast<const AllDiff*>(&other))
40 const AllDiff&
f(static_cast<const AllDiff&>(other));
42 std::equal(cardinalities_.begin(), cardinalities_.end(),
62 bool ensureArcConsistency(
Key j,
Domains* domains)
const override;
void print(const Matrix &A, const string &s, ostream &stream)
DiscreteKey discreteKey(size_t i) const
bool equals(const DiscreteFactor &other, double tol) const override
equals
std::shared_ptr< Constraint > shared_ptr
Point2 operator*(double s, const Point2 &p)
multiply with scalar
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
std::map< Key, Domain > Domains
std::map< Key, size_t > cardinalities_
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
specialized key for discrete variables
std::pair< Key, size_t > DiscreteKey
bool equal(const T &obj1, const T &obj2, double tol)
internal::enable_if< internal::valid_indexed_view_overload< RowIndices, ColIndices >::value &&internal::traits< typename EIGEN_INDEXED_VIEW_METHOD_TYPE< RowIndices, ColIndices >::type >::ReturnAsIndexedView, typename EIGEN_INDEXED_VIEW_METHOD_TYPE< RowIndices, ColIndices >::type >::type operator()(const RowIndices &rowIndices, const ColIndices &colIndices) EIGEN_INDEXED_VIEW_METHOD_CONST
std::uint64_t Key
Integer nonlinear key type.
DiscreteKeys is a set of keys that can be assembled using the & operator.