• Home
  • Raw
  • Download

Lines Matching refs:VERIFY_IS_APPROX

27   VERIFY_IS_APPROX(m1, m4);  in array()
36 VERIFY_IS_APPROX(m1 + s1, s1 + m1); in array()
37 VERIFY_IS_APPROX(m1 + s1, ArrayType::Constant(rows,cols,s1) + m1); in array()
38 VERIFY_IS_APPROX(s1 - m1, (-m1)+s1 ); in array()
39 VERIFY_IS_APPROX(m1 - s1, m1 - ArrayType::Constant(rows,cols,s1)); in array()
40 VERIFY_IS_APPROX(s1 - m1, ArrayType::Constant(rows,cols,s1) - m1); in array()
41 VERIFY_IS_APPROX((m1*Scalar(2)) - s2, (m1+m1) - ArrayType::Constant(rows,cols,s2) ); in array()
44 VERIFY_IS_APPROX(m3, m1 + s2); in array()
47 VERIFY_IS_APPROX(m3, m1 - s1); in array()
52 VERIFY_IS_APPROX(m1, m3 - m2); in array()
56 VERIFY_IS_APPROX(m1, m3 + m2); in array()
60 VERIFY_IS_APPROX(m1, m3 * m2); in array()
66 VERIFY_IS_APPROX(m1, m3 / m2); in array()
69 VERIFY_IS_APPROX(m1.abs().colwise().sum().sum(), m1.abs().sum()); in array()
70 VERIFY_IS_APPROX(m1.abs().rowwise().sum().sum(), m1.abs().sum()); in array()
76VERIFY_IS_APPROX(m1.colwise().sum(), m1.colwise().redux(internal::scalar_sum_op<Scalar,Scalar>())); in array()
80 VERIFY_IS_APPROX(m3.colwise() += cv1, m1.colwise() + cv1); in array()
82 VERIFY_IS_APPROX(m3.colwise() -= cv1, m1.colwise() - cv1); in array()
84 VERIFY_IS_APPROX(m3.rowwise() += rv1, m1.rowwise() + rv1); in array()
86 VERIFY_IS_APPROX(m3.rowwise() -= rv1, m1.rowwise() - rv1); in array()
89 VERIFY_IS_APPROX((m3 = s1), ArrayType::Constant(rows,cols,s1)); in array()
90 VERIFY_IS_APPROX((m3 = 1), ArrayType::Constant(rows,cols,1)); in array()
91 VERIFY_IS_APPROX((m3.topLeftCorner(rows,cols) = 1), ArrayType::Constant(rows,cols,1)); in array()
97 VERIFY_IS_APPROX(f1, FixedArrayType::Constant(s1)); in array()
99 VERIFY_IS_APPROX(f2, FixedArrayType::Constant(numext::real(s1))); in array()
101 VERIFY_IS_APPROX(f3, FixedArrayType::Constant((int)100*numext::real(s1))); in array()
104 VERIFY_IS_APPROX(f4, f1); in array()
107 VERIFY_IS_APPROX(m1.pow(2), m1.square()); in array()
108 VERIFY_IS_APPROX(pow(m1,2), m1.square()); in array()
109 VERIFY_IS_APPROX(m1.pow(3), m1.cube()); in array()
110 VERIFY_IS_APPROX(pow(m1,3), m1.cube()); in array()
111 VERIFY_IS_APPROX((-m1).pow(3), -m1.cube()); in array()
112 VERIFY_IS_APPROX(pow(2*m1,3), 8*m1.cube()); in array()
114 VERIFY_IS_APPROX(Eigen::pow(m1,exponents), m1.square()); in array()
115 VERIFY_IS_APPROX(m1.pow(exponents), m1.square()); in array()
116 VERIFY_IS_APPROX(Eigen::pow(2*m1,exponents), 4*m1.square()); in array()
117 VERIFY_IS_APPROX((2*m1).pow(exponents), 4*m1.square()); in array()
118 VERIFY_IS_APPROX(Eigen::pow(m1,2*exponents), m1.square().square()); in array()
119 VERIFY_IS_APPROX(m1.pow(2*exponents), m1.square().square()); in array()
120 VERIFY_IS_APPROX(Eigen::pow(m1(0,0), exponents), ArrayType::Constant(rows,cols,m1(0,0)*m1(0,0))); in array()
175 VERIFY_IS_APPROX( (m1<m2).select(m1,m2), m1.cwiseMin(m2) ); in comparisons()
176 VERIFY_IS_APPROX( (m1>m2).select(m1,m2), m1.cwiseMax(m2) ); in comparisons()
181 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
184 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
186 VERIFY_IS_APPROX( (m1.abs()>=ArrayType::Constant(rows,cols,mid)) in comparisons()
189 VERIFY_IS_APPROX( (m1.abs()<mid).select(0,m1), m3); in comparisons()
203VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,r… in comparisons()
204VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).rowwise().count(), ArrayOfIndices::Constant(rows, … in comparisons()
228 VERIFY_IS_APPROX(m1.sin(), sin(m1)); in array_real()
229 VERIFY_IS_APPROX(m1.cos(), cos(m1)); in array_real()
230 VERIFY_IS_APPROX(m1.tan(), tan(m1)); in array_real()
231 VERIFY_IS_APPROX(m1.asin(), asin(m1)); in array_real()
232 VERIFY_IS_APPROX(m1.acos(), acos(m1)); in array_real()
233 VERIFY_IS_APPROX(m1.atan(), atan(m1)); in array_real()
234 VERIFY_IS_APPROX(m1.sinh(), sinh(m1)); in array_real()
235 VERIFY_IS_APPROX(m1.cosh(), cosh(m1)); in array_real()
236 VERIFY_IS_APPROX(m1.tanh(), tanh(m1)); in array_real()
238 VERIFY_IS_APPROX(m1.arg(), arg(m1)); in array_real()
239 VERIFY_IS_APPROX(m1.round(), round(m1)); in array_real()
240 VERIFY_IS_APPROX(m1.floor(), floor(m1)); in array_real()
241 VERIFY_IS_APPROX(m1.ceil(), ceil(m1)); in array_real()
245 VERIFY_IS_APPROX(m1.inverse(), inverse(m1)); in array_real()
246 VERIFY_IS_APPROX(m1.abs(), abs(m1)); in array_real()
247 VERIFY_IS_APPROX(m1.abs2(), abs2(m1)); in array_real()
248 VERIFY_IS_APPROX(m1.square(), square(m1)); in array_real()
249 VERIFY_IS_APPROX(m1.cube(), cube(m1)); in array_real()
250 VERIFY_IS_APPROX(cos(m1+RealScalar(3)*m2), cos((m1+RealScalar(3)*m2).eval())); in array_real()
251 VERIFY_IS_APPROX(m1.sign(), sign(m1)); in array_real()
256 VERIFY_IS_APPROX(m3.sqrt(), sqrt(abs(m1))); in array_real()
257 VERIFY_IS_APPROX(m3.rsqrt(), Scalar(1)/sqrt(abs(m1))); in array_real()
258 VERIFY_IS_APPROX(rsqrt(m3), Scalar(1)/sqrt(abs(m1))); in array_real()
259 VERIFY_IS_APPROX(m3.log(), log(m3)); in array_real()
260 VERIFY_IS_APPROX(m3.log1p(), log1p(m3)); in array_real()
261 VERIFY_IS_APPROX(m3.log10(), log10(m3)); in array_real()
266 VERIFY_IS_APPROX(sin(m1.asin()), m1); in array_real()
267 VERIFY_IS_APPROX(cos(m1.acos()), m1); in array_real()
268 VERIFY_IS_APPROX(tan(m1.atan()), m1); in array_real()
269 VERIFY_IS_APPROX(sinh(m1), 0.5*(exp(m1)-exp(-m1))); in array_real()
270 VERIFY_IS_APPROX(cosh(m1), 0.5*(exp(m1)+exp(-m1))); in array_real()
271 VERIFY_IS_APPROX(tanh(m1), (0.5*(exp(m1)-exp(-m1)))/(0.5*(exp(m1)+exp(-m1)))); in array_real()
272 VERIFY_IS_APPROX(arg(m1), ((m1<0).template cast<Scalar>())*std::acos(-1.0)); in array_real()
277 VERIFY_IS_APPROX(inverse(inverse(m1)),m1); in array_real()
279 VERIFY_IS_APPROX(m3, sqrt(abs2(m1))); in array_real()
280 VERIFY_IS_APPROX( m1.sign(), -(-m1).sign() ); in array_real()
281 VERIFY_IS_APPROX( m1*m1.sign(),m1.abs()); in array_real()
282 VERIFY_IS_APPROX(m1.sign() * m1.abs(), m1); in array_real()
284VERIFY_IS_APPROX(numext::abs2(numext::real(m1)) + numext::abs2(numext::imag(m1)), numext::abs2(m1)… in array_real()
285 VERIFY_IS_APPROX(numext::abs2(real(m1)) + numext::abs2(imag(m1)), numext::abs2(m1)); in array_real()
287 VERIFY_IS_APPROX(numext::real(m1), m1); in array_real()
291 VERIFY_IS_APPROX((m3 + smallNumber).log() , log(abs(m1) + smallNumber)); in array_real()
292 VERIFY_IS_APPROX((m3 + smallNumber + 1).log() , log1p(abs(m1) + smallNumber)); in array_real()
294 VERIFY_IS_APPROX(m1.exp() * m2.exp(), exp(m1+m2)); in array_real()
295 VERIFY_IS_APPROX(m1.exp(), exp(m1)); in array_real()
296 VERIFY_IS_APPROX(m1.exp() / m2.exp(),(m1-m2).exp()); in array_real()
298 VERIFY_IS_APPROX(m3.pow(RealScalar(0.5)), m3.sqrt()); in array_real()
299 VERIFY_IS_APPROX(pow(m3,RealScalar(0.5)), m3.sqrt()); in array_real()
301 VERIFY_IS_APPROX(m3.pow(RealScalar(-0.5)), m3.rsqrt()); in array_real()
302 VERIFY_IS_APPROX(pow(m3,RealScalar(-0.5)), m3.rsqrt()); in array_real()
304 VERIFY_IS_APPROX(log10(m3), log(m3)/log(10)); in array_real()
310 VERIFY_IS_APPROX(s1/m1, s1 * m1.inverse()); in array_real()
315 VERIFY_IS_APPROX(m3, m1.transpose()); in array_real()
317 VERIFY_IS_APPROX(m3, m1); in array_real()
343 VERIFY_IS_APPROX(m1.sin(), sin(m1)); in array_complex()
344 VERIFY_IS_APPROX(m1.cos(), cos(m1)); in array_complex()
345 VERIFY_IS_APPROX(m1.tan(), tan(m1)); in array_complex()
346 VERIFY_IS_APPROX(m1.sinh(), sinh(m1)); in array_complex()
347 VERIFY_IS_APPROX(m1.cosh(), cosh(m1)); in array_complex()
348 VERIFY_IS_APPROX(m1.tanh(), tanh(m1)); in array_complex()
349 VERIFY_IS_APPROX(m1.arg(), arg(m1)); in array_complex()
353 VERIFY_IS_APPROX(m1.inverse(), inverse(m1)); in array_complex()
354 VERIFY_IS_APPROX(m1.log(), log(m1)); in array_complex()
355 VERIFY_IS_APPROX(m1.log10(), log10(m1)); in array_complex()
356 VERIFY_IS_APPROX(m1.abs(), abs(m1)); in array_complex()
357 VERIFY_IS_APPROX(m1.abs2(), abs2(m1)); in array_complex()
358 VERIFY_IS_APPROX(m1.sqrt(), sqrt(m1)); in array_complex()
359 VERIFY_IS_APPROX(m1.square(), square(m1)); in array_complex()
360 VERIFY_IS_APPROX(m1.cube(), cube(m1)); in array_complex()
361 VERIFY_IS_APPROX(cos(m1+RealScalar(3)*m2), cos((m1+RealScalar(3)*m2).eval())); in array_complex()
362 VERIFY_IS_APPROX(m1.sign(), sign(m1)); in array_complex()
365 VERIFY_IS_APPROX(m1.exp() * m2.exp(), exp(m1+m2)); in array_complex()
366 VERIFY_IS_APPROX(m1.exp(), exp(m1)); in array_complex()
367 VERIFY_IS_APPROX(m1.exp() / m2.exp(),(m1-m2).exp()); in array_complex()
369 VERIFY_IS_APPROX(sinh(m1), 0.5*(exp(m1)-exp(-m1))); in array_complex()
370 VERIFY_IS_APPROX(cosh(m1), 0.5*(exp(m1)+exp(-m1))); in array_complex()
371 VERIFY_IS_APPROX(tanh(m1), (0.5*(exp(m1)-exp(-m1)))/(0.5*(exp(m1)+exp(-m1)))); in array_complex()
376 VERIFY_IS_APPROX(arg(m1), m3); in array_complex()
400 VERIFY_IS_APPROX(inverse(inverse(m1)),m1); in array_complex()
401 VERIFY_IS_APPROX(conj(m1.conjugate()), m1); in array_complex()
402 VERIFY_IS_APPROX(abs(m1), sqrt(square(real(m1))+square(imag(m1)))); in array_complex()
403 VERIFY_IS_APPROX(abs(m1), sqrt(abs2(m1))); in array_complex()
404 VERIFY_IS_APPROX(log10(m1), log(m1)/log(10)); in array_complex()
406 VERIFY_IS_APPROX( m1.sign(), -(-m1).sign() ); in array_complex()
407 VERIFY_IS_APPROX( m1.sign() * m1.abs(), m1); in array_complex()
414 VERIFY_IS_APPROX(s1/m1, s1 * m1.inverse()); in array_complex()
419 VERIFY_IS_APPROX(m2, m1.transpose()); in array_complex()
421 VERIFY_IS_APPROX(m2, m1); in array_complex()
439VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)(ArrayType::Constant(rows,cols, mi… in min_max()
440 VERIFY_IS_APPROX(m1, (m1.min)(ArrayType::Constant(rows,cols, maxM1))); in min_max()
442VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)(ArrayType::Constant(rows,cols, ma… in min_max()
443 VERIFY_IS_APPROX(m1, (m1.max)(ArrayType::Constant(rows,cols, minM1))); in min_max()
446 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)( minM1)); in min_max()
447 VERIFY_IS_APPROX(m1, (m1.min)( maxM1)); in min_max()
449 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)( maxM1)); in min_max()
450 VERIFY_IS_APPROX(m1, (m1.max)( minM1)); in min_max()