15 using namespace Eigen;
17 template <
typename Scalar,
int Storage>
25 m =
n = MatrixType::Random(50,50);
26 m.conservativeResize(1,50);
29 m =
n = MatrixType::Random(50,50);
30 m.conservativeResize(50,1);
33 m =
n = MatrixType::Random(50,50);
34 m.conservativeResize(50,50);
38 for (
int i=0;
i<25; ++
i)
40 const Index rows = internal::random<Index>(1,50);
41 const Index cols = internal::random<Index>(1,50);
42 m =
n = MatrixType::Random(50,50);
48 for (
int i=0;
i<25; ++
i)
50 const Index rows = internal::random<Index>(50,75);
51 const Index cols = internal::random<Index>(50,75);
52 m =
n = MatrixType::Random(50,50);
53 m.conservativeResizeLike(MatrixType::Zero(
rows,
cols));
60 template <
typename Scalar>
68 m =
n = VectorType::Random(50);
69 m.conservativeResize(1);
72 m =
n = VectorType::Random(50);
73 m.conservativeResize(50);
76 m =
n = VectorType::Random(50);
77 m.conservativeResize(
m.rows(),1);
80 m =
n = VectorType::Random(50);
81 m.conservativeResize(
m.rows(),50);
85 for (
int i=0;
i<50; ++
i)
87 const int size = internal::random<int>(1,50);
88 m =
n = VectorType::Random(50);
89 m.conservativeResize(
size);
92 m =
n = VectorType::Random(50);
93 m.conservativeResize(
m.rows(),
size);
98 for (
int i=0;
i<50; ++
i)
100 const int size = internal::random<int>(50,100);
101 m =
n = VectorType::Random(50);
102 m.conservativeResizeLike(VectorType::Zero(
size));
106 m =
n = VectorType::Random(50);
120 #ifndef EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW
126 v0.setOnes();
v1.setOnes();
127 m0.setOnes();
m1.setOnes();
m2.setOnes();
129 m0.conservativeResize(2*
n,2*
n);
133 v0.conservativeResize(2*
n);
153 CALL_SUBTEST_1((run_matrix_tests<int, Eigen::RowMajor | Eigen::DontAlign>()));
161 #ifndef EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW