Go to the documentation of this file.
   13 #include <Eigen/StdVector> 
   14 #include <Eigen/Geometry> 
   28 template<
typename MatrixType>
 
   34   std::vector<MatrixType> 
v(10, MatrixType::Zero(
rows,
cols)), 
w(20, 
y);
 
   39   for(
int i = 0; 
i < 20; 
i++)
 
   56   for(
int i=0; 
i<30 || ((
ref==&
w[0]) && 
i<300); ++
i)
 
   57     v.push_back(
w[
i%
w.size()]);
 
   58   for(
unsigned int i=23; 
i<
v.size(); ++
i)
 
   64 template<
typename TransformType>
 
   68   TransformType 
x(MatrixType::Random()), 
y(MatrixType::Random());
 
   69   std::vector<TransformType> 
v(10), 
w(20, 
y);
 
   74   for(
int i = 0; 
i < 20; 
i++)
 
   90   TransformType* 
ref = &
w[0];
 
   91   for(
int i=0; 
i<30 || ((
ref==&
w[0]) && 
i<300); ++
i)
 
   92     v.push_back(
w[
i%
w.size()]);
 
   93   for(
unsigned int i=23; 
i<
v.size(); ++
i)
 
   99 template<
typename QuaternionType>
 
  102   typedef typename QuaternionType::Coefficients Coefficients;
 
  103   QuaternionType 
x(Coefficients::Random()), 
y(Coefficients::Random()), qi=QuaternionType::Identity();
 
  104   std::vector<QuaternionType> 
v(10,qi), 
w(20, 
y);
 
  109   for(
int i = 0; 
i < 20; 
i++)
 
  125   QuaternionType* 
ref = &
w[0];
 
  126   for(
int i=0; 
i<30 || ((
ref==&
w[0]) && 
i<300); ++
i)
 
  127     v.push_back(
w[
i%
w.size()]);
 
  128   for(
unsigned int i=23; 
i<
v.size(); ++
i)
 
  130     VERIFY(
v[
i].coeffs()==
w[(
i-23)%
w.size()].coeffs());
 
  
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
#define EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(...)
void check_stdvector_quaternion(const QuaternionType &)
Transform< float, 3, Affine > Affine3f
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_1(FUNC)
EIGEN_DECLARE_TEST(stdvector_overload)
Quaternion< float > Quaternionf
#define CALL_SUBTEST_5(FUNC)
Quaternion< double > Quaterniond
#define CALL_SUBTEST_2(FUNC)
void check_stdvector_matrix(const MatrixType &m)
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.
Reference counting helper.
Array< int, Dynamic, 1 > v
Transform< double, 3, Affine > Affine3d
void check_stdvector_transform(const TransformType &)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s): 
autogenerated on Wed May 28 2025 03:03:58