10 #define EIGEN_NO_STATIC_ASSERT
17 template<
typename Vec,
typename Mat,
typename Scalar>
28 template<
typename Vec,
typename Mat,
typename Scalar>
48 #if (!EIGEN_ARCH_i386) || defined(EIGEN_VECTORIZE)
50 VERIFY( (
v1*very_small).norm() == 0 );
87 v2 = VectorType::Random(
rows),
88 v3 = VectorType::Random(
rows),
89 vzero = VectorType::Zero(
rows);
91 Scalar s1 = internal::random<Scalar>(),
92 s2 = internal::random<Scalar>();
111 Index r = internal::random<Index>(0,
rows-1),
112 c = internal::random<Index>(0,
cols-1);
118 m3.transposeInPlace();
120 m3.transposeInPlace();
123 if(PacketSize<
m3.rows() && PacketSize<
m3.cols())
126 Index i = internal::random<Index>(0,
m3.rows()-PacketSize);
127 Index j = internal::random<Index>(0,
m3.cols()-PacketSize);
128 m3.template block<PacketSize,PacketSize>(
i,
j).transposeInPlace();
129 VERIFY_IS_APPROX( (
m3.template block<PacketSize,PacketSize>(
i,
j)), (
m1.template block<PacketSize,PacketSize>(
i,
j).transpose()) );
130 m3.template block<PacketSize,PacketSize>(
i,
j).transposeInPlace();
138 m3.transposeInPlace();
143 RealVectorType rv1 = RealVectorType::Random(
rows);
154 MatrixXcf
a(10,10),
b(10,10);
164 a.transpose() =
a.transpose();
165 a.transpose() +=
a.transpose();
166 a.transpose() +=
a.transpose() +
b;
167 a.transpose() =
a.adjoint();
168 a.transpose() +=
a.adjoint();
169 a.transpose() +=
a.adjoint() +
b;
173 c = 1.0 * MatrixXd::Ones(10,10) +
c;
174 c = MatrixXd::Ones(10,10) * 1.0 +
c;
175 c =
c + MatrixXd::Ones(10,10) .cwiseProduct( MatrixXd::Zero(10,10) );
176 c = MatrixXd::Ones(10,10) * MatrixXd::Zero(10,10);
179 for (
int j = 0;
j < 10; ++
j) {
180 c.col(
j).head(
j) =
c.row(
j).head(
j);
183 for (
int j = 0;
j < 10; ++
j) {
187 a.conservativeResize(1,1);
190 a.conservativeResize(0,0);