• Home
  • Raw
  • Download

Lines Matching refs:m1

15 bool areNotApprox(const MatrixBase<Derived1>& m1, const MatrixBase<Derived2>& m2, typename Derived1…
17 return !((m1-m2).cwise().abs2().maxCoeff() < epsilon * epsilon
18 * std::max(m1.cwise().abs2().maxCoeff(), m2.cwise().abs2().maxCoeff()));
41 MatrixType m1 = MatrixType::Random(rows, cols), in product() local
56 OtherMajorMatrixType tm1 = m1; in product()
66 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); in product()
67 m3 = m1; in product()
68 m3 *= m1.transpose() * m2; in product()
69 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
70 VERIFY_IS_APPROX(m3, m1.lazy() * (m1.transpose()*m2)); in product()
73 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2); in product()
74 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2); in product()
77 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1); in product()
78 VERIFY_IS_APPROX(s1*(square*m1), square*(m1*s1)); in product()
81 s1 += (square.lazy() * m1)(r,c); in product()
90 VERIFY_RAISES_ASSERT(m3 = m1*m1); in product()
96 VERIFY(areNotApprox(m1.transpose()*m2,m2.transpose()*m1)); in product()
101 res += (m1 * m2.transpose()).lazy(); in product()
102 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
105 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
108 vcres += (m1.transpose() * v1).lazy(); in product()
109 VERIFY_IS_APPROX(vcres, vc2 + m1.transpose() * v1); in product()
110 tm1 = m1; in product()
111 VERIFY_IS_APPROX(tm1.transpose() * v1, m1.transpose() * v1); in product()
112 VERIFY_IS_APPROX(v1.transpose() * tm1, v1.transpose() * m1); in product()
116 res.row(i) = m1.row(i) * m2.transpose(); in product()
117 VERIFY_IS_APPROX(res, m1 * m2.transpose()); in product()
120 res.col(i) = m1 * m2.transpose().col(i); in product()
121 VERIFY_IS_APPROX(res, m1 * m2.transpose()); in product()
124 res2 += (m1.transpose() * m2).lazy(); in product()
125 VERIFY_IS_APPROX(res2, square2 + m1.transpose() * m2); in product()
129 VERIFY(areNotApprox(res2,square2 + m2.transpose() * m1)); in product()