mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +08:00
"forgot to commit the required changes in stdvector unit test"
This commit is contained in:
parent
95bda5e6ab
commit
469b8aa380
@ -32,7 +32,7 @@ void check_stdvector_matrix(const MatrixType& m)
|
|||||||
int rows = m.rows();
|
int rows = m.rows();
|
||||||
int cols = m.cols();
|
int cols = m.cols();
|
||||||
MatrixType x = MatrixType::Random(rows,cols), y = MatrixType::Random(rows,cols);
|
MatrixType x = MatrixType::Random(rows,cols), y = MatrixType::Random(rows,cols);
|
||||||
std::vector<MatrixType> v(10, MatrixType(rows,cols)), w(20, y);
|
std::vector<MatrixType,Eigen::aligned_allocator<MatrixType> > v(10, MatrixType(rows,cols)), w(20, y);
|
||||||
v[5] = x;
|
v[5] = x;
|
||||||
w[6] = v[5];
|
w[6] = v[5];
|
||||||
VERIFY_IS_APPROX(w[6], v[5]);
|
VERIFY_IS_APPROX(w[6], v[5]);
|
||||||
@ -67,7 +67,7 @@ void check_stdvector_transform(const TransformType&)
|
|||||||
{
|
{
|
||||||
typedef typename TransformType::MatrixType MatrixType;
|
typedef typename TransformType::MatrixType MatrixType;
|
||||||
TransformType x(MatrixType::Random()), y(MatrixType::Random());
|
TransformType x(MatrixType::Random()), y(MatrixType::Random());
|
||||||
std::vector<TransformType> v(10), w(20, y);
|
std::vector<TransformType,Eigen::aligned_allocator<TransformType> > v(10), w(20, y);
|
||||||
v[5] = x;
|
v[5] = x;
|
||||||
w[6] = v[5];
|
w[6] = v[5];
|
||||||
VERIFY_IS_APPROX(w[6], v[5]);
|
VERIFY_IS_APPROX(w[6], v[5]);
|
||||||
@ -102,7 +102,7 @@ void check_stdvector_quaternion(const QuaternionType&)
|
|||||||
{
|
{
|
||||||
typedef typename QuaternionType::Coefficients Coefficients;
|
typedef typename QuaternionType::Coefficients Coefficients;
|
||||||
QuaternionType x(Coefficients::Random()), y(Coefficients::Random());
|
QuaternionType x(Coefficients::Random()), y(Coefficients::Random());
|
||||||
std::vector<QuaternionType> v(10), w(20, y);
|
std::vector<QuaternionType,Eigen::aligned_allocator<QuaternionType> > v(10), w(20, y);
|
||||||
v[5] = x;
|
v[5] = x;
|
||||||
w[6] = v[5];
|
w[6] = v[5];
|
||||||
VERIFY_IS_APPROX(w[6], v[5]);
|
VERIFY_IS_APPROX(w[6], v[5]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user