Lines Matching refs:mones
36 mones = MatrixType::Ones(rows, cols), in cwiseops() local
54 VERIFY_IS_APPROX(mones(i,j), Scalar(1)); in cwiseops()
58 VERIFY(mones.isOnes()); in cwiseops()
65 VERIFY_IS_APPROX(m4.setOnes(), mones); in cwiseops()
66 VERIFY_IS_APPROX(m4.setOnes(rows,cols), mones); in cwiseops()
74 m2 = m2.template binaryExpr<AddIfNull<Scalar> >(mones); in cwiseops()
80 VERIFY_IS_APPROX(m1 + mones, m1.cwise()+Scalar(1)); in cwiseops()
81 VERIFY_IS_APPROX(m1 - mones, m1.cwise()-Scalar(1)); in cwiseops()
83 VERIFY_IS_APPROX(m1 + mones, m3); in cwiseops()
85 VERIFY_IS_APPROX(m1 - mones, m3); in cwiseops()
87 VERIFY_IS_APPROX(m2, m2.cwise() * mones); in cwiseops()
93 VERIFY_IS_APPROX(mones, m2.cwise()/m2); in cwiseops()
103 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1); in cwiseops()
109 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square()); in cwiseops()
117 VERIFY_IS_APPROX( m1.cwise().min(m1+mones), m1 ); in cwiseops()
118 VERIFY_IS_APPROX( m1.cwise().min(m1-mones), m1-mones ); in cwiseops()
122 VERIFY_IS_APPROX( m1.cwise().max(m1-mones), m1 ); in cwiseops()
123 VERIFY_IS_APPROX( m1.cwise().max(m1+mones), m1+mones ); in cwiseops()
127 VERIFY(!(m1.cwise() == (m1+mones)).any() ); in cwiseops()
137 VERIFY( (m1.cwise().min(m2).cwise() < (m1+mones)).all() ); in cwiseops()
138 VERIFY( (m1.cwise().max(m2).cwise() > (m1-mones)).all() ); in cwiseops()