GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
gtsam::Basis< DERIVED >::ComponentDerivativeFunctor< M > Class Template Reference

#include <Basis.h>

Inheritance diagram for gtsam::Basis< DERIVED >::ComponentDerivativeFunctor< M >:
Inheritance graph
[legend]
Collaboration diagram for gtsam::Basis< DERIVED >::ComponentDerivativeFunctor< M >:
Collaboration graph
[legend]

Public Member Functions

 ComponentDerivativeFunctor ()
 For serialization.
 
 ComponentDerivativeFunctor (size_t N, size_t i, double x)
 Construct with row index.
 
 ComponentDerivativeFunctor (size_t N, size_t i, double x, double a, double b)
 Construct with row index and interval.
 
double apply (const ParameterMatrix< M > &P, OptionalJacobian< -1, -1 > H={}) const
 Calculate derivative of component rowIndex_ of F.
 
double operator() (const ParameterMatrix< M > &P, OptionalJacobian< -1, -1 > H={}) const
 c++ sugar
 

Protected Types

using Jacobian = Eigen::Matrix< double, 1, -1 >
 

Protected Member Functions

void calculateJacobian (size_t N)
 
void print (const std::string &s="") const
 

Protected Attributes

size_t rowIndex_
 
Jacobian H_
 
Weights weights_
 

Detailed Description

template<typename DERIVED>
template<int M>
class gtsam::Basis< DERIVED >::ComponentDerivativeFunctor< M >

Given a M*N Matrix of M-vectors at N polynomial points, an instance of ComponentDerivativeFunctor computes the N-vector derivative for a specific row component of the M-vectors at all the polynomial points.

This component is specified by the row index i, with 0<i<M.


The documentation for this class was generated from the following file: