/external/eigen/test/eigen2/ |
D | eigen2_cwiseop.cpp | 76 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().abs2()); in cwiseops() 77 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops() 78 VERIFY_IS_APPROX(m1.cwise().pow(3), m1.cwise().cube()); in cwiseops() 80 VERIFY_IS_APPROX(m1 + mones, m1.cwise()+Scalar(1)); in cwiseops() 81 VERIFY_IS_APPROX(m1 - mones, m1.cwise()-Scalar(1)); in cwiseops() 82 m3 = m1; m3.cwise() += 1; in cwiseops() 84 m3 = m1; m3.cwise() -= 1; in cwiseops() 87 VERIFY_IS_APPROX(m2, m2.cwise() * mones); in cwiseops() 88 VERIFY_IS_APPROX(m1.cwise() * m2, m2.cwise() * m1); in cwiseops() 90 m3.cwise() *= m2; in cwiseops() [all …]
|
D | eigen2_array.cpp | 34 VERIFY_IS_APPROX(m1.cwise() + s1, s1 + m1.cwise()); in array() 35 VERIFY_IS_APPROX(m1.cwise() + s1, MatrixType::Constant(rows,cols,s1) + m1); in array() 36 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) ); in array() 38 m3.cwise() += s2; in array() 39 VERIFY_IS_APPROX(m3, m1.cwise() + s2); in array() 41 m3.cwise() -= s1; in array() 42 VERIFY_IS_APPROX(m3, m1.cwise() - s1); in array() 68 VERIFY(((m1.cwise() + Scalar(1)).cwise() > m1).all()); in comparisons() 69 VERIFY(((m1.cwise() - Scalar(1)).cwise() < m1).all()); in comparisons() 74 VERIFY(! (m1.cwise() < m3).all() ); in comparisons() [all …]
|
D | eigen2_triangular.cpp | 68 …VERIFY(m3.template marked<Eigen::LowerTriangular>().solveTriangular(m3).cwise().abs().isIdentity(t… in triangular() 70 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular() 74 VERIFY(m4.cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular() 77 …VERIFY(m3.template marked<Eigen::UpperTriangular>().solveTriangular(m3).cwise().abs().isIdentity(t… in triangular() 79 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular() 83 VERIFY(m4.cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
|
D | eigen2_nomalloc.cpp | 42 VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); in nomalloc()
|
D | product.h | 17 return !((m1-m2).cwise().abs2().maxCoeff() < epsilon * epsilon 18 * std::max(m1.cwise().abs2().maxCoeff(), m2.cwise().abs2().maxCoeff()));
|
D | eigen2_sparse_basic.cpp | 217 VERIFY_IS_APPROX(m3.cwise()*(m1+m2), refM3.cwise()*(refM1+refM2)); in sparse_basic() 230 VERIFY_IS_APPROX(m3.cwise()*refM4, refM3.cwise()*refM4); in sparse_basic()
|
D | eigen2_linearstructure.cpp | 66 VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); in linearStructure()
|
D | eigen2_eigensolver.cpp | 67 VERIFY_IS_APPROX(_evec.cwise().abs(), eiSymm.eigenvectors().cwise().abs()); in selfadjointeigensolver()
|
D | eigen2_geometry.cpp | 164 t1.prescale(v1.cwise().inverse()); in geometry() 218 t4.scale(v3.cwise().inverse()); in geometry() 248 …* (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar… in geometry()
|
D | eigen2_geometry_with_eigen2_prefix.cpp | 166 t1.prescale(v1.cwise().inverse()); in geometry() 220 t4.scale(v3.cwise().inverse()); in geometry() 250 …* (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar… in geometry()
|
D | eigen2_regression.cpp | 39 Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum(); in makeNoisyCohyperplanarPoints()
|
/external/eigen/test/ |
D | cwiseop.cpp | 40 VERIFY_IS_APPROX(m1.cwise() / m2, m1.cwise() * (m2.cwise().inverse())); in cwiseops_real_only() 41 m3 = m1.cwise().abs().cwise().sqrt(); in cwiseops_real_only() 42 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs()); in cwiseops_real_only() 43 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs()); in cwiseops_real_only() 44 VERIFY_IS_APPROX(m1.cwise().abs().cwise().log().cwise().exp() , m1.cwise().abs()); in cwiseops_real_only() 46 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops_real_only() 47 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1); in cwiseops_real_only() 48 VERIFY_IS_APPROX(m3.cwise().pow(-1), m3.cwise().inverse()); in cwiseops_real_only() 49 m3 = m1.cwise().abs(); in cwiseops_real_only() 50 VERIFY_IS_APPROX(m3.cwise().pow(RealScalar(0.5)), m3.cwise().sqrt()); in cwiseops_real_only() [all …]
|
D | eigen2support.cpp | 30 VERIFY_IS_APPROX(m1.cwise() + s1, s1 + m1.cwise()); in eigen2support() 31 VERIFY_IS_APPROX(m1.cwise() + s1, MatrixType::Constant(rows,cols,s1) + m1); in eigen2support() 32 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) ); in eigen2support() 34 m3.cwise() += s2; in eigen2support() 35 VERIFY_IS_APPROX(m3, m1.cwise() + s2); in eigen2support() 37 m3.cwise() -= s1; in eigen2support() 38 VERIFY_IS_APPROX(m3, m1.cwise() - s1); in eigen2support()
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
D | AlignedBox.h | 56 inline bool isNull() const { return (m_min.cwise() > m_max).any(); } in isNull() 76 { return (m_min.cwise()<=p).all() && (p.cwise()<=m_max).all(); } in contains() 80 { return (m_min.cwise()<=(b.min)()).all() && ((b.max)().cwise()<=m_max).all(); } in contains() 84 { m_min = (m_min.cwise().min)(p); m_max = (m_max.cwise().max)(p); return *this; } in extend() 88 { m_min = (m_min.cwise().min)(b.m_min); m_max = (m_max.cwise().max)(b.m_max); return *this; } in extend() 92 { m_min = (m_min.cwise().max)(b.m_min); m_max = (m_max.cwise().min)(b.m_max); return *this; } in clamp()
|
D | Scaling.h | 79 { return Scaling(coeffs().cwise() * other.coeffs()); } 107 { return Scaling(coeffs().cwise().inverse()); } in inverse() 153 res.translation() = m_coeffs.cwise() * t.vector();
|
D | AngleAxis.h | 209 res.diagonal() = (cos1_axis.cwise() * m_axis).cwise() + c;
|
/external/eigen/bench/ |
D | vdw_new.cpp | 24 return (interactions2.cwise()/interactions1) in E_VDW() 25 .cwise().cube() in E_VDW() 26 .cwise().square() in E_VDW() 27 .cwise().square() in E_VDW()
|
D | benchmarkXcwise.cpp | 31 m = VECTYPE::Ones(VECSIZE) + 0.00005 * (m.cwise().square() + m/4); in main()
|
D | quat_slerp.cpp | 206 maxerr = maxerr.cwise().max(err); in main()
|
/external/eigen/doc/examples/ |
D | MatrixBase_cwise_const.cpp | 15 cout << m.cwise() * n << endl; in main() 17 cout << m.cwise().pow(3) << endl; in main()
|
/external/eigen/doc/ |
D | tutorial.cpp | 38 m4 = m4.cwise()*m4; in main() 39 m3 = m3.cwise().cos(); in main()
|
D | A05_PortingFrom2To3.dox | 82 were achieved using the .cwise() prefix, e.g.: 83 \code a.cwise() * b \endcode 84 In Eigen3 this .cwise() prefix has been superseded by a new kind of matrix type called 91 Note that the .array() function is not at all a synonym of the deprecated .cwise() prefix. 92 While the .cwise() prefix changed the behavior of the following operator, the array() function perf… 102 c = (a.cwise().abs().cwise().pow(3)).cwise() * (b.cwise().abs().cwise().sin());
|
/external/eigen/Eigen/src/Eigen2Support/ |
D | Cwise.h | 172 inline const Cwise<Derived> MatrixBase<Derived>::cwise() const in cwise() function 185 inline Cwise<Derived> MatrixBase<Derived>::cwise() in cwise() function
|
D | LeastSquares.h | 164 result->offset() = - (result->normal().cwise()* mean).sum();
|
/external/eigen/Eigen/src/Core/ |
D | MatrixBase.h | 475 inline const Cwise<Derived> cwise() const; 476 inline Cwise<Derived> cwise();
|