Go to the documentation of this file.
48 return (cardinality_ ==
f.cardinality_) && (value_ ==
f.value_);
54 throw std::runtime_error(
"SingleValue::error not implemented");
72 bool ensureArcConsistency(
Key j,
Domains* domains)
const override;
79 const Domains& domains)
const override;
std::shared_ptr< SingleValue > shared_ptr
const KeyFormatter & formatter
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Point2 operator*(double s, const Point2 &p)
multiply with scalar
void print(const Matrix &A, const string &s, ostream &stream)
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::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
bool equals(const DiscreteFactor &other, double tol) const override
equals
std::map< Key, Domain > Domains
SingleValue(Key key, size_t n, size_t value)
Construct from key, cardinality, and given value.
specialized key for discrete variables
const gtsam::Symbol key('X', 0)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
DiscreteKey discreteKey() const
std::pair< Key, size_t > DiscreteKey
SingleValue(const DiscreteKey &dkey, size_t value)
Construct from DiscreteKey and given value.
std::shared_ptr< Constraint > shared_ptr
size_t value_
< Number of values
std::uint64_t Key
Integer nonlinear key type.
AlgebraicDecisionTree< Key > errorTree() const override
Compute error for each assignment and return as a tree.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:20