Go to the documentation of this file.
21 #include <gtsam_unstable/dllexport.h>
38 typedef std::shared_ptr<LinearizedGaussianFactor>
shared_ptr;
62 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
64 friend class boost::serialization::access;
65 template<
class ARCHIVE>
66 void serialize(ARCHIVE & ar,
const unsigned int ) {
67 ar & boost::serialization::make_nvp(
"LinearizedGaussianFactor",
68 boost::serialization::base_object<Base>(*
this));
69 ar & BOOST_SERIALIZATION_NVP(lin_points_);
87 typedef std::shared_ptr<LinearizedJacobianFactor>
shared_ptr;
118 return std::static_pointer_cast<gtsam::NonlinearFactor>(
135 size_t dim()
const override {
return Ab_.
rows(); }
145 std::shared_ptr<GaussianFactor> linearize(
const Values&
c)
const override;
151 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
152 friend class boost::serialization::access;
154 template<
class ARCHIVE>
155 void serialize(ARCHIVE & ar,
const unsigned int ) {
156 ar & boost::serialization::make_nvp(
"LinearizedJacobianFactor",
157 boost::serialization::base_object<Base>(*
this));
158 ar & BOOST_SERIALIZATION_NVP(Ab_);
210 return std::static_pointer_cast<gtsam::NonlinearFactor>(
256 return info_.
block(J1, J2);
268 size_t dim()
const override {
return info_.
rows() - 1; }
278 std::shared_ptr<GaussianFactor> linearize(
const Values&
c)
const override;
282 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
283 friend class boost::serialization::access;
284 template<
class ARCHIVE>
285 void serialize(ARCHIVE & ar,
const unsigned int ) {
286 ar & boost::serialization::make_nvp(
"LinearizedHessianFactor",
287 boost::serialization::base_object<Base>(*
this));
288 ar & BOOST_SERIALIZATION_NVP(info_);
std::shared_ptr< This > shared_ptr
LinearizedGaussianFactor Base
Expression of a fixed-size or dynamic-size block.
const constABlock A(Key key) const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
SymmetricBlockMatrix::constBlock::ColXpr constColumn
A column containing the linear term h (const version)
SymmetricBlockMatrix::Block Block
A block from the Hessian matrix.
SymmetricBlockMatrix info_
size_t dim() const override
Block range(DenseIndex startBlock, DenseIndex endBlock)
Contains the HessianFactor class, a general quadratic factor.
Eigen::SelfAdjointView< constBlock, Eigen::Upper > selfadjointView(DenseIndex I, DenseIndex J) const
Return the square sub-matrix that contains blocks(i:j, i:j).
std::shared_ptr< This > shared_ptr
A shared_ptr to this class.
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
LinearizedJacobianFactor This
size_t dim() const override
constBlock aboveDiagonalRange(DenseIndex i_startBlock, DenseIndex i_endBlock, DenseIndex j_startBlock, DenseIndex j_endBlock) const
Get a range [i,j) from the matrix. Indices are in block units.
m m block(1, 0, 2, 2)<< 4
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
gtsam::NonlinearFactor::shared_ptr clone() const override
SymmetricBlockMatrix::constBlock constBlock
A block from the Hessian matrix (const version)
VerticalBlockMatrix::constBlock::ConstColXpr constBVector
void print(const Matrix &A, const string &s, ostream &stream)
Matrix squaredTerm(const_iterator j1, const_iterator j2) const
~LinearizedHessianFactor() override
SymmetricBlockMatrix::Block::ColXpr Column
A column containing the linear term h.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Eigen::SelfAdjointView< constBlock, Eigen::Upper > squaredTerm() const
std::shared_ptr< LinearizedGaussianFactor > shared_ptr
LinearizedGaussianFactor This
constColumn linearTerm(const_iterator j) const
std::shared_ptr< This > shared_ptr
shared_ptr to this class
constColumn linearTerm() const
DenseIndex rows() const
Row size.
const gtsam::Symbol key('X', 0)
Block< Derived, internal::traits< Derived >::RowsAtCompileTime, 1, !IsRowMajor > ColXpr
Non-linear factor base classes.
const typedef Block< const Derived, internal::traits< Derived >::RowsAtCompileTime, 1, !IsRowMajor > ConstColXpr
const constBVector b() const
KeyVector::const_iterator const_iterator
Const iterator over keys.
~LinearizedJacobianFactor() override
LinearizedGaussianFactor Base
ptrdiff_t DenseIndex
The index type for Eigen objects.
gtsam::NonlinearFactor::shared_ptr clone() const override
VerticalBlockMatrix::Block::ColXpr BVector
Eigen::SelfAdjointView< Block, Eigen::Upper > diagonalBlock(DenseIndex J)
Return the J'th diagonal block as a self adjoint view.
LinearizedHessianFactor This
std::shared_ptr< LinearizedJacobianFactor > shared_ptr
DenseIndex rows() const
Row size.
double constantTerm() const
VerticalBlockMatrix::constBlock constABlock
const constABlock A() const
std::shared_ptr< This > shared_ptr
shared_ptr to this class
Matrix block(DenseIndex I, DenseIndex J) const
VerticalBlockMatrix::Block ABlock
static const EIGEN_DEPRECATED end_t end
std::uint64_t Key
Integer nonlinear key type.
const Values & linearizationPoint() const
std::shared_ptr< LinearizedHessianFactor > shared_ptr
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:55