Lines Matching refs:m2
15 bool areNotApprox(const MatrixBase<Derived1>& m1, const MatrixBase<Derived2>& m2, typename Derived1::RealScalar epsilon = precision<typename Derived1::RealScalar>())
17 return !((m1-m2).cwise().abs2().maxCoeff() < epsilon * epsilon
18 * std::max(m1.cwise().abs2().maxCoeff(), m2.cwise().abs2().maxCoeff()));
42 m2 = MatrixType::Random(rows, cols),
66 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2));
68 m3 *= m1.transpose() * m2;
69 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2));
70 VERIFY_IS_APPROX(m3, m1.lazy() * (m1.transpose()*m2));
73 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2);
74 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2);
96 VERIFY(areNotApprox(m1.transpose()*m2,m2.transpose()*m1));
101 res += (m1 * m2.transpose()).lazy();
102 VERIFY_IS_APPROX(res, square + m1 * m2.transpose());
105 VERIFY(areNotApprox(res,square + m2 * m1.transpose()));
116 res.row(i) = m1.row(i) * m2.transpose();
117 VERIFY_IS_APPROX(res, m1 * m2.transpose());
120 res.col(i) = m1 * m2.transpose().col(i);
121 VERIFY_IS_APPROX(res, m1 * m2.transpose());
124 res2 += (m1.transpose() * m2).lazy();
125 VERIFY_IS_APPROX(res2, square2 + m1.transpose() * m2);
129 VERIFY(areNotApprox(res2,square2 + m2.transpose() * m1));