Searched refs:VERIFY_IS_APPROX (Results 1 - 25 of 135) sorted by relevance

123456

/external/eigen/unsupported/test/
H A Dkronecker_product.cpp32 VERIFY_IS_APPROX(ab.coeff(0,0), -0.4017367630386106);
33 VERIFY_IS_APPROX(ab.coeff(0,1), 0.1056863433932735);
34 VERIFY_IS_APPROX(ab.coeff(0,2), -0.7255206194554212);
35 VERIFY_IS_APPROX(ab.coeff(0,3), 0.1908653336744706);
36 VERIFY_IS_APPROX(ab.coeff(0,4), 0.350864567234111);
37 VERIFY_IS_APPROX(ab.coeff(0,5), -0.0923032108308013);
38 VERIFY_IS_APPROX(ab.coeff(1,0), 0.415417514804677);
39 VERIFY_IS_APPROX(ab.coeff(1,1), -0.2369227701722048);
40 VERIFY_IS_APPROX(ab.coeff(1,2), 0.7502275131458511);
41 VERIFY_IS_APPROX(a
[all...]
H A Dalignedvector3.cpp26 VERIFY_IS_APPROX(f1,r1);
27 VERIFY_IS_APPROX(f4,r4);
29 VERIFY_IS_APPROX(f4+f1,r4+r1);
30 VERIFY_IS_APPROX(f4-f1,r4-r1);
31 VERIFY_IS_APPROX(f4+f1-f2,r4+r1-r2);
32 VERIFY_IS_APPROX(f4+=f3,r4+=r3);
33 VERIFY_IS_APPROX(f4-=f5,r4-=r5);
34 VERIFY_IS_APPROX(f4-=f5+f1,r4-=r5+r1);
35 VERIFY_IS_APPROX(f5+f1-s1*f2,r5+r1-s1*r2);
36 VERIFY_IS_APPROX(f
[all...]
/external/eigen/test/
H A Dmixingtypes.cpp61 VERIFY_IS_APPROX(vcf * sf , vcf * complex<float>(sf));
62 VERIFY_IS_APPROX(sd * vcd, complex<double>(sd) * vcd);
63 VERIFY_IS_APPROX(vf * scf , vf.template cast<complex<float> >() * scf);
64 VERIFY_IS_APPROX(scd * vd, scd * vd.template cast<complex<double> >());
71 VERIFY_IS_APPROX(vcf.dot(vf), vcf.dot(vf.template cast<complex<float> >()));
74 VERIFY_IS_APPROX(vf.asDiagonal() * mcf, vf.template cast<complex<float> >().asDiagonal() * mcf);
75 VERIFY_IS_APPROX(vcd.asDiagonal() * md, vcd.asDiagonal() * md.template cast<complex<double> >());
76 VERIFY_IS_APPROX(mcf * vf.asDiagonal(), mcf * vf.template cast<complex<float> >().asDiagonal());
77 VERIFY_IS_APPROX(md * vcd.asDiagonal(), md.template cast<complex<double> >() * vcd.asDiagonal());
82 VERIFY_IS_APPROX((v
[all...]
H A Dsparse_vector.cpp54 VERIFY_IS_APPROX(v1, refV1);
58 VERIFY_IS_APPROX(v1, refV1);
60 VERIFY_IS_APPROX(v1+v2, refV1+refV2);
61 VERIFY_IS_APPROX(v1+v2+v3, refV1+refV2+refV3);
63 VERIFY_IS_APPROX(v1*s1-v2, refV1*s1-refV2);
65 VERIFY_IS_APPROX(v1*=s1, refV1*=s1);
66 VERIFY_IS_APPROX(v1/=s1, refV1/=s1);
68 VERIFY_IS_APPROX(v1+=v2, refV1+=refV2);
69 VERIFY_IS_APPROX(v1-=v2, refV1-=refV2);
71 VERIFY_IS_APPROX(v
[all...]
H A Dlinearstructure.cpp36 VERIFY_IS_APPROX(-(-m1), m1);
37 VERIFY_IS_APPROX(m1+m1, 2*m1);
38 VERIFY_IS_APPROX(m1+m2-m1, m2);
39 VERIFY_IS_APPROX(-m2+m1+m2, m1);
40 VERIFY_IS_APPROX(m1*s1, s1*m1);
41 VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2);
42 VERIFY_IS_APPROX((-m1+m2)*s1, -s1*m1+s1*m2);
44 VERIFY_IS_APPROX(m3, m1+m2);
46 VERIFY_IS_APPROX(m3, m2-m1);
48 VERIFY_IS_APPROX(m
[all...]
H A Dcwiseop.cpp40 VERIFY_IS_APPROX(m1.cwise() / m2, m1.cwise() * (m2.cwise().inverse()));
42 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs());
43 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs());
44 VERIFY_IS_APPROX(m1.cwise().abs().cwise().log().cwise().exp() , m1.cwise().abs());
46 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square());
48 VERIFY_IS_APPROX(m3.cwise().pow(-1), m3.cwise().inverse());
50 VERIFY_IS_APPROX(m3.cwise().pow(RealScalar(0.5)), m3.cwise().sqrt());
52 // VERIFY_IS_APPROX(m1.cwise().tan(), m1.cwise().sin().cwise() / m1.cwise().cos());
53 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square());
56 VERIFY_IS_APPROX(m
[all...]
H A Dsmallvectors.cpp26 VERIFY_IS_APPROX(x1, v2.x());
27 VERIFY_IS_APPROX(x1, v3.x());
28 VERIFY_IS_APPROX(x1, v4.x());
29 VERIFY_IS_APPROX(x2, v2.y());
30 VERIFY_IS_APPROX(x2, v3.y());
31 VERIFY_IS_APPROX(x2, v4.y());
32 VERIFY_IS_APPROX(x3, v3.z());
33 VERIFY_IS_APPROX(x3, v4.z());
34 VERIFY_IS_APPROX(x4, v4.w());
H A Dcommainitializer.cpp28 VERIFY_IS_APPROX(m3, ref );
36 VERIFY_IS_APPROX(m3, ref);
45 VERIFY_IS_APPROX(m3, ref);
H A Dgeo_alignedbox.cpp55 VERIFY_IS_APPROX(b2.clamp(b0), b0);
97 VERIFY_IS_APPROX(hp1f.template cast<Scalar>(),b0);
99 VERIFY_IS_APPROX(hp1d.template cast<Scalar>(),b0);
112 VERIFY_IS_APPROX(sides, box.sizes() );
113 VERIFY_IS_APPROX(sides[1], box.sizes()[1] );
114 VERIFY_IS_APPROX(sides[1], box.sizes().maxCoeff() );
115 VERIFY_IS_APPROX(sides[0], box.sizes().minCoeff() );
117 VERIFY_IS_APPROX( 14.0f, box.volume() );
118 VERIFY_IS_APPROX( 53.0f, box.diagonal().squaredNorm() );
119 VERIFY_IS_APPROX( st
[all...]
H A Dgeo_transformations.cpp39 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity());
46 VERIFY_IS_APPROX( (t0 * Vector3(1,0,0)).template head<3>().norm(), v0.x());
61 VERIFY_IS_APPROX(t1.matrix(), t0.matrix());
62 VERIFY_IS_APPROX(t1*v1, t0*v1);
67 VERIFY_IS_APPROX((t0 * v1).template head<3>(), Translation3(v0) * v1);
72 VERIFY_IS_APPROX((t0 * v1).template head<3>(), AlignedScaling3(v0) * v1);
108 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0);
109 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(M_PI), v0.unitOrthogonal()) * v0);
112 VERIFY_IS_APPROX(cos(a)*v0.squaredNorm(), v0.dot(AngleAxisx(a, v0.unitOrthogonal()) * v0));
115 VERIFY_IS_APPROX(Matrix
[all...]
H A Dvectorwiseop.cpp37 VERIFY_IS_APPROX(m2, m1.colwise() + colvec);
38 VERIFY_IS_APPROX(m2.col(c), m1.col(c) + colvec);
45 VERIFY_IS_APPROX(m2, m1.rowwise() + rowvec);
46 VERIFY_IS_APPROX(m2.row(r), m1.row(r) + rowvec);
55 VERIFY_IS_APPROX(m2, m1.colwise() - colvec);
56 VERIFY_IS_APPROX(m2.col(c), m1.col(c) - colvec);
63 VERIFY_IS_APPROX(m2, m1.rowwise() - rowvec);
64 VERIFY_IS_APPROX(m2.row(r), m1.row(r) - rowvec);
73 VERIFY_IS_APPROX(m2, m1.colwise() * colvec);
74 VERIFY_IS_APPROX(m
[all...]
H A Darray.cpp33 VERIFY_IS_APPROX(m1 + s1, s1 + m1);
34 VERIFY_IS_APPROX(m1 + s1, ArrayType::Constant(rows,cols,s1) + m1);
35 VERIFY_IS_APPROX(s1 - m1, (-m1)+s1 );
36 VERIFY_IS_APPROX(m1 - s1, m1 - ArrayType::Constant(rows,cols,s1));
37 VERIFY_IS_APPROX(s1 - m1, ArrayType::Constant(rows,cols,s1) - m1);
38 VERIFY_IS_APPROX((m1*Scalar(2)) - s2, (m1+m1) - ArrayType::Constant(rows,cols,s2) );
41 VERIFY_IS_APPROX(m3, m1 + s2);
44 VERIFY_IS_APPROX(m3, m1 - s1);
49 VERIFY_IS_APPROX(m1, m3 - m2);
53 VERIFY_IS_APPROX(m
[all...]
H A Dinverse.cpp31 VERIFY_IS_APPROX(m1, m2.inverse() );
33 VERIFY_IS_APPROX((Scalar(2)*m2).inverse(), m2.inverse()*Scalar(0.5));
35 VERIFY_IS_APPROX(identity, m1.inverse() * m1 );
36 VERIFY_IS_APPROX(identity, m1 * m1.inverse() );
38 VERIFY_IS_APPROX(m1, m1.inverse().inverse() );
41 VERIFY_IS_APPROX(MatrixType(m1.transpose().inverse()), MatrixType(m1.inverse().transpose()));
55 VERIFY_IS_APPROX(identity, m1*m2);
56 VERIFY_IS_APPROX(det, m1.determinant());
61 VERIFY_IS_APPROX(identity, m1*m2);
83 VERIFY_IS_APPROX(m
[all...]
H A Dproduct_extra.cpp41 VERIFY_IS_APPROX(m3.noalias() = m1 * m2.adjoint(), m1 * m2.adjoint().eval());
42 VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * square.adjoint(), m1.adjoint().eval() * square.adjoint().eval());
43 VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * m2, m1.adjoint().eval() * m2);
44 VERIFY_IS_APPROX(m3.noalias() = (s1 * m1.adjoint()) * m2, (s1 * m1.adjoint()).eval() * m2);
45 VERIFY_IS_APPROX(m3.noalias() = ((s1 * m1).adjoint()) * m2, (numext::conj(s1) * m1.adjoint()).eval() * m2);
46 VERIFY_IS_APPROX(m3.noalias() = (- m1.adjoint() * s1) * (s3 * m2), (- m1.adjoint() * s1).eval() * (s3 * m2).eval());
47 VERIFY_IS_APPROX(m3.noalias() = (s2 * m1.adjoint() * s1) * m2, (s2 * m1.adjoint() * s1).eval() * m2);
48 VERIFY_IS_APPROX(m3.noalias() = (-m1*s2) * s1*m2.adjoint(), (-m1*s2).eval() * (s1*m2.adjoint()).eval());
51 VERIFY_IS_APPROX( m1.adjoint() * (s1*m2).conjugate(), (m1.adjoint()).eval() * ((s1*m2).conjugate()).eval());
56 VERIFY_IS_APPROX((
[all...]
H A Ddiagonalmatrices.cpp38 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix());
40 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix());
42 VERIFY_IS_APPROX(sq_m1, sq_m2);
46 VERIFY_IS_APPROX(ldm1.diagonal(), ldm3.diagonal());
48 VERIFY_IS_APPROX(ldm1.diagonal(), ldm4.diagonal());
51 VERIFY_IS_APPROX(sq_m1, ldm1.toDenseMatrix());
53 VERIFY_IS_APPROX(sq_m1, ldm1.toDenseMatrix());
58 VERIFY_IS_APPROX( ((ldm1 * m1)(i,j)) , ldm1.diagonal()(i) * m1(i,j) );
59 VERIFY_IS_APPROX( ((ldm1 * (m1+m2))(i,j)) , ldm1.diagonal()(i) * (m1+m2)(i,j) );
60 VERIFY_IS_APPROX( ((m
[all...]
H A Dsparse_product.cpp19 VERIFY_IS_APPROX(m4=m2.col(c)*refMat2.col(c1).transpose(), refMat4=refMat2.col(c)*refMat2.col(c1).transpose());
20 VERIFY_IS_APPROX(m4=refMat2.col(c1)*m2.col(c).transpose(), refMat4=refMat2.col(c1)*refMat2.col(c).transpose());
29 VERIFY_IS_APPROX(m4=m2.row(r).transpose()*refMat2.col(c1).transpose(), refMat4=refMat2.row(r).transpose()*refMat2.col(c1).transpose());
30 VERIFY_IS_APPROX(m4=refMat2.col(c1)*m2.row(r), refMat4=refMat2.col(c1)*refMat2.row(r));
35 // VERIFY_IS_APPROX(m4=m2.innerVector(c)*dv1.transpose(), refMat4=refMat2.colVector(c)*dv1.transpose());
36 // VERIFY_IS_APPROX(m4=dv1*mcm.col(c).transpose(), refMat4=dv1*refMat2.col(c).transpose());
88 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3);
89 VERIFY_IS_APPROX(m4=m2t.transpose()*m3, refMat4=refMat2t.transpose()*refMat3);
90 VERIFY_IS_APPROX(m4=m2t.transpose()*m3t.transpose(), refMat4=refMat2t.transpose()*refMat3t.transpose());
91 VERIFY_IS_APPROX(m
[all...]
/external/eigen/test/eigen2/
H A Deigen2_smallvectors.cpp24 VERIFY_IS_APPROX(x1, v2.x());
25 VERIFY_IS_APPROX(x1, v3.x());
26 VERIFY_IS_APPROX(x1, v4.x());
27 VERIFY_IS_APPROX(x2, v2.y());
28 VERIFY_IS_APPROX(x2, v3.y());
29 VERIFY_IS_APPROX(x2, v4.y());
30 VERIFY_IS_APPROX(x3, v3.z());
31 VERIFY_IS_APPROX(x3, v4.z());
32 VERIFY_IS_APPROX(x4, v4.w());
H A Deigen2_linearstructure.cpp36 VERIFY_IS_APPROX(-(-m1), m1);
37 VERIFY_IS_APPROX(m1+m1, 2*m1);
38 VERIFY_IS_APPROX(m1+m2-m1, m2);
39 VERIFY_IS_APPROX(-m2+m1+m2, m1);
40 VERIFY_IS_APPROX(m1*s1, s1*m1);
41 VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2);
42 VERIFY_IS_APPROX((-m1+m2)*s1, -s1*m1+s1*m2);
44 VERIFY_IS_APPROX(m3, m1+m2);
46 VERIFY_IS_APPROX(m3, m2-m1);
48 VERIFY_IS_APPROX(m
[all...]
H A Deigen2_cwiseop.cpp53 VERIFY_IS_APPROX(mzero(i,j), Scalar(0));
54 VERIFY_IS_APPROX(mones(i,j), Scalar(1));
55 VERIFY_IS_APPROX(m3(i,j), s1);
61 VERIFY_IS_APPROX(m4.setConstant(s1), m3);
62 VERIFY_IS_APPROX(m4.setConstant(rows,cols,s1), m3);
63 VERIFY_IS_APPROX(m4.setZero(), mzero);
64 VERIFY_IS_APPROX(m4.setZero(rows,cols), mzero);
65 VERIFY_IS_APPROX(m4.setOnes(), mones);
66 VERIFY_IS_APPROX(m4.setOnes(rows,cols), mones);
68 VERIFY_IS_APPROX(m
[all...]
H A Deigen2_inverse.cpp36 VERIFY_IS_APPROX(m1, m2.inverse() );
39 VERIFY_IS_APPROX(m1, m2.inverse() );
41 VERIFY_IS_APPROX((Scalar(2)*m2).inverse(), m2.inverse()*Scalar(0.5));
43 VERIFY_IS_APPROX(identity, m1.inverse() * m1 );
44 VERIFY_IS_APPROX(identity, m1 * m1.inverse() );
46 VERIFY_IS_APPROX(m1, m1.inverse().inverse() );
49 VERIFY_IS_APPROX(m1.transpose().inverse(), m1.inverse().transpose());
H A Deigen2_commainitializer.cpp28 VERIFY_IS_APPROX(m3, ref );
36 VERIFY_IS_APPROX(m3, ref);
45 VERIFY_IS_APPROX(m3, ref);
H A Deigen2_sparse_vector.cpp54 VERIFY_IS_APPROX(v1, refV1);
58 VERIFY_IS_APPROX(v1, refV1);
60 VERIFY_IS_APPROX(v1+v2, refV1+refV2);
61 VERIFY_IS_APPROX(v1+v2+v3, refV1+refV2+refV3);
63 VERIFY_IS_APPROX(v1*s1-v2, refV1*s1-refV2);
65 VERIFY_IS_APPROX(v1*=s1, refV1*=s1);
66 VERIFY_IS_APPROX(v1/=s1, refV1/=s1);
68 VERIFY_IS_APPROX(v1+=v2, refV1+=refV2);
69 VERIFY_IS_APPROX(v1-=v2, refV1-=refV2);
71 VERIFY_IS_APPROX(v
[all...]
H A Deigen2_determinant.cpp26 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1));
27 VERIFY_IS_APPROX((m1*m2).determinant(), m1.determinant() * m2.determinant());
36 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant());
39 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant());
40 VERIFY_IS_APPROX(m2.determinant(), m2.transpose().determinant());
41 VERIFY_IS_APPROX(ei_conj(m2.determinant()), m2.adjoint().determinant());
44 VERIFY_IS_APPROX(m2.determinant(), m1.determinant());
47 VERIFY_IS_APPROX(m2.determinant(), m1.determinant() * x);
H A Deigen2_swap.cpp45 VERIFY_IS_APPROX(m1,m2_copy);
46 VERIFY_IS_APPROX(m2,m1_copy);
52 VERIFY_IS_APPROX(m1,m3_copy);
53 VERIFY_IS_APPROX(m3,m1_copy);
59 VERIFY_IS_APPROX(m1,m2_copy);
60 VERIFY_IS_APPROX(m2,m1_copy);
66 VERIFY_IS_APPROX(m1,m3_copy);
67 VERIFY_IS_APPROX(m3,m1_copy);
H A Deigen2_sparse_product.cpp35 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3);
36 VERIFY_IS_APPROX(m4=m2.transpose()*m3, refMat4=refMat2.transpose()*refMat3);
37 VERIFY_IS_APPROX(m4=m2.transpose()*m3.transpose(), refMat4=refMat2.transpose()*refMat3.transpose());
38 VERIFY_IS_APPROX(m4=m2*m3.transpose(), refMat4=refMat2*refMat3.transpose());
41 VERIFY_IS_APPROX(dm4=m2*refMat3, refMat4=refMat2*refMat3);
42 VERIFY_IS_APPROX(dm4=m2*refMat3.transpose(), refMat4=refMat2*refMat3.transpose());
43 VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3, refMat4=refMat2.transpose()*refMat3);
44 VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3.transpose(), refMat4=refMat2.transpose()*refMat3.transpose());
47 VERIFY_IS_APPROX(dm4=refMat2*m3, refMat4=refMat2*refMat3);
48 VERIFY_IS_APPROX(dm
[all...]

Completed in 206 milliseconds

123456