GaussianFactor.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
19 // \callgraph
20 
24 
25 namespace gtsam {
26 
27 double GaussianFactor::error(const VectorValues& c) const {
28  throw std::runtime_error("GaussianFactor::error is not implemented");
29 }
30 
31 double GaussianFactor::error(const HybridValues& c) const {
32  return this->error(c.continuous());
33 }
34 
38  return d;
39 }
40 
41 } // namespace gtsam
A factor with a quadratic error function - a Gaussian.
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
const VectorValues & continuous() const
Return the multi-dimensional vector values.
Definition: HybridValues.h:89
VectorValues hessianDiagonal() const
Return the diagonal of the Hessian for this factor.
Factor Graph Values.
virtual void hessianDiagonalAdd(VectorValues &d) const =0
Add the current diagonal to a VectorValues instance.
traits
Definition: chartTesting.h:28
virtual double error(const VectorValues &c) const


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:15