12 #include <Eigen/StdDeque> 13 #include <Eigen/Geometry> 15 template<
typename MatrixType>
20 MatrixType x = MatrixType::Random(rows,cols),
y = MatrixType::Random(rows,cols);
21 std::deque<MatrixType,Eigen::aligned_allocator<MatrixType> >
v(10, MatrixType::Zero(rows,cols)),
w(20,
y);
27 typename std::deque<MatrixType,Eigen::aligned_allocator<MatrixType> >
::iterator vi = v.begin();
28 typename std::deque<MatrixType,Eigen::aligned_allocator<MatrixType> >
::iterator wi = w.begin();
29 for(
int i = 0;
i < 20;
i++)
36 v.resize(21,MatrixType::Zero(rows,cols));
45 template<
typename TransformType>
49 TransformType
x(MatrixType::Random()),
y(MatrixType::Random()), ti=TransformType::Identity();
50 std::deque<TransformType,Eigen::aligned_allocator<TransformType> >
v(10,ti),
w(20,
y);
56 typename std::deque<TransformType,Eigen::aligned_allocator<TransformType> >
::iterator vi = v.begin();
57 typename std::deque<TransformType,Eigen::aligned_allocator<TransformType> >
::iterator wi = w.begin();
58 for(
int i = 0;
i < 20;
i++)
74 template<
typename QuaternionType>
77 typedef typename QuaternionType::Coefficients Coefficients;
78 QuaternionType
x(Coefficients::Random()),
y(Coefficients::Random()), qi=QuaternionType::Identity();
79 std::deque<QuaternionType,Eigen::aligned_allocator<QuaternionType> >
v(10,qi),
w(20,
y);
85 typename std::deque<QuaternionType,Eigen::aligned_allocator<QuaternionType> >
::iterator vi = v.begin();
86 typename std::deque<QuaternionType,Eigen::aligned_allocator<QuaternionType> >
::iterator wi = w.begin();
87 for(
int i = 0;
i < 20;
i++)
void check_stddeque_quaternion(const QuaternionType &)
#define CALL_SUBTEST_4(FUNC)
Transform< float, 3, Affine > Affine3f
#define CALL_SUBTEST_3(FUNC)
Quaternion< double > Quaterniond
#define VERIFY_IS_APPROX(a, b)
#define CALL_SUBTEST_1(FUNC)
Transform< double, 3, Affine > Affine3d
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Array< int, Dynamic, 1 > v
Transform< float, 2, Affine > Affine2f
#define CALL_SUBTEST_5(FUNC)
void check_stddeque_matrix(const MatrixType &m)
EIGEN_DECLARE_TEST(stddeque)
#define CALL_SUBTEST_2(FUNC)
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_transform(const TransformType &)
Quaternion< float > Quaternionf