Go to the documentation of this file.
30 class ExpressionFactorShallowTest;
59 std::shared_ptr<internal::ExpressionNode<T> >
root_;
72 typedef std::function<
76 template<
class A1,
class A2>
78 typedef std::function<
83 template<
class A1,
class A2,
class A3>
85 typedef std::function<
86 T(
const A1&,
const A2&,
const A3&,
110 template<
typename A1,
typename A2>
115 template<
typename A1,
typename A2,
typename A3>
126 template<
typename A1,
typename A2>
133 template<
typename A1,
typename A2,
typename A3>
135 T (
A1::*method)(
const A2&,
const A3&,
146 std::set<Key>
keys()
const;
149 void dims(std::map<Key, int>& map)
const;
152 void print(
const std::string&
s)
const;
174 virtual std::shared_ptr<Expression>
clone()
const {
175 return std::make_shared<Expression>(*
this);
179 const std::shared_ptr<internal::ExpressionNode<T> >&
root()
const;
202 char* traceStorage)
const;
215 friend class ::ExpressionFactorShallowTest;
222 template <
typename T>
235 template <
typename T>
250 template <
typename T,
typename A>
270 template <
typename T>
281 template <
typename T>
287 template <
typename T>
290 return e1 + (-1.0) * e2;
299 Expression<T>
operator*(
const Expression<T>& e1,
const Expression<T>& e2);
307 std::vector<Expression<T> >
createUnknowns(
size_t n,
char c,
size_t start = 0);
KeysAndDims keysAndDims() const
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
std::function< T(const A1 &, typename MakeOptionalJacobian< T, A1 >::type)> type
T value(const Values &values, std::vector< Matrix > *H=nullptr) const
Return value and optional derivatives, reverse AD version Notes: this is not terribly efficient,...
ScalarMultiplyExpression(double s, const Expression< T > &e)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< T(const A1 &, const A2 &, const A3 &, typename MakeOptionalJacobian< T, A1 >::type, typename MakeOptionalJacobian< T, A2 >::type, typename MakeOptionalJacobian< T, A3 >::type)> type
BinarySumExpression(const Expression< T > &e1, const Expression< T > &e2)
Errors operator-(const Errors &a, const Errors &b)
Subtraction.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
GTSAM_CONCEPT_ASSERT(IsVectorSpace< T >)
Eigen::Triplet< double > T
std::shared_ptr< internal::ExpressionNode< T > > root_
virtual std::shared_ptr< Expression > clone() const
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
T valueAndDerivatives(const Values &values, const KeyVector &keys, const FastVector< int > &dims, std::vector< Matrix > &H) const
private version that takes keys and dimensions, returns derivatives
JacobianMap for returning derivatives from expressions.
T value(const Values &values, std::vector< Matrix > &H) const
Point2 operator*(double s, const Point2 &p)
multiply with scalar
const std::shared_ptr< internal::ExpressionNode< T > > & root() const
Return root.
std::set< Key > keys() const
Return keys that play in this expression.
std::pair< KeyVector, FastVector< int > > KeysAndDims
Keys and dimensions in same order.
Key symbol(unsigned char c, std::uint64_t j)
std::vector< Expression< T > > createUnknowns(size_t n, char c, size_t start)
Construct an array of leaves.
Special class for optional Jacobian arguments.
Expression()
Default constructor, for serialization.
Internals for Expression.h, not for general consumption.
void print(const std::string &s) const
Print.
void g(const string &key, int i)
void dims(std::map< Key, int > &map) const
Return dimensions for each argument, as a map.
HybridGaussianProductFactor operator+(const HybridGaussianProductFactor &a, const HybridGaussianProductFactor &b)
const gtsam::Symbol key('X', 0)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
size_t traceSize() const
Return size needed for memory buffer in traceExecution.
T traceExecution(const Values &values, internal::ExecutionTrace< T > &trace, char *traceStorage) const
trace execution, very unsafe
virtual ~Expression()
Destructor.
The matrix class, also used for vectors and row-vectors.
unsigned __int64 uint64_t
T valueAndJacobianMap(const Values &values, internal::JacobianMap &jacobians) const
brief Return value and derivatives, reverse AD version
std::function< T(const A1 &, const A2 &, typename MakeOptionalJacobian< T, A1 >::type, typename MakeOptionalJacobian< T, A2 >::type)> type
GTSAM_CONCEPT_ASSERT(IsVectorSpace< T >)
std::uint64_t Key
Integer nonlinear key type.
Expression< T > type
Define type so we can apply it as a meta-function.
Expression< T > & operator+=(const Expression< T > &e)
Add another expression to this expression.
Expression(const std::shared_ptr< internal::ExpressionNode< T > > &root)
Construct with a custom root.
Expression< T > linearExpression(const std::function< T(A)> &f, const Expression< A > &expression, const Eigen::Matrix< double, traits< T >::dimension, traits< A >::dimension > &dTdA)
gtsam
Author(s):
autogenerated on Sun Feb 16 2025 04:01:21