Lines Matching refs:m3
33 m3(rows, cols), in cwiseops() local
49 m3 = MatrixType::Constant(rows, cols, s1); in cwiseops()
55 VERIFY_IS_APPROX(m3(i,j), s1); in cwiseops()
59 VERIFY(m3.isConstant(s1)); in cwiseops()
61 VERIFY_IS_APPROX(m4.setConstant(s1), m3); in cwiseops()
62 VERIFY_IS_APPROX(m4.setConstant(rows,cols,s1), m3); in cwiseops()
68 VERIFY_IS_APPROX(m4, m3); in cwiseops()
82 m3 = m1; m3.cwise() += 1; in cwiseops()
83 VERIFY_IS_APPROX(m1 + mones, m3); in cwiseops()
84 m3 = m1; m3.cwise() -= 1; in cwiseops()
85 VERIFY_IS_APPROX(m1 - mones, m3); in cwiseops()
89 m3 = m1; in cwiseops()
90 m3.cwise() *= m2; in cwiseops()
91 VERIFY_IS_APPROX(m3, m1.cwise() * m2); in cwiseops()
97 m3 = m1.cwise().abs().cwise().sqrt(); in cwiseops()
98 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs()); in cwiseops()
103 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1); in cwiseops()
104 VERIFY_IS_APPROX(m3.cwise().pow(-1), m3.cwise().inverse()); in cwiseops()
105 m3 = m1.cwise().abs(); in cwiseops()
106 VERIFY_IS_APPROX(m3.cwise().pow(RealScalar(0.5)), m3.cwise().sqrt()); in cwiseops()
110 m3 = m1; in cwiseops()
111 m3.cwise() /= m2; in cwiseops()
112 VERIFY_IS_APPROX(m3, m1.cwise() / m2); in cwiseops()
130 m3 = m1; in cwiseops()
131 m3(r,c) += 1; in cwiseops()
132 VERIFY( (m1.cwise() == m3).any() ); in cwiseops()
133 VERIFY( !(m1.cwise() == m3).all() ); in cwiseops()