30 class ExpressionFactorShallowTest;
57 std::shared_ptr<internal::ExpressionNode<T> >
root_;
70 typedef std::function<
74 template<
class A1,
class A2>
76 typedef std::function<
81 template<
class A1,
class A2,
class A3>
83 typedef std::function<
84 T(
const A1&,
const A2&,
const A3&,
108 template<
typename A1,
typename A2>
113 template<
typename A1,
typename A2,
typename A3>
124 template<
typename A1,
typename A2>
131 template<
typename A1,
typename A2,
typename A3>
133 T (
A1::*method)(
const A2&,
const A3&,
144 std::set<Key>
keys()
const;
147 void dims(std::map<Key, int>& map)
const;
150 void print(
const std::string&
s)
const;
164 return value(values, &H);
172 virtual std::shared_ptr<Expression>
clone()
const {
173 return std::make_shared<Expression>(*this);
177 const std::shared_ptr<internal::ExpressionNode<T> >& root()
const;
180 size_t traceSize()
const;
192 KeysAndDims keysAndDims()
const;
200 char* traceStorage)
const;
203 T valueAndJacobianMap(
const Values& values,
211 friend class ::ExpressionFactorShallowTest;
218 template <
typename T>
231 template <
typename T>
246 template <
typename T,
typename A>
266 template <
typename T>
277 template <
typename T>
283 template <
typename T>
286 return e1 + (-1.0) * e2;
303 std::vector<Expression<T> >
createUnknowns(
size_t n,
char c,
size_t start = 0);
void print(const Matrix &A, const string &s, ostream &stream)
const gtsam::Symbol key('X', 0)
std::pair< KeyVector, FastVector< int > > KeysAndDims
Keys and dimensions in same order.
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator+=(bfloat16 &a, const bfloat16 &b)
#define GTSAM_CONCEPT_ASSERT(concept)
std::shared_ptr< internal::ExpressionNode< T > > 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)
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
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
JacobianMap for returning derivatives from expressions.
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 &, const A2 &, typename MakeOptionalJacobian< T, A1 >::type, typename MakeOptionalJacobian< T, A2 >::type)> type
Point2 operator*(double s, const Point2 &p)
multiply with scalar
Expression< T > type
Define type so we can apply it as a meta-function.
void g(const string &key, int i)
std::vector< Expression< T > > createUnknowns(size_t n, char c, size_t start)
Construct an array of leaves.
virtual ~Expression()
Destructor.
Expression(const std::shared_ptr< internal::ExpressionNode< T > > &root)
Construct with a custom root.
unsigned __int64 uint64_t
Eigen::Triplet< double > T
Errors operator+(const Errors &a, const Errors &b)
Addition.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Errors operator-(const Errors &a, const Errors &b)
Subtraction.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
virtual std::shared_ptr< Expression > clone() const
Key symbol(unsigned char c, std::uint64_t j)
Internals for Expression.h, not for general consumption.
Expression()
Default constructor, for serialization.
Special class for optional Jacobian arguments.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
The matrix class, also used for vectors and row-vectors.
T value(const Values &values, std::vector< Matrix > &H) const
std::uint64_t Key
Integer nonlinear key type.
std::function< T(const A1 &, typename MakeOptionalJacobian< T, A1 >::type)> type