/external/eigen/test/ |
D | corners.cpp | 13 VERIFY_IS_EQUAL(matrix.A, matrix.B); \ 14 VERIFY_IS_EQUAL(const_matrix.A, const_matrix.B); 60 VERIFY_IS_EQUAL((matrix.template topLeftCorner<r,c>()), (matrix.template block<r,c>(0,0))); in corners_fixedsize() 61 VERIFY_IS_EQUAL((matrix.template topRightCorner<r,c>()), (matrix.template block<r,c>(0,cols-c))); in corners_fixedsize() 62 …VERIFY_IS_EQUAL((matrix.template bottomLeftCorner<r,c>()), (matrix.template block<r,c>(rows-r,0))); in corners_fixedsize() 63 …VERIFY_IS_EQUAL((matrix.template bottomRightCorner<r,c>()), (matrix.template block<r,c>(rows-r,col… in corners_fixedsize() 65 …VERIFY_IS_EQUAL((matrix.template topLeftCorner<r,c>()), (matrix.template topLeftCorner<r,Dynamic>(… in corners_fixedsize() 66 …VERIFY_IS_EQUAL((matrix.template topRightCorner<r,c>()), (matrix.template topRightCorner<r,Dynamic… in corners_fixedsize() 67 …VERIFY_IS_EQUAL((matrix.template bottomLeftCorner<r,c>()), (matrix.template bottomLeftCorner<r,Dyn… in corners_fixedsize() 68 …VERIFY_IS_EQUAL((matrix.template bottomRightCorner<r,c>()), (matrix.template bottomRightCorner<r,D… in corners_fixedsize() [all …]
|
D | schur_complex.cpp | 23 VERIFY_IS_EQUAL(schurOfA.info(), Success); in schur() 45 VERIFY_IS_EQUAL(cs1.info(), Success); in schur() 46 VERIFY_IS_EQUAL(cs2.info(), Success); in schur() 47 VERIFY_IS_EQUAL(cs1.matrixT(), cs2.matrixT()); in schur() 48 VERIFY_IS_EQUAL(cs1.matrixU(), cs2.matrixU()); in schur() 53 VERIFY_IS_EQUAL(cs3.info(), Success); in schur() 54 VERIFY_IS_EQUAL(cs3.matrixT(), cs1.matrixT()); in schur() 55 VERIFY_IS_EQUAL(cs3.matrixU(), cs1.matrixU()); in schur() 57 VERIFY_IS_EQUAL(cs3.info(), size > 1 ? NoConvergence : Success); in schur() 58 VERIFY_IS_EQUAL(cs3.getMaxIterations(), 1); in schur() [all …]
|
D | schur_real.cpp | 46 VERIFY_IS_EQUAL(schurOfA.info(), Success); in schur() 64 VERIFY_IS_EQUAL(rs1.info(), Success); in schur() 65 VERIFY_IS_EQUAL(rs2.info(), Success); in schur() 66 VERIFY_IS_EQUAL(rs1.matrixT(), rs2.matrixT()); in schur() 67 VERIFY_IS_EQUAL(rs1.matrixU(), rs2.matrixU()); in schur() 72 VERIFY_IS_EQUAL(rs3.info(), Success); in schur() 73 VERIFY_IS_EQUAL(rs3.matrixT(), rs1.matrixT()); in schur() 74 VERIFY_IS_EQUAL(rs3.matrixU(), rs1.matrixU()); in schur() 77 VERIFY_IS_EQUAL(rs3.info(), NoConvergence); in schur() 78 VERIFY_IS_EQUAL(rs3.getMaxIterations(), 1); in schur() [all …]
|
D | ref.cpp | 61 VERIFY_IS_EQUAL(rm0, m1); in ref_matrix() 63 VERIFY_IS_EQUAL(rm1, m1); in ref_matrix() 65 VERIFY_IS_EQUAL(rm2, m1.block(i,j,brows,bcols)); in ref_matrix() 68 VERIFY_IS_EQUAL(m1, m2); in ref_matrix() 72 VERIFY_IS_EQUAL(m1, m2); in ref_matrix() 78 VERIFY_IS_EQUAL(rm3, m2.block(i,j,brows,bcols)); in ref_matrix() 80 VERIFY_IS_EQUAL(rm4, m2.real()); in ref_matrix() 83 VERIFY_IS_EQUAL(m1, m2); in ref_matrix() 113 VERIFY_IS_EQUAL(rm0, v1); in ref_vector() 115 VERIFY_IS_EQUAL(rv1, v1); in ref_vector() [all …]
|
D | block.cpp | 63 VERIFY_IS_EQUAL(m1.col(c1).transpose(), m1.transpose().row(c1)); in block() 83 VERIFY_IS_EQUAL(b1, m1.block(r1,c1,1,1)); in block() 84 VERIFY_IS_EQUAL(m1.row(r1), br1); in block() 85 VERIFY_IS_EQUAL(m1.col(c1), bc1); in block() 102 VERIFY_IS_EQUAL(b, m1.block(3,3,BlockRows,BlockCols)); in block() 108 VERIFY_IS_EQUAL(b2, m1.block(3,3,BlockRows,BlockCols)); in block() 114 VERIFY_IS_EQUAL(v1.template head<2>(), v1.block(0,0,2,1)); in block() 115 VERIFY_IS_EQUAL(v1.template head<2>(), v1.head(2)); in block() 116 VERIFY_IS_EQUAL(v1.template head<2>(), v1.segment(0,2)); in block() 117 VERIFY_IS_EQUAL(v1.template head<2>(), v1.template segment<2>(0)); in block() [all …]
|
D | eigen2support.cpp | 40 VERIFY_IS_EQUAL((m1.corner(TopLeft,1,1)), (m1.block(0,0,1,1))); in eigen2support() 41 VERIFY_IS_EQUAL((m1.template corner<1,1>(TopLeft)), (m1.template block<1,1>(0,0))); in eigen2support() 42 VERIFY_IS_EQUAL((m1.col(0).start(1)), (m1.col(0).segment(0,1))); in eigen2support() 43 VERIFY_IS_EQUAL((m1.col(0).template start<1>()), (m1.col(0).segment(0,1))); in eigen2support() 44 VERIFY_IS_EQUAL((m1.col(0).end(1)), (m1.col(0).segment(rows-1,1))); in eigen2support() 45 VERIFY_IS_EQUAL((m1.col(0).template end<1>()), (m1.col(0).segment(rows-1,1))); in eigen2support() 50 VERIFY_IS_EQUAL(ei_cos(s1), cos(s1)); in eigen2support() 51 VERIFY_IS_EQUAL(ei_real(s1), real(s1)); in eigen2support() 52 VERIFY_IS_EQUAL(ei_abs2(s1), abs2(s1)); in eigen2support()
|
D | eigensolver_complex.cpp | 49 VERIFY_IS_EQUAL(ei0.info(), Success); in eigensolver() 53 VERIFY_IS_EQUAL(ei1.info(), Success); in eigensolver() 61 VERIFY_IS_EQUAL(ei2.info(), Success); in eigensolver() 62 VERIFY_IS_EQUAL(ei2.eigenvectors(), ei1.eigenvectors()); in eigensolver() 63 VERIFY_IS_EQUAL(ei2.eigenvalues(), ei1.eigenvalues()); in eigensolver() 66 VERIFY_IS_EQUAL(ei2.info(), NoConvergence); in eigensolver() 67 VERIFY_IS_EQUAL(ei2.getMaxIterations(), 1); in eigensolver() 71 VERIFY_IS_EQUAL(eiNoEivecs.info(), Success); in eigensolver() 87 VERIFY_IS_EQUAL(eiNaN.info(), NoConvergence); in eigensolver()
|
D | eigensolver_generic.cpp | 34 VERIFY_IS_EQUAL(ei0.info(), Success); in eigensolver() 40 VERIFY_IS_EQUAL(ei1.info(), Success); in eigensolver() 49 VERIFY_IS_EQUAL(ei2.info(), Success); in eigensolver() 50 VERIFY_IS_EQUAL(ei2.eigenvectors(), ei1.eigenvectors()); in eigensolver() 51 VERIFY_IS_EQUAL(ei2.eigenvalues(), ei1.eigenvalues()); in eigensolver() 54 VERIFY_IS_EQUAL(ei2.info(), NoConvergence); in eigensolver() 55 VERIFY_IS_EQUAL(ei2.getMaxIterations(), 1); in eigensolver() 59 VERIFY_IS_EQUAL(eiNoEivecs.info(), Success); in eigensolver() 71 VERIFY_IS_EQUAL(eiNaN.info(), NoConvergence); in eigensolver()
|
D | integer_types.cpp | 45 VERIFY_IS_EQUAL(-(-m1), m1); in signed_integer_type_tests() 46 VERIFY_IS_EQUAL(-m2+m1+m2, m1); in signed_integer_type_tests() 47 VERIFY_IS_EQUAL((-m1+m2)*s1, -s1*m1+s1*m2); in signed_integer_type_tests() 117 VERIFY_IS_EQUAL(m1+m1, 2*m1); in integer_type_tests() 118 VERIFY_IS_EQUAL(m1+m2-m1, m2); in integer_type_tests() 119 VERIFY_IS_EQUAL(m1*s1, s1*m1); in integer_type_tests() 120 VERIFY_IS_EQUAL((m1+m2)*s1, s1*m1+s1*m2); in integer_type_tests() 122 VERIFY_IS_EQUAL(m3, m1+m2); in integer_type_tests() 124 VERIFY_IS_EQUAL(m3, m2-m1); in integer_type_tests() 126 VERIFY_IS_EQUAL(m3, s1*m2); in integer_type_tests()
|
D | eigensolver_selfadjoint.cpp | 59 VERIFY_IS_EQUAL(eiSymm.info(), Success); in selfadjointeigensolver() 64 VERIFY_IS_EQUAL(eiDirect.info(), Success); in selfadjointeigensolver() 70 VERIFY_IS_EQUAL(eiSymmNoEivecs.info(), Success); in selfadjointeigensolver() 75 VERIFY_IS_EQUAL(eiSymmGen.info(), Success); in selfadjointeigensolver() 81 VERIFY_IS_EQUAL(eiSymmGen.info(), Success); in selfadjointeigensolver() 87 VERIFY_IS_EQUAL(eiSymmGen.info(), Success); in selfadjointeigensolver() 122 VERIFY_IS_EQUAL(eiSymmNaN.info(), NoConvergence); in selfadjointeigensolver()
|
D | mapped_matrix.cpp | 35 VERIFY_IS_EQUAL(ma1, ma2); in map_class_vector() 36 VERIFY_IS_EQUAL(ma1, ma3); in map_class_vector() 67 VERIFY_IS_EQUAL(ma1, ma2); in map_class_matrix() 69 VERIFY_IS_EQUAL(ma1, ma3); in map_class_matrix() 95 VERIFY_IS_EQUAL(ma1, ma2); in map_static_methods() 96 VERIFY_IS_EQUAL(ma1, ma3); in map_static_methods() 128 VERIFY_IS_EQUAL(m2, map2); in map_not_aligned_on_scalar() 134 VERIFY_IS_EQUAL(v3, map3); in map_not_aligned_on_scalar()
|
D | hessenberg.cpp | 37 VERIFY_IS_EQUAL(cs1.matrixH().eval(), cs2.matrixH().eval()); in hessenberg() 40 VERIFY_IS_EQUAL(cs1Q, cs2Q); in hessenberg()
|
D | denseLM.cpp | 109 VERIFY_IS_EQUAL(info, 1); in test_minimizeLM() 122 VERIFY_IS_EQUAL(info, 1); in test_lmder() 140 VERIFY_IS_EQUAL(info, 1); in test_minimizeSteps()
|
D | real_qz.cpp | 46 VERIFY_IS_EQUAL(qz.info(), Success); in real_qz() 58 VERIFY_IS_EQUAL(all_zeros, true); in real_qz()
|
D | product_symm.cpp | 38 VERIFY_IS_EQUAL(m1, m3); in symm() 44 VERIFY_IS_EQUAL(m1, m3); in symm()
|
D | eigensolver_generalized_real.cpp | 37 VERIFY_IS_EQUAL(eig.eigenvalues().imag().cwiseAbs().maxCoeff(), 0); in generalized_eigensolver_real()
|
D | sparseqr.cpp | 78 VERIFY_IS_EQUAL(dqr.rank(), solver.rank()); in test_sparseqr_scalar()
|
D | sparseLM.cpp | 159 VERIFY_IS_EQUAL(info,1); in test_sparseLM_T()
|
D | main.h | 217 #define VERIFY_IS_EQUAL(a, b) VERIFY(test_is_equal(a, b)) macro
|
/external/eigen/unsupported/test/ |
D | levenberg_marquardt.cpp | 74 VERIFY_IS_EQUAL(info, 1); in testLmder1() 75 VERIFY_IS_EQUAL(lm.nfev(), 6); in testLmder1() 76 VERIFY_IS_EQUAL(lm.njev(), 5); in testLmder1() 103 VERIFY_IS_EQUAL(info, 1); in testLmder() 104 VERIFY_IS_EQUAL(lm.nfev(), 6); in testLmder() 105 VERIFY_IS_EQUAL(lm.njev(), 5); in testLmder() 176 VERIFY_IS_EQUAL(info, 1); in testLmdif1() 207 VERIFY_IS_EQUAL(info, 1); in testLmdif() 292 VERIFY_IS_EQUAL(info, 1); in testNistChwirut2() 294 VERIFY_IS_EQUAL(lm.njev(), 8); in testNistChwirut2() [all …]
|
D | NonLinearOptimization.cpp | 181 VERIFY_IS_EQUAL(info, 1); in testLmder1() 182 VERIFY_IS_EQUAL(lm.nfev, 6); in testLmder1() 183 VERIFY_IS_EQUAL(lm.njev, 5); in testLmder1() 210 VERIFY_IS_EQUAL(info, 1); in testLmder() 211 VERIFY_IS_EQUAL(lm.nfev, 6); in testLmder() 212 VERIFY_IS_EQUAL(lm.njev, 5); in testLmder() 295 VERIFY_IS_EQUAL(info, 1); in testHybrj1() 296 VERIFY_IS_EQUAL(solver.nfev, 11); in testHybrj1() 297 VERIFY_IS_EQUAL(solver.njev, 1); in testHybrj1() 330 VERIFY_IS_EQUAL(info, 1); in testHybrj() [all …]
|
D | kronecker_product.cpp | 21 VERIFY_IS_EQUAL(ab.rows(), rows); in check_dimension() 22 VERIFY_IS_EQUAL(ab.cols(), cols); in check_dimension() 29 VERIFY_IS_EQUAL(ab.rows(), 6); in check_kronecker_product() 30 VERIFY_IS_EQUAL(ab.cols(), 6); in check_kronecker_product() 31 VERIFY_IS_EQUAL(ab.nonZeros(), 36); in check_kronecker_product() 74 VERIFY_IS_EQUAL(ab.rows(), 12); in check_sparse_kronecker_product() 75 VERIFY_IS_EQUAL(ab.cols(), 10); in check_sparse_kronecker_product() 76 VERIFY_IS_EQUAL(ab.nonZeros(), 3*2); in check_sparse_kronecker_product()
|
D | mpreal_support.cpp | 47 VERIFY_IS_EQUAL(eig.info(), Success); in test_mpreal_support()
|