Searched refs:selfadjointView (Results 1 - 25 of 45) sorted by relevance

12

/external/eigen/doc/snippets/
H A DSelfAdjointView_operatorNorm.cpp3 << ones.selfadjointView<Lower>().operatorNorm() << endl;
H A DSelfAdjointView_eigenvalues.cpp2 VectorXd eivals = ones.selfadjointView<Lower>().eigenvalues();
/external/eigen/test/
H A Dsparse_permutations.cpp35 up_sym_d = mat_d.template selfadjointView<Upper>();
36 lo_sym_d = mat_d.template selfadjointView<Lower>();
68 res = mat.template selfadjointView<Upper>().twistedBy(p_null);
72 res = mat.template selfadjointView<Lower>().twistedBy(p_null);
77 res = up.template selfadjointView<Upper>().twistedBy(p_null);
81 res = lo.template selfadjointView<Lower>().twistedBy(p_null);
86 res = mat.template selfadjointView<Upper>();
90 res = mat.template selfadjointView<Lower>();
94 res = up.template selfadjointView<Upper>();
98 res = lo.template selfadjointView<Lowe
[all...]
H A Deigensolver_selfadjoint.cpp49 VERIFY((symmA.template selfadjointView<Lower>() * eiSymm.eigenvectors()).isApprox(
51 VERIFY_IS_APPROX(symmA.template selfadjointView<Lower>().eigenvalues(), eiSymm.eigenvalues());
54 VERIFY((symmA.template selfadjointView<Lower>() * eiDirect.eigenvectors()).isApprox(
56 VERIFY_IS_APPROX(symmA.template selfadjointView<Lower>().eigenvalues(), eiDirect.eigenvalues());
65 VERIFY((symmA.template selfadjointView<Lower>() * eiSymmGen.eigenvectors()).isApprox(
66 symmB.template selfadjointView<Lower>() * (eiSymmGen.eigenvectors() * eiSymmGen.eigenvalues().asDiagonal()), largerEps));
71 VERIFY((symmB.template selfadjointView<Lower>() * (symmA.template selfadjointView<Lower>() * eiSymmGen.eigenvectors())).isApprox(
77 VERIFY((symmA.template selfadjointView<Lower>() * (symmB.template selfadjointView<Lowe
[all...]
H A Dproduct_symm.cpp39 m3 = m2.template selfadjointView<Lower>();
41 VERIFY_IS_APPROX(rhs12 = (s1*m2).template selfadjointView<Lower>() * (s2*rhs1),
45 m3 = m2.template selfadjointView<Upper>();
47 VERIFY_IS_APPROX(rhs12 += (s1*m2).template selfadjointView<Upper>() * (s2*rhs1),
51 VERIFY_IS_APPROX(rhs12 = (s1*m2).template selfadjointView<Lower>() * (s2*rhs2.adjoint()),
55 VERIFY_IS_APPROX(rhs12 = (s1*m2).template selfadjointView<Upper>() * (s2*rhs2.adjoint()),
59 VERIFY_IS_APPROX(rhs12 = (s1*m2.adjoint()).template selfadjointView<Lower>() * (s2*rhs2.adjoint()),
64 VERIFY_IS_APPROX(rhs12 -= (s1*m2).template selfadjointView<Lower>() * (s2*rhs3),
68 VERIFY_IS_APPROX(rhs12 = (s1*m2.adjoint()).template selfadjointView<Lower>() * (s2*rhs3).conjugate(),
73 VERIFY_IS_APPROX(rhs12.noalias() += s1 * ((m2.adjoint()).template selfadjointView<Lowe
[all...]
H A Dproduct_syrk.cpp36 VERIFY_IS_APPROX((m2.template selfadjointView<Lower>().rankUpdate(rhs2,s1)._expression()),
40 VERIFY_IS_APPROX(m2.template selfadjointView<Upper>().rankUpdate(rhs2,s1)._expression(),
44 VERIFY_IS_APPROX(m2.template selfadjointView<Lower>().rankUpdate(rhs1.adjoint(),s1)._expression(),
48 VERIFY_IS_APPROX(m2.template selfadjointView<Upper>().rankUpdate(rhs1.adjoint(),s1)._expression(),
52 VERIFY_IS_APPROX(m2.template selfadjointView<Lower>().rankUpdate(rhs3.adjoint(),s1)._expression(),
56 VERIFY_IS_APPROX(m2.template selfadjointView<Upper>().rankUpdate(rhs3.adjoint(),s1)._expression(),
60 VERIFY_IS_APPROX((m2.template selfadjointView<Lower>().rankUpdate(m1.col(c),s1)._expression()),
64 VERIFY_IS_APPROX((m2.template selfadjointView<Upper>().rankUpdate(m1.col(c),s1)._expression()),
68 VERIFY_IS_APPROX((m2.template selfadjointView<Lower>().rankUpdate(m1.col(c).conjugate(),s1)._expression()),
72 VERIFY_IS_APPROX((m2.template selfadjointView<Uppe
[all...]
H A Dselfadjoint.cpp12 // This file tests the basic selfadjointView API,
30 m3 = m1.template selfadjointView<Upper>();
35 m3 = m1.template selfadjointView<Lower>();
42 Matrix3d m = Matrix3d::Random().selfadjointView<Lower>();
H A Dnomalloc.cpp74 m2.col(0).noalias() = m1.template selfadjointView<Upper>() * m1.col(0);
75 m2.col(0).noalias() -= m1.adjoint().template selfadjointView<Upper>() * m1.col(0);
76 m2.col(0).noalias() -= m1.template selfadjointView<Upper>() * m1.row(0).adjoint();
77 m2.col(0).noalias() -= m1.adjoint().template selfadjointView<Upper>() * m1.row(0).adjoint();
79 m2.row(0).noalias() = m1.row(0) * m1.template selfadjointView<Upper>();
80 m2.row(0).noalias() -= m1.row(0) * m1.adjoint().template selfadjointView<Upper>();
81 m2.row(0).noalias() -= m1.col(0).adjoint() * m1.template selfadjointView<Upper>();
82 m2.row(0).noalias() -= m1.col(0).adjoint() * m1.adjoint().template selfadjointView<Upper>();
85 m2.template selfadjointView<Lower>().rankUpdate(m1.col(0),-1);
86 m2.template selfadjointView<Lowe
[all...]
H A Dproduct_notemporary.cpp87 VERIFY_EVALUATION_COUNT( m3.noalias() -= (s1 * m1).adjoint().template selfadjointView<Lower>() * (-m2*s3).adjoint(), 0);
88 VERIFY_EVALUATION_COUNT( m3.noalias() = s2 * m2.adjoint() * (s1 * m1.adjoint()).template selfadjointView<Upper>(), 0);
89 VERIFY_EVALUATION_COUNT( rm3.noalias() = (s1 * m1.adjoint()).template selfadjointView<Lower>() * m2.adjoint(), 0);
92 VERIFY_EVALUATION_COUNT( m3.col(c0).noalias() = (s1 * m1).adjoint().template selfadjointView<Lower>() * (-m2.row(c0)*s3).adjoint(), 1);
93 VERIFY_EVALUATION_COUNT( m3.col(c0).noalias() -= (s1 * m1).adjoint().template selfadjointView<Upper>() * (-m2.row(c0)*s3).adjoint(), 1);
95 VERIFY_EVALUATION_COUNT( m3.block(r0,c0,r1,c1).noalias() += m1.block(r0,r0,r1,r1).template selfadjointView<Upper>() * (s1*m2.block(r0,c0,r1,c1)), 0);
96 VERIFY_EVALUATION_COUNT( m3.block(r0,c0,r1,c1).noalias() = m1.block(r0,r0,r1,r1).template selfadjointView<Upper>() * m2.block(r0,c0,r1,c1), 0);
98 VERIFY_EVALUATION_COUNT( m3.template selfadjointView<Lower>().rankUpdate(m2.adjoint()), 0);
102 VERIFY_EVALUATION_COUNT( m3.noalias() = m1.block(r0,r0,r1,r1).template selfadjointView<Lower>() * m2.block(r0,c0,r1,c1), 1);
H A Dproduct_selfadjoint.cpp43 m2.template selfadjointView<Lower>().rankUpdate(v1,v2);
47 m2.template selfadjointView<Upper>().rankUpdate(-v1,s2*v2,s3);
51 m2.template selfadjointView<Upper>().rankUpdate(-s2*r1.adjoint(),r2.adjoint()*s3,s1);
57 m2.block(1,1,rows-1,cols-1).template selfadjointView<Lower>().rankUpdate(v1.tail(rows-1),v2.head(cols-1));
H A Dcholesky.cpp173 m2 += symmLo.template selfadjointView<Lower>().llt().solve(matB);
174 VERIFY_IS_APPROX(m2, m1 + symmLo.template selfadjointView<Lower>().llt().solve(matB));
176 m2 -= symmLo.template selfadjointView<Lower>().llt().solve(matB);
177 VERIFY_IS_APPROX(m2, m1 - symmLo.template selfadjointView<Lower>().llt().solve(matB));
179 m2.noalias() += symmLo.template selfadjointView<Lower>().llt().solve(matB);
180 VERIFY_IS_APPROX(m2, m1 + symmLo.template selfadjointView<Lower>().llt().solve(matB));
182 m2.noalias() -= symmLo.template selfadjointView<Lower>().llt().solve(matB);
183 VERIFY_IS_APPROX(m2, m1 - symmLo.template selfadjointView<Lower>().llt().solve(matB));
H A Dsparse_product.cpp167 VERIFY_IS_APPROX(x=mUp.template selfadjointView<Upper>()*b, refX=refS*b);
168 VERIFY_IS_APPROX(x=mLo.template selfadjointView<Lower>()*b, refX=refS*b);
169 VERIFY_IS_APPROX(x=mS.template selfadjointView<Upper|Lower>()*b, refX=refS*b);
/external/eigen/unsupported/test/
H A Dmpreal_support.cpp39 X = S.selfadjointView<Lower>().llt().solve(B);
40 VERIFY_IS_APPROX((S.selfadjointView<Lower>()*X).eval(),B);
49 VERIFY_IS_APPROX((S.selfadjointView<Lower>() * eig.eigenvectors()),
/external/eigen/Eigen/src/Eigenvalues/
H A DGeneralizedSelfAdjointEigenSolver.h185 MatrixType matC = matA.template selfadjointView<Lower>();
198 MatrixType matC = matA.template selfadjointView<Lower>();
211 MatrixType matC = matA.template selfadjointView<Lower>();
H A DMatrixBaseEigenvalues.h129 .template selfadjointView<Lower>()
/external/ceres-solver/internal/ceres/
H A Ddense_normal_cholesky_solver.cc85 lhs.selfadjointView<Eigen::Upper>().rankUpdate(Aref.transpose());
100 lhs.selfadjointView<Eigen::Upper>().llt().solve(rhs);
H A Dline_search_direction.cc258 inverse_hessian_.selfadjointView<Eigen::Lower>());
263 inverse_hessian_.selfadjointView<Eigen::Lower>() *
267 B.selfadjointView<Eigen::Lower>().
278 inverse_hessian_.selfadjointView<Eigen::Lower>() *
H A Dimplicit_schur_complement_test.cc112 schur_solution = lhs->selfadjointView<Eigen::Upper>().llt().solve(*rhs);
159 lhs.selfadjointView<Eigen::Upper>().llt().solve(rhs);
H A Dblock_jacobi_preconditioner.cc97 // col_block_size).selfadjointView<Eigen::Upper>().rankUpdate(m);
113 block = block.selfadjointView<Eigen::Upper>()
H A Dschur_jacobi_preconditioner.cc130 .selfadjointView<Eigen::Upper>()
H A Dschur_eliminator_test.cc162 .selfadjointView<Eigen::Upper>()
176 Matrix delta = (lhs_ref - lhs_expected).selfadjointView<Eigen::Upper>();
H A Dimplicit_schur_complement.cc163 .selfadjointView<Eigen::Upper>()
/external/eigen/blas/
H A Dlevel2_real_impl.h44 if(UPLO(*uplo)==UP) vector(actual_y,*n).noalias() += matrix(a,*n,*n,*lda).selfadjointView<Upper>() * (alpha * vector(actual_x,*n));
45 else if(UPLO(*uplo)==LO) vector(actual_y,*n).noalias() += matrix(a,*n,*n,*lda).selfadjointView<Lower>() * (alpha * vector(actual_x,*n));
92 // if(UPLO(*uplo)==LO) matrix(c,*n,*n,*ldc).selfadjointView<Lower>().rankUpdate(vector(x_cpy,*n), alpha);
93 // else if(UPLO(*uplo)==UP) matrix(c,*n,*n,*ldc).selfadjointView<Upper>().rankUpdate(vector(x_cpy,*n), alpha);
146 if(UPLO(*uplo)==LO) matrix(c,*n,*n,*ldc).selfadjointView<Lower>().rankUpdate(vector(x_cpy,*n), vector(y_cpy,*n), alpha);
147 else if(UPLO(*uplo)==UP) matrix(c,*n,*n,*ldc).selfadjointView<Upper>().rankUpdate(vector(x_cpy,*n), vector(y_cpy,*n), alpha);
H A Dlevel2_cplx_impl.h52 if(UPLO(*uplo)==UP) vector(actual_y,*n).noalias() += matrix(a,*n,*n,*lda).selfadjointView<Upper>() * (alpha * vector(actual_x,*n));
53 else if(UPLO(*uplo)==LO) vector(actual_y,*n).noalias() += matrix(a,*n,*n,*lda).selfadjointView<Lower>() * (alpha * vector(actual_x,*n));
138 // if(UPLO(*uplo)==LO) matrix(a,*n,*n,*lda).selfadjointView<Lower>().rankUpdate(vector(x_cpy,*n), alpha);
139 // else if(UPLO(*uplo)==UP) matrix(a,*n,*n,*lda).selfadjointView<Upper>().rankUpdate(vector(x_cpy,*n), alpha);
185 if(UPLO(*uplo)==LO) matrix(a,*n,*n,*lda).selfadjointView<Lower>().rankUpdate(vector(x_cpy,*n),vector(y_cpy,*n),alpha);
186 else if(UPLO(*uplo)==UP) matrix(a,*n,*n,*lda).selfadjointView<Upper>().rankUpdate(vector(x_cpy,*n),vector(y_cpy,*n),alpha);
/external/eigen/Eigen/src/PaStiXSupport/
H A DPaStiXSupport.h623 out.template selfadjointView<Lower>() = matrix.template selfadjointView<UpLo>();
705 out.template selfadjointView<Lower>() = matrix.template selfadjointView<UpLo>();

Completed in 409 milliseconds

12