21 using namespace gtsam;
26 static const double tol = 1
e-9;
29 TEST( testFixedVector, conversions ) {
30 double data1[] = {1.0, 2.0, 3.0};
31 Vector v1 = (
Vector(3) << data1[0], data1[1], data1[2]).finished();
39 TEST( testFixedVector, variable_constructor ) {
62 TEST( testFixedVector, static_constructors ) {
static int runAllTests(TestResult &result)
static FixedVector ones()
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static FixedVector repeat(double value)
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
bool equals(const FixedVector< M > &other, double tol=1e-9) const
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
FixedVector< 5 > TestVector5
static SO4::VectorN2 vec4(const Matrix4 &Q)
FixedVector< 3 > TestVector3
Extension of boost's bounded_vector to allow for fixed size operation.
static Vector9 vec3(const Matrix3 &R)
TEST(SmartFactorBase, Pinhole)
static FixedVector basis(size_t i)
static FixedVector zero()
static FixedVector delta(size_t i, double value)