Go to the documentation of this file.
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)
FixedVector< 3 > TestVector3
static FixedVector ones()
static FixedVector repeat(double value)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define EXPECT(condition)
static Vector9 vec3(const Matrix3 &R)
static FixedVector delta(size_t i, double value)
static FixedVector zero()
static SO4::VectorN2 vec4(const Matrix4 &Q)
Extension of boost's bounded_vector to allow for fixed size operation.
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
TEST(SmartFactorBase, Pinhole)
FixedVector< 5 > TestVector5
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static FixedVector basis(size_t i)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:26