Lines Matching full:m1
14 bool areNotApprox(const MatrixBase<Derived1>& m1, const MatrixBase<Derived2>& m2, typename Derived1…
16 return !((m1-m2).cwiseAbs2().maxCoeff() < epsilon * epsilon
17 * (std::max)(m1.cwiseAbs2().maxCoeff(), m2.cwiseAbs2().maxCoeff()));
39 MatrixType m1 = MatrixType::Random(rows, cols), in product() local
51 OtherMajorMatrixType tm1 = m1; in product()
61 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); in product()
62 m3 = m1; in product()
63 m3 *= m1.transpose() * m2; in product()
64 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
65 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
68 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2); in product()
69 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2); in product()
72 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1); in product()
73 VERIFY_IS_APPROX(s1*(square*m1), square*(m1*s1)); in product()
82 VERIFY_RAISES_ASSERT(m3 = m1*m1); in product()
88 VERIFY(areNotApprox(m1.transpose()*m2,m2.transpose()*m1)); in product()
93 res.noalias() += m1 * m2.transpose(); in product()
94 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
97 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
100 vcres.noalias() += m1.transpose() * v1; in product()
101 VERIFY_IS_APPROX(vcres, vc2 + m1.transpose() * v1); in product()
105 res.noalias() -= m1 * m2.transpose(); in product()
106 VERIFY_IS_APPROX(res, square - (m1 * m2.transpose())); in product()
109 VERIFY(areNotApprox(res,square - m2 * m1.transpose())); in product()
112 vcres.noalias() -= m1.transpose() * v1; in product()
113 VERIFY_IS_APPROX(vcres, vc2 - m1.transpose() * v1); in product()
115 tm1 = m1; in product()
116 VERIFY_IS_APPROX(tm1.transpose() * v1, m1.transpose() * v1); in product()
117 VERIFY_IS_APPROX(v1.transpose() * tm1, v1.transpose() * m1); in product()
121 res.row(i) = m1.row(i) * m2.transpose(); in product()
122 VERIFY_IS_APPROX(res, m1 * m2.transpose()); in product()
125 res.col(i) = m1 * m2.transpose().col(i); in product()
126 VERIFY_IS_APPROX(res, m1 * m2.transpose()); in product()
129 res2.noalias() += m1.transpose() * m2; in product()
130 VERIFY_IS_APPROX(res2, square2 + m1.transpose() * m2); in product()
133 VERIFY(areNotApprox(res2,square2 + m2.transpose() * m1)); in product()
144 VERIFY_IS_APPROX(m1.col(c) * m1.row(r), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
145 …VERIFY_IS_APPROX(m1.row(r).transpose() * m1.col(c).transpose(), m1.block(r,0,1,cols).transpose() *… in product()
146 VERIFY_IS_APPROX(m1.block(0,c,rows,1) * m1.row(r), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
147 VERIFY_IS_APPROX(m1.col(c) * m1.block(r,0,1,cols), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
148 VERIFY_IS_APPROX(m1.leftCols(1) * m1.row(r), m1.block(0,0,rows,1) * m1.block(r,0,1,cols)); in product()
149 VERIFY_IS_APPROX(m1.col(c) * m1.topRows(1), m1.block(0,c,rows,1) * m1.block(0,0,1,cols)); in product()