Go to the documentation of this file.
13 #include <Eigen/StdDeque>
14 #include <Eigen/Geometry>
28 template<
typename MatrixType>
34 std::deque<MatrixType>
v(10, MatrixType::Zero(
rows,
cols)),
w(20,
y);
39 for(
int i = 0;
i < 20;
i++)
55 for(
int i=0;
i<30 || ((
ref==&
w[0]) &&
i<300); ++
i)
56 v.push_back(
w[
i%
w.size()]);
57 for(
unsigned int i=23;
i<
v.size(); ++
i)
63 template<
typename TransformType>
67 TransformType
x(MatrixType::Random()),
y(MatrixType::Random()), ti=TransformType::Identity();
68 std::deque<TransformType>
v(10,ti),
w(20,
y);
73 for(
int i = 0;
i < 20;
i++)
88 TransformType*
ref = &
w[0];
89 for(
int i=0;
i<30 || ((
ref==&
w[0]) &&
i<300); ++
i)
90 v.push_back(
w[
i%
w.size()]);
91 for(
unsigned int i=23;
i<
v.size(); ++
i)
97 template<
typename QuaternionType>
100 typedef typename QuaternionType::Coefficients Coefficients;
101 QuaternionType
x(Coefficients::Random()),
y(Coefficients::Random()), qi=QuaternionType::Identity();
102 std::deque<QuaternionType>
v(10,qi),
w(20,
y);
107 for(
int i = 0;
i < 20;
i++)
122 QuaternionType*
ref = &
w[0];
123 for(
int i=0;
i<30 || ((
ref==&
w[0]) &&
i<300); ++
i)
124 v.push_back(
w[
i%
w.size()]);
125 for(
unsigned int i=23;
i<
v.size(); ++
i)
127 VERIFY(
v[
i].coeffs()==
w[(
i-23)%
w.size()].coeffs());
EIGEN_DECLARE_TEST(stddeque_overload)
Transform< float, 2, Affine > Affine2f
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 x
void check_stddeque_matrix(const MatrixType &m)
Transform< float, 3, Affine > Affine3f
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
Quaternion< float > Quaternionf
#define CALL_SUBTEST_5(FUNC)
Quaternion< double > Quaterniond
#define CALL_SUBTEST_2(FUNC)
#define EIGEN_DEFINE_STL_DEQUE_SPECIALIZATION(...)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
#define VERIFY_IS_APPROX(a, b)
The quaternion class used to represent 3D orientations and rotations.
void check_stddeque_quaternion(const QuaternionType &)
Reference counting helper.
Array< int, Dynamic, 1 > v
void check_stddeque_transform(const TransformType &)
Transform< double, 3, Affine > Affine3d
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:05:00