Lines Matching refs:m2
27 m2 = MatrixType::Random(rows, cols), in linearStructure() local
38 VERIFY_IS_APPROX(m1+m2-m1, m2); in linearStructure()
39 VERIFY_IS_APPROX(-m2+m1+m2, 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()
47 m3 = m2; m3 *= s1; in linearStructure()
48 VERIFY_IS_APPROX(m3, s1*m2); in linearStructure()
51 m3 = m2; m3 /= s1; in linearStructure()
52 VERIFY_IS_APPROX(m3, m2/s1); 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()