21 #include <gtsam/config.h> 24 #include <boost/serialization/assume_abstract.hpp> 40 virtual Value* clone_()
const = 0;
43 virtual void deallocate_()
const = 0;
46 virtual boost::shared_ptr<Value> clone()
const = 0;
49 virtual bool equals_(
const Value& other,
double tol = 1
e-9)
const = 0;
52 virtual void print(
const std::string&
str =
"")
const = 0;
59 virtual size_t dim()
const = 0;
84 template<
typename ValueType>
85 const ValueType&
cast()
const;
121 friend class boost::serialization::access;
122 template<
class ARCHIVE>
void print(const Matrix &A, const string &s, ostream &stream)
void serialize(ARCHIVE &, const unsigned int)
EIGEN_DEVICE_FUNC NewType cast(const OldType &x)
virtual Value & operator=(const Value &)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const mpreal dim(const mpreal &a, const mpreal &b, mp_rnd_t r=mpreal::get_default_rnd())
typedef and functions to augment Eigen's VectorXd