77 Base(
KeyVector{j1, j2, j3, j4, j5, j6}) {}
94 const std::string&
s =
"SymbolicFactor",
101 const std::string&
s =
"SymbolicFactor",
111 template<
typename KEYITERATOR>
117 template<
typename KEYITERATOR>
120 result->keys_.assign(beginKey, endKey);
126 template<
class CONTAINER>
133 template<
class CONTAINER>
135 return FromIteratorsShared(keys.begin(), keys.end());
148 std::pair<std::shared_ptr<SymbolicConditional>, std::shared_ptr<SymbolicFactor> >
154 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 156 friend class boost::serialization::access;
157 template<
class ARCHIVE>
158 void serialize(ARCHIVE & ar,
const unsigned int ) {
159 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
172 GTSAM_EXPORT std::pair<std::shared_ptr<SymbolicConditional>, std::shared_ptr<SymbolicFactor> >
void printKeys(const std::string &s="SymbolicFactor", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print only keys
SymbolicFactor(Key j1, Key j2, Key j3, Key j4)
Concept check for values that can be used in unit tests.
std::string serialize(const T &input)
serializes to a string
SymbolicConditional ConditionalType
std::shared_ptr< This > shared_ptr
SymbolicFactor::shared_ptr clone() const
Copy this object as its actual derived type.
const GaussianFactorGraph factors
static SymbolicFactor::shared_ptr FromKeysShared(const CONTAINER &keys)
SymbolicFactor(Key j1, Key j2, Key j3)
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)
void print(const std::string &s="SymbolicFactor", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
static const KeyFormatter DefaultKeyFormatter
SymbolicFactor(Key j1, Key j2)
static SymbolicFactor::shared_ptr FromIteratorsShared(KEYITERATOR beginKey, KEYITERATOR endKey)
const KeyFormatter & formatter
std::pair< std::shared_ptr< SymbolicConditional >, std::shared_ptr< SymbolicFactor > > EliminateSymbolic(const SymbolicFactorGraph &factors, const Ordering &keys)
SymbolicFactor(const Factor &factor)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
SymbolicFactor(Key j1, Key j2, Key j3, Key j4, Key j5, Key j6)
static SymbolicFactor FromKeys(const CONTAINER &keys)
static SymbolicFactor FromIterators(KEYITERATOR beginKey, KEYITERATOR endKey)
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
std::uint64_t Key
Integer nonlinear key type.
SymbolicFactor(Key j1, Key j2, Key j3, Key j4, Key j5)
The base class for all factors.