Lines Matching refs:mones
35 cwiseops_real_only(MatrixType& m1, MatrixType& m2, MatrixType& m3, MatrixType& mones) in cwiseops_real_only() argument
47 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1); in cwiseops_real_only()
53 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square()); in cwiseops_real_only()
83 mones = MatrixType::Ones(rows, cols), in cwiseops() local
101 VERIFY_IS_APPROX(mones(i,j), Scalar(1)); in cwiseops()
105 VERIFY(mones.isOnes()); in cwiseops()
112 VERIFY_IS_APPROX(m4.setOnes(), mones); in cwiseops()
113 VERIFY_IS_APPROX(m4.setOnes(rows,cols), mones); in cwiseops()
121 m2 = m2.template binaryExpr<AddIfNull<Scalar> >(mones); in cwiseops()
127 VERIFY_IS_APPROX(m1 + mones, m1.cwise()+Scalar(1)); in cwiseops()
128 VERIFY_IS_APPROX(m1 - mones, m1.cwise()-Scalar(1)); in cwiseops()
130 VERIFY_IS_APPROX(m1 + mones, m3); in cwiseops()
132 VERIFY_IS_APPROX(m1 - mones, m3); in cwiseops()
134 VERIFY_IS_APPROX(m2, m2.cwise() * mones); in cwiseops()
140 VERIFY_IS_APPROX(mones, m2.cwise()/m2); in cwiseops()
144 VERIFY_IS_APPROX( m1.cwise().min(m1+mones), m1 ); in cwiseops()
145 VERIFY_IS_APPROX( m1.cwise().min(m1-mones), m1-mones ); in cwiseops()
149 VERIFY_IS_APPROX( m1.cwise().max(m1-mones), m1 ); in cwiseops()
150 VERIFY_IS_APPROX( m1.cwise().max(m1+mones), m1+mones ); in cwiseops()
154 VERIFY(!(m1.cwise() == (m1+mones)).any() ); in cwiseops()
164 VERIFY( (m1.cwise().min(m2).cwise() < (m1+mones)).all() ); in cwiseops()
165 VERIFY( (m1.cwise().max(m2).cwise() > (m1-mones)).all() ); in cwiseops()
171 cwiseops_real_only(m1, m2, m3, mones); in cwiseops()