32 class SymmetricBlockMatrix;
53 template<
typename CONTAINER>
62 const std::string&
s =
"",
97 virtual Matrix augmentedJacobian()
const = 0;
106 virtual std::pair<Matrix,Vector> jacobian()
const = 0;
116 virtual Matrix augmentedInformation()
const = 0;
121 virtual Matrix information()
const = 0;
130 virtual void hessianDiagonal(
double* d)
const = 0;
133 virtual std::map<Key,Matrix> hessianBlockDiagonal()
const = 0;
164 virtual void gradientAtZero(
double* d)
const = 0;
174 template <
typename CONTAINER>
176 return std::find(keys.begin(), keys.end(),
key) - keys.begin();
182 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 184 friend class boost::serialization::access;
185 template<
class ARCHIVE>
186 void serialize(ARCHIVE & ar,
const unsigned int ) {
187 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
void print(const Matrix &A, const string &s, ostream &stream)
const gtsam::Symbol key('X', 0)
Concept check for values that can be used in unit tests.
std::string serialize(const T &input)
serializes to a string
GaussianFactor This
This class.
static const KeyFormatter DefaultKeyFormatter
ptrdiff_t DenseIndex
The index type for Eigen objects.
const KeyFormatter & formatter
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.
std::shared_ptr< This > shared_ptr
shared_ptr to this class
GaussianFactor(const CONTAINER &keys)
Factor Base
Our base class.
KeyVector::const_iterator const_iterator
Const iterator over keys.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
static DenseIndex Slot(const CONTAINER &keys, Key key)
std::uint64_t Key
Integer nonlinear key type.
The base class for all factors.