Lines Matching refs:abs
66 VERIFY_IS_APPROX(m1.abs().colwise().sum().sum(), m1.abs().sum()); in array()
67 VERIFY_IS_APPROX(m1.abs().rowwise().sum().sum(), m1.abs().sum()); in array()
68 using std::abs; in array()
69 VERIFY_IS_MUCH_SMALLER_THAN(abs(m1.colwise().sum().sum() - m1.sum()), m1.abs().sum()); in array()
70 VERIFY_IS_MUCH_SMALLER_THAN(abs(m1.rowwise().sum().sum() - m1.sum()), m1.abs().sum()); in array()
71 …if (!internal::isMuchSmallerThan(abs(m1.sum() - (m1+m2).sum()), m1.abs().sum(), test_precision<Sca… in array()
88 using std::abs; in comparisons()
125 m3(i,j) = abs(m1(i,j))<mid ? 0 : m1(i,j); in comparisons()
126 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
129 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
131 VERIFY_IS_APPROX( (m1.abs()>=ArrayType::Constant(rows,cols,mid)) in comparisons()
134 VERIFY_IS_APPROX( (m1.abs()<mid).select(0,m1), m3); in comparisons()
137 VERIFY(((m1.abs()+1)>RealScalar(0.1)).count() == rows*cols); in comparisons()
142 RealScalar a = m1.abs().mean(); in comparisons()
143 VERIFY( (m1<-a || m1>a).count() == (m1.abs()>a).count()); in comparisons()
148 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,r… in comparisons()
149 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).rowwise().count(), ArrayOfIndices::Constant(rows, … in comparisons()
154 using std::abs; in array_real()
178 VERIFY_IS_APPROX(m1.abs().sqrt(), sqrt(abs(m1))); in array_real()
179 VERIFY_IS_APPROX(m1.abs(), sqrt(numext::abs2(m1))); in array_real()
188 VERIFY_IS_APPROX((m1.abs() + smallNumber).log() , log(abs(m1) + smallNumber)); in array_real()
200 m3 = m1.abs(); in array_real()