Home | History | Annotate | Download | only in test

Lines Matching full:mones

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