Lines Matching full:m1
26 MatrixType m1 = MatrixType::Random(rows, cols), in linearStructure() local
36 VERIFY_IS_APPROX(-(-m1), m1); in linearStructure()
37 VERIFY_IS_APPROX(m1+m1, 2*m1); in linearStructure()
38 VERIFY_IS_APPROX(m1+m2-m1, m2); in linearStructure()
39 VERIFY_IS_APPROX(-m2+m1+m2, m1); in linearStructure()
40 VERIFY_IS_APPROX(m1*s1, s1*m1); in linearStructure()
41 VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2); in linearStructure()
42 VERIFY_IS_APPROX((-m1+m2)*s1, -s1*m1+s1*m2); in linearStructure()
43 m3 = m2; m3 += m1; in linearStructure()
44 VERIFY_IS_APPROX(m3, m1+m2); in linearStructure()
45 m3 = m2; m3 -= m1; in linearStructure()
46 VERIFY_IS_APPROX(m3, m2-m1); in linearStructure()
56 VERIFY_IS_APPROX((-m1)(r,c), -(m1(r,c))); in linearStructure()
57 VERIFY_IS_APPROX((m1-m2)(r,c), (m1(r,c))-(m2(r,c))); in linearStructure()
58 VERIFY_IS_APPROX((m1+m2)(r,c), (m1(r,c))+(m2(r,c))); in linearStructure()
59 VERIFY_IS_APPROX((s1*m1)(r,c), s1*(m1(r,c))); in linearStructure()
60 VERIFY_IS_APPROX((m1*s1)(r,c), (m1(r,c))*s1); in linearStructure()
62 VERIFY_IS_APPROX((m1/s1)(r,c), (m1(r,c))/s1); in linearStructure()
65 VERIFY_IS_APPROX(m1+m1.block(0,0,rows,cols), m1+m1); in linearStructure()
66 VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), m1.cwiseProduct(m1)); in linearStructure()
67 VERIFY_IS_APPROX(m1 - m1.block(0,0,rows,cols), m1 - m1); in linearStructure()
68 VERIFY_IS_APPROX(m1.block(0,0,rows,cols) * s1, m1 * s1); in linearStructure()