/external/eigen/test/ |
D | array.cpp | 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() [all …]
|
D | sparse_product.cpp | 80 VERIFY_IS_APPROX(m4=m2*m3, refMat4=refMat2*refMat3); in sparse_product() 81 VERIFY_IS_APPROX(m4=m2t.transpose()*m3, refMat4=refMat2t.transpose()*refMat3); in sparse_product() 82 …VERIFY_IS_APPROX(m4=m2t.transpose()*m3t.transpose(), refMat4=refMat2t.transpose()*refMat3t.transpo… in sparse_product() 83 VERIFY_IS_APPROX(m4=m2*m3t.transpose(), refMat4=refMat2*refMat3t.transpose()); in sparse_product() 85 VERIFY_IS_APPROX(m4 = m2*m3/s1, refMat4 = refMat2*refMat3/s1); in sparse_product() 86 VERIFY_IS_APPROX(m4 = m2*m3*s1, refMat4 = refMat2*refMat3*s1); in sparse_product() 87 VERIFY_IS_APPROX(m4 = s2*m2*m3*s1, refMat4 = s2*refMat2*refMat3*s1); in sparse_product() 88 VERIFY_IS_APPROX(m4 = (m2+m2)*m3, refMat4 = (refMat2+refMat2)*refMat3); in sparse_product() 89 VERIFY_IS_APPROX(m4 = m2*m3.leftCols(cols/2), refMat4 = refMat2*refMat3.leftCols(cols/2)); in sparse_product() 90 …VERIFY_IS_APPROX(m4 = m2*(m3+m3).leftCols(cols/2), refMat4 = refMat2*(refMat3+refMat3).leftCols(co… in sparse_product() [all …]
|
D | product.h | 60 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); in product() 63 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product() 64 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product() 67 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2); in product() 68 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2); in product() 71 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1); in product() 72 VERIFY_IS_APPROX(s1*(square*m1), square*(m1*s1)); in product() 75 VERIFY_IS_APPROX(v1, identity*v1); in product() 76 VERIFY_IS_APPROX(v1.transpose(), v1.transpose() * identity); in product() 78 VERIFY_IS_APPROX(MatrixType::Identity(rows, cols)(r,c), static_cast<Scalar>(r==c)); in product() [all …]
|
D | mixingtypes.cpp | 35 VERIFY_IS_APPROX(XPR,REF); \ 125 VERIFY_IS_APPROX(vcf.dot(vf), vcf.dot(vf.template cast<complex<float> >())); in mixingtypes() 128 VERIFY_IS_APPROX(vf.asDiagonal() * mcf, vf.template cast<complex<float> >().asDiagonal() * mcf); in mixingtypes() 129 VERIFY_IS_APPROX(vcd.asDiagonal() * md, vcd.asDiagonal() * md.template cast<complex<double> >()); in mixingtypes() 130 VERIFY_IS_APPROX(mcf * vf.asDiagonal(), mcf * vf.template cast<complex<float> >().asDiagonal()); in mixingtypes() 131 VERIFY_IS_APPROX(md * vcd.asDiagonal(), md.template cast<complex<double> >() * vcd.asDiagonal()); in mixingtypes() 137 …VERIFY_IS_APPROX((vf.transpose() * vcf).value(), (vf.template cast<complex<float> >().transpose() … in mixingtypes() 140 …VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpo… in mixingtypes() 144 …VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpo… in mixingtypes() 147 …VERIFY_IS_APPROX(mcd.array() *= md.array(), mcd2.array() *= md.array().template cast<std::complex<… in mixingtypes() [all …]
|
D | geo_transformations.cpp | 50 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in non_projective_only() 57 VERIFY_IS_APPROX( (t0 * Vector3(1,0,0)).template head<3>().norm(), v0.x()); in non_projective_only() 72 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in non_projective_only() 73 VERIFY_IS_APPROX(t1*v1, t0*v1); in non_projective_only() 78 VERIFY_IS_APPROX((t0 * v1).template head<3>(), Translation3(v0) * v1); in non_projective_only() 83 VERIFY_IS_APPROX((t0 * v1).template head<3>(), AlignedScaling3(v0) * v1); in non_projective_only() 117 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in transformations() 118 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(EIGEN_PI), v0.unitOrthogonal()) * v0); in transformations() 121 VERIFY_IS_APPROX(cos(a)*v0.squaredNorm(), v0.dot(AngleAxisx(a, v0.unitOrthogonal()) * v0)); in transformations() 124 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in transformations() [all …]
|
D | geo_homogeneous.cpp | 39 VERIFY_IS_APPROX(v0.homogeneous(), hv0); in homogeneous() 40 VERIFY_IS_APPROX(v0, hv0.hnormalized()); in homogeneous() 42 VERIFY_IS_APPROX(v0.homogeneous().sum(), hv0.sum()); in homogeneous() 43 VERIFY_IS_APPROX(v0.homogeneous().minCoeff(), hv0.minCoeff()); in homogeneous() 44 VERIFY_IS_APPROX(v0.homogeneous().maxCoeff(), hv0.maxCoeff()); in homogeneous() 47 VERIFY_IS_APPROX(m0.colwise().homogeneous(), hm0); in homogeneous() 48 VERIFY_IS_APPROX(m0, hm0.colwise().hnormalized()); in homogeneous() 52 VERIFY_IS_APPROX(m0, hm0.colwise().hnormalized()); in homogeneous() 55 VERIFY_IS_APPROX(t1 * (v0.homogeneous().eval()), t1 * v0.homogeneous()); in homogeneous() 56 VERIFY_IS_APPROX(t1 * (m0.colwise().homogeneous().eval()), t1 * m0.colwise().homogeneous()); in homogeneous() [all …]
|
D | product_extra.cpp | 41 VERIFY_IS_APPROX(m3.noalias() = m1 * m2.adjoint(), m1 * m2.adjoint().eval()); in product_extra() 42 …VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * square.adjoint(), m1.adjoint().eval() * square.ad… in product_extra() 43 VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * m2, m1.adjoint().eval() * m2); in product_extra() 44 …VERIFY_IS_APPROX(m3.noalias() = (s1 * m1.adjoint()) * m2, (s1 * m1.adjoint()).eval() * m2… in product_extra() 45 …VERIFY_IS_APPROX(m3.noalias() = ((s1 * m1).adjoint()) * m2, (numext::conj(s1) * m1.adjoint(… in product_extra() 46 …VERIFY_IS_APPROX(m3.noalias() = (- m1.adjoint() * s1) * (s3 * m2), (- m1.adjoint() * s1).eval() *… in product_extra() 47 …VERIFY_IS_APPROX(m3.noalias() = (s2 * m1.adjoint() * s1) * m2, (s2 * m1.adjoint() * s1).eval(… in product_extra() 48 …VERIFY_IS_APPROX(m3.noalias() = (-m1*s2) * s1*m2.adjoint(), (-m1*s2).eval() * (s1*m2.adjoin… in product_extra() 51 …VERIFY_IS_APPROX( m1.adjoint() * (s1*m2).conjugate(), (m1.adjoint()).eval() * ((s1*m2).conjugate()… in product_extra() 56 VERIFY_IS_APPROX((-m1.conjugate() * s2) * (s1 * vc2), in product_extra() [all …]
|
D | linearstructure.cpp | 41 VERIFY_IS_APPROX(-(-m1), m1); in linearStructure() 42 VERIFY_IS_APPROX(m1+m1, 2*m1); in linearStructure() 43 VERIFY_IS_APPROX(m1+m2-m1, m2); in linearStructure() 44 VERIFY_IS_APPROX(-m2+m1+m2, m1); in linearStructure() 45 VERIFY_IS_APPROX(m1*s1, s1*m1); in linearStructure() 46 VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2); in linearStructure() 47 VERIFY_IS_APPROX((-m1+m2)*s1, -s1*m1+s1*m2); in linearStructure() 49 VERIFY_IS_APPROX(m3, m1+m2); in linearStructure() 51 VERIFY_IS_APPROX(m3, m2-m1); in linearStructure() 53 VERIFY_IS_APPROX(m3, s1*m2); in linearStructure() [all …]
|
D | sparse_vector.cpp | 54 VERIFY_IS_APPROX(v1, refV1); in sparse_vector() 67 VERIFY_IS_APPROX(v4,v5); in sparse_vector() 72 VERIFY_IS_APPROX(v1, refV1); in sparse_vector() 74 VERIFY_IS_APPROX(v1+v2, refV1+refV2); in sparse_vector() 75 VERIFY_IS_APPROX(v1+v2+v3, refV1+refV2+refV3); in sparse_vector() 77 VERIFY_IS_APPROX(v1*s1-v2, refV1*s1-refV2); in sparse_vector() 79 VERIFY_IS_APPROX(v1*=s1, refV1*=s1); in sparse_vector() 80 VERIFY_IS_APPROX(v1/=s1, refV1/=s1); in sparse_vector() 82 VERIFY_IS_APPROX(v1+=v2, refV1+=refV2); in sparse_vector() 83 VERIFY_IS_APPROX(v1-=v2, refV1-=refV2); in sparse_vector() [all …]
|
D | vectorwiseop.cpp | 39 VERIFY_IS_APPROX(m2, m1.colwise() + colvec); in vectorwiseop_array() 40 VERIFY_IS_APPROX(m2.col(c), m1.col(c) + colvec); in vectorwiseop_array() 47 VERIFY_IS_APPROX(m2, m1.rowwise() + rowvec); in vectorwiseop_array() 48 VERIFY_IS_APPROX(m2.row(r), m1.row(r) + rowvec); in vectorwiseop_array() 57 VERIFY_IS_APPROX(m2, m1.colwise() - colvec); in vectorwiseop_array() 58 VERIFY_IS_APPROX(m2.col(c), m1.col(c) - colvec); in vectorwiseop_array() 65 VERIFY_IS_APPROX(m2, m1.rowwise() - rowvec); in vectorwiseop_array() 66 VERIFY_IS_APPROX(m2.row(r), m1.row(r) - rowvec); in vectorwiseop_array() 75 VERIFY_IS_APPROX(m2, m1.colwise() * colvec); in vectorwiseop_array() 76 VERIFY_IS_APPROX(m2.col(c), m1.col(c) * colvec); in vectorwiseop_array() [all …]
|
D | sparse_basic.cpp | 53 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 60 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 98 VERIFY_IS_APPROX(m2,m1); in sparse_basic() 121 VERIFY_IS_APPROX(m2,m1); in sparse_basic() 143 VERIFY_IS_APPROX(m2,m1); in sparse_basic() 166 VERIFY_IS_APPROX(m1*s1, refM1*s1); in sparse_basic() 167 VERIFY_IS_APPROX(m1+m2, refM1+refM2); in sparse_basic() 168 VERIFY_IS_APPROX(m1+m2+m3, refM1+refM2+refM3); in sparse_basic() 169 VERIFY_IS_APPROX(m3.cwiseProduct(m1+m2), refM3.cwiseProduct(refM1+refM2)); in sparse_basic() 170 VERIFY_IS_APPROX(m1*s1-m2, refM1*s1-refM2); in sparse_basic() [all …]
|
D | sparse_block.cpp | 48 VERIFY_IS_APPROX(m, refMat); in sparse_block() 58 VERIFY_IS_APPROX(m.block(i,j,h,w), refMat.block(i,j,h,w)); in sparse_block() 61 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c), refMat.block(i,j,h,w).col(c)); in sparse_block() 64 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c).coeff(r), refMat.block(i,j,h,w).col(c).coeff(r)); in sparse_block() 65 VERIFY_IS_APPROX(m.block(i,j,h,w).coeff(r,c), refMat.block(i,j,h,w).coeff(r,c)); in sparse_block() 70 VERIFY_IS_APPROX(m.block(i,j,h,w).row(r), refMat.block(i,j,h,w).row(r)); in sparse_block() 73 VERIFY_IS_APPROX(m.block(i,j,h,w).row(r).coeff(c), refMat.block(i,j,h,w).row(r).coeff(c)); in sparse_block() 74 VERIFY_IS_APPROX(m.block(i,j,h,w).coeff(r,c), refMat.block(i,j,h,w).coeff(r,c)); in sparse_block() 78 VERIFY_IS_APPROX(m.middleCols(j,w), refMat.middleCols(j,w)); in sparse_block() 79 VERIFY_IS_APPROX(m.middleRows(i,h), refMat.middleRows(i,h)); in sparse_block() [all …]
|
D | geo_quaternion.cpp | 73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in quaternion() 75 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); in quaternion() 94 VERIFY_IS_APPROX(q1 * v2, q1.toRotationMatrix() * v2); in quaternion() 95 VERIFY_IS_APPROX(q1 * q2 * v2, in quaternion() 102 VERIFY_IS_APPROX(q1*v1,q2*v1); in quaternion() 105 VERIFY_IS_APPROX(q1*v1,rot1*v1); in quaternion() 107 VERIFY_IS_APPROX(q3*v1,v1); in quaternion() 112 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); in quaternion() 124 VERIFY_IS_APPROX( v2.normalized(),(q2.setFromTwoVectors(v1, v2)*v1).normalized()); in quaternion() 125 VERIFY_IS_APPROX( v1.normalized(),(q2.setFromTwoVectors(v1, v1)*v1).normalized()); in quaternion() [all …]
|
D | array_for_matrix.cpp | 33 VERIFY_IS_APPROX(m1.array() + s1, s1 + m1.array()); in array_for_matrix() 34 VERIFY_IS_APPROX((m1.array() + s1).matrix(), MatrixType::Constant(rows,cols,s1) + m1); in array_for_matrix() 35 …VERIFY_IS_APPROX(((m1*Scalar(2)).array() - s2).matrix(), (m1+m1) - MatrixType::Constant(rows,cols,… in array_for_matrix() 38 VERIFY_IS_APPROX(m3, (m1.array() + s2).matrix()); in array_for_matrix() 41 VERIFY_IS_APPROX(m3, (m1.array() - s1).matrix()); in array_for_matrix() 48 …VERIFY_IS_APPROX(m1.colwise().sum(), m1.colwise().redux(internal::scalar_sum_op<Scalar,Scalar>())); in array_for_matrix() 52 VERIFY_IS_APPROX(m3.colwise() += cv1, m1.colwise() + cv1); in array_for_matrix() 54 VERIFY_IS_APPROX(m3.colwise() -= cv1, m1.colwise() - cv1); in array_for_matrix() 56 VERIFY_IS_APPROX(m3.rowwise() += rv1, m1.rowwise() + rv1); in array_for_matrix() 58 VERIFY_IS_APPROX(m3.rowwise() -= rv1, m1.rowwise() - rv1); in array_for_matrix() [all …]
|
D | diagonalmatrices.cpp | 39 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix()); in diagonalmatrices() 41 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix()); in diagonalmatrices() 43 VERIFY_IS_APPROX(sq_m1, sq_m2); in diagonalmatrices() 47 VERIFY_IS_APPROX(ldm1.diagonal(), ldm3.diagonal()); in diagonalmatrices() 49 VERIFY_IS_APPROX(ldm1.diagonal(), ldm4.diagonal()); in diagonalmatrices() 52 VERIFY_IS_APPROX(sq_m1, ldm1.toDenseMatrix()); in diagonalmatrices() 54 VERIFY_IS_APPROX(sq_m1, ldm1.toDenseMatrix()); in diagonalmatrices() 59 VERIFY_IS_APPROX( ((ldm1 * m1)(i,j)) , ldm1.diagonal()(i) * m1(i,j) ); in diagonalmatrices() 60 VERIFY_IS_APPROX( ((ldm1 * (m1+m2))(i,j)) , ldm1.diagonal()(i) * (m1+m2)(i,j) ); in diagonalmatrices() 61 VERIFY_IS_APPROX( ((m1 * rdm1)(i,j)) , rdm1.diagonal()(j) * m1(i,j) ); in diagonalmatrices() [all …]
|
D | half_float.cpp | 62 VERIFY_IS_APPROX(float(half(__half(0x8001))), -5.96046e-08f); in test_conversion() 63 VERIFY_IS_APPROX(float(half(__half(0x0001))), 5.96046e-08f); in test_conversion() 64 VERIFY_IS_APPROX(float(half(__half(0x0002))), 1.19209e-07f); in test_conversion() 123 VERIFY_IS_APPROX(float(half(0.33333f) + half(0.66667f)), 1.0f); in test_arithmetic() 125 VERIFY_IS_APPROX(float(half(1.0f) / half(3.0f)), 0.33333f); in test_arithmetic() 185 VERIFY_IS_APPROX(float(numext::sqrt(half(0.0f))), 0.0f); in test_basic_functions() 186 VERIFY_IS_APPROX(float(sqrt(half(0.0f))), 0.0f); in test_basic_functions() 187 VERIFY_IS_APPROX(float(numext::sqrt(half(4.0f))), 2.0f); in test_basic_functions() 188 VERIFY_IS_APPROX(float(sqrt(half(4.0f))), 2.0f); in test_basic_functions() 190 VERIFY_IS_APPROX(float(numext::pow(half(0.0f), half(1.0f))), 0.0f); in test_basic_functions() [all …]
|
D | geo_alignedbox.cpp | 52 VERIFY_IS_APPROX(b0.center(),(p0+p1)/Scalar(2)); in alignedbox() 57 VERIFY_IS_APPROX(b2.clamp(b0), b0); in alignedbox() 106 VERIFY_IS_APPROX(hp1f.template cast<Scalar>(),b0); in alignedboxCastTests() 108 VERIFY_IS_APPROX(hp1d.template cast<Scalar>(),b0); in alignedboxCastTests() 121 VERIFY_IS_APPROX(sides, box.sizes() ); in specificTest1() 122 VERIFY_IS_APPROX(sides[1], box.sizes()[1] ); in specificTest1() 123 VERIFY_IS_APPROX(sides[1], box.sizes().maxCoeff() ); in specificTest1() 124 VERIFY_IS_APPROX(sides[0], box.sizes().minCoeff() ); in specificTest1() 126 VERIFY_IS_APPROX( 14.0f, box.volume() ); in specificTest1() 127 VERIFY_IS_APPROX( 53.0f, box.diagonal().squaredNorm() ); in specificTest1() [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_fixed_size.cpp | 32 VERIFY_IS_APPROX(scalar1(), copy()); in test_0d() 35 VERIFY_IS_APPROX(scalar1(), copy()); in test_0d() 40 VERIFY_IS_APPROX(scalar3(), sqrtf(7.0)); in test_0d() 41 VERIFY_IS_APPROX(scalar4(), sqrtf(13.0)); in test_0d() 44 VERIFY_IS_APPROX(scalar3(), 7.0f + 13.0f); in test_0d() 67 VERIFY_IS_APPROX(vec1(i), copy(i)); in test_1d() 72 VERIFY_IS_APPROX(vec1(i), copy(i)); in test_1d() 83 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_1d() 84 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_1d() 85 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_1d() [all …]
|
D | kronecker_product.cpp | 32 VERIFY_IS_APPROX(ab.coeff(0,0), -0.4017367630386106); in check_kronecker_product() 33 VERIFY_IS_APPROX(ab.coeff(0,1), 0.1056863433932735); in check_kronecker_product() 34 VERIFY_IS_APPROX(ab.coeff(0,2), -0.7255206194554212); in check_kronecker_product() 35 VERIFY_IS_APPROX(ab.coeff(0,3), 0.1908653336744706); in check_kronecker_product() 36 VERIFY_IS_APPROX(ab.coeff(0,4), 0.350864567234111); in check_kronecker_product() 37 VERIFY_IS_APPROX(ab.coeff(0,5), -0.0923032108308013); in check_kronecker_product() 38 VERIFY_IS_APPROX(ab.coeff(1,0), 0.415417514804677); in check_kronecker_product() 39 VERIFY_IS_APPROX(ab.coeff(1,1), -0.2369227701722048); in check_kronecker_product() 40 VERIFY_IS_APPROX(ab.coeff(1,2), 0.7502275131458511); in check_kronecker_product() 41 VERIFY_IS_APPROX(ab.coeff(1,3), -0.4278731019742696); in check_kronecker_product() [all …]
|
D | cxx11_tensor_expr.cpp | 39 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_1d() 40 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_1d() 41 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_1d() 42 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0)); in test_1d() 43 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0)); in test_1d() 44 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0)); in test_1d() 46 VERIFY_IS_APPROX(vec4(0), 0.0f); in test_1d() 47 VERIFY_IS_APPROX(vec4(1), 1.0f); in test_1d() 48 VERIFY_IS_APPROX(vec4(2), 2.0f * 2.0f); in test_1d() 49 VERIFY_IS_APPROX(vec4(3), 3.0f * 3.0f); in test_1d() [all …]
|
D | levenberg_marquardt.cpp | 85 VERIFY_IS_APPROX(lm.fvec().blueNorm(), 0.09063596); in testLmder1() 90 VERIFY_IS_APPROX(x, x_ref); in testLmder1() 115 VERIFY_IS_APPROX(fnorm, 0.09063596); in testLmder() 120 VERIFY_IS_APPROX(x, x_ref); in testLmder() 136 VERIFY_IS_APPROX( cov, cov_ref); in testLmder() 187 VERIFY_IS_APPROX(fvec.blueNorm(), 0.09063596); in testLmdif1() 192 VERIFY_IS_APPROX(x, x_ref); in testLmdif1() 218 VERIFY_IS_APPROX(fnorm, 0.09063596); in testLmdif() 223 VERIFY_IS_APPROX(x, x_ref); in testLmdif() 239 VERIFY_IS_APPROX( cov, cov_ref); in testLmdif() [all …]
|
D | NonLinearOptimization.cpp | 101 VERIFY_IS_APPROX(fvec, fvec_ref); in testChkder() 102 VERIFY_IS_APPROX(fvecp, fvecp_ref); in testChkder() 103 VERIFY_IS_APPROX(err, err_ref); in testChkder() 187 VERIFY_IS_APPROX(lm.fvec.blueNorm(), 0.09063596); in testLmder1() 192 VERIFY_IS_APPROX(x, x_ref); in testLmder1() 217 VERIFY_IS_APPROX(fnorm, 0.09063596); in testLmder() 222 VERIFY_IS_APPROX(x, x_ref); in testLmder() 238 VERIFY_IS_APPROX( cov, cov_ref); in testLmder() 301 VERIFY_IS_APPROX(solver.fvec.blueNorm(), 1.192636e-08); in testHybrj1() 310 VERIFY_IS_APPROX(x, x_ref); in testHybrj1() [all …]
|
D | alignedvector3.cpp | 36 VERIFY_IS_APPROX(f1,r1); in alignedvector3() 37 VERIFY_IS_APPROX(f4,r4); in alignedvector3() 39 VERIFY_IS_APPROX(f4+f1,r4+r1); in alignedvector3() 40 VERIFY_IS_APPROX(f4-f1,r4-r1); in alignedvector3() 41 VERIFY_IS_APPROX(f4+f1-f2,r4+r1-r2); in alignedvector3() 42 VERIFY_IS_APPROX(f4+=f3,r4+=r3); in alignedvector3() 43 VERIFY_IS_APPROX(f4-=f5,r4-=r5); in alignedvector3() 44 VERIFY_IS_APPROX(f4-=f5+f1,r4-=r5+r1); in alignedvector3() 45 VERIFY_IS_APPROX(f5+f1-s1*f2,r5+r1-s1*r2); in alignedvector3() 46 VERIFY_IS_APPROX(f5+f1/s2-s1*f2,r5+r1/s2-s1*r2); in alignedvector3() [all …]
|
D | cxx11_tensor_convolution.cpp | 37 VERIFY_IS_APPROX(result(0,0), input(0,0)*kernel(0) + input(1,0)*kernel(1)); // index 0 in test_evals() 38 VERIFY_IS_APPROX(result(0,1), input(0,1)*kernel(0) + input(1,1)*kernel(1)); // index 2 in test_evals() 39 VERIFY_IS_APPROX(result(0,2), input(0,2)*kernel(0) + input(1,2)*kernel(1)); // index 4 in test_evals() 40 VERIFY_IS_APPROX(result(1,0), input(1,0)*kernel(0) + input(2,0)*kernel(1)); // index 1 in test_evals() 41 VERIFY_IS_APPROX(result(1,1), input(1,1)*kernel(0) + input(2,1)*kernel(1)); // index 3 in test_evals() 42 VERIFY_IS_APPROX(result(1,2), input(1,2)*kernel(0) + input(2,2)*kernel(1)); // index 5 in test_evals() 59 VERIFY_IS_APPROX(result(0,0), input(0,0)*kernel(0,0) + input(0,1)*kernel(0,1) + in test_expr() 61 VERIFY_IS_APPROX(result(0,1), input(0,1)*kernel(0,0) + input(0,2)*kernel(0,1) + in test_expr() 63 VERIFY_IS_APPROX(result(1,0), input(1,0)*kernel(0,0) + input(1,1)*kernel(0,1) + in test_expr() 65 VERIFY_IS_APPROX(result(1,1), input(1,1)*kernel(0,0) + input(1,2)*kernel(0,1) + in test_expr() [all …]
|
D | cxx11_tensor_mixed_indices.cpp | 34 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_simple() 35 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_simple() 36 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_simple() 37 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0)); in test_simple() 38 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0)); in test_simple() 39 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0)); in test_simple() 41 VERIFY_IS_APPROX(vec4(0), 0.0f); in test_simple() 42 VERIFY_IS_APPROX(vec4(1), 1.0f); in test_simple() 43 VERIFY_IS_APPROX(vec4(2), 2.0f * 2.0f); in test_simple() 44 VERIFY_IS_APPROX(vec4(3), 3.0f * 3.0f); in test_simple() [all …]
|