32 using namespace gtsam;
54 map.insert(make_pair(1,
v1));
55 map.insert(make_pair(2,
v2));
56 map.insert(make_pair(3,
v3));
88 TEST (Serialization, matrix_vector) {
89 EXPECT(equality<Vector>((
Vector(4) << 1.0, 2.0, 3.0, 4.0).finished()));
92 EXPECT(equality<Vector6>((Vector6() << 1.0, 2.0, 3.0, 4.0, 5.0, 6.0).finished()));
93 EXPECT(equality<Matrix>((
Matrix(2, 2) << 1.0, 2.0, 3.0, 4.0).finished()));
95 EXPECT(equalityXML<Vector>((
Vector(4) << 1.0, 2.0, 3.0, 4.0).finished()));
98 EXPECT(equalityXML<Vector6>((Vector6() << 1.0, 2.0, 3.0, 4.0, 5.0, 6.0).finished()));
99 EXPECT(equalityXML<Matrix>((
Matrix(2, 2) << 1.0, 2.0, 3.0, 4.0).finished()));
101 EXPECT(equalityBinary<Vector>((
Vector(4) << 1.0, 2.0, 3.0, 4.0).finished()));
104 EXPECT(equalityBinary<Vector6>((Vector6() << 1.0, 2.0, 3.0, 4.0, 5.0, 6.0).finished()));
105 EXPECT(equalityBinary<Matrix>((
Matrix(2, 2) << 1.0, 2.0, 3.0, 4.0).finished()));
A thin wrapper around std::list that uses boost's fast_pool_allocator.
static int runAllTests(TestResult &result)
bool equality(const T &input=T())
bool equalityBinary(const T &input=T())
TEST(Serialization, FastList)
#define EXPECT(condition)
A thin wrapper around std::vector that uses a custom allocator.
typedef and functions to augment Eigen's VectorXd
A thin wrapper around std::map that uses boost's fast_pool_allocator.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
A thin wrapper around std::set that uses boost's fast_pool_allocator.
bool equalityXML(const T &input=T())