Home
last modified time | relevance | path

Searched refs:cwise (Results 1 – 25 of 28) sorted by relevance

12

/external/eigen/test/eigen2/
Deigen2_cwiseop.cpp76 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 …]
Deigen2_array.cpp34 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 …]
Deigen2_triangular.cpp68 …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()
Deigen2_nomalloc.cpp42 VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); in nomalloc()
Dproduct.h17 return !((m1-m2).cwise().abs2().maxCoeff() < epsilon * epsilon
18 * std::max(m1.cwise().abs2().maxCoeff(), m2.cwise().abs2().maxCoeff()));
Deigen2_sparse_basic.cpp217 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()
Deigen2_linearstructure.cpp66 VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); in linearStructure()
Deigen2_eigensolver.cpp67 VERIFY_IS_APPROX(_evec.cwise().abs(), eiSymm.eigenvectors().cwise().abs()); in selfadjointeigensolver()
Deigen2_geometry.cpp164 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()
Deigen2_geometry_with_eigen2_prefix.cpp166 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()
Deigen2_regression.cpp39 Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum(); in makeNoisyCohyperplanarPoints()
/external/eigen/test/
Dcwiseop.cpp40 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 …]
Deigen2support.cpp30 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/
DAlignedBox.h56 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()
DScaling.h79 { return Scaling(coeffs().cwise() * other.coeffs()); }
107 { return Scaling(coeffs().cwise().inverse()); } in inverse()
153 res.translation() = m_coeffs.cwise() * t.vector();
DAngleAxis.h209 res.diagonal() = (cos1_axis.cwise() * m_axis).cwise() + c;
/external/eigen/bench/
Dvdw_new.cpp24 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()
DbenchmarkXcwise.cpp31 m = VECTYPE::Ones(VECSIZE) + 0.00005 * (m.cwise().square() + m/4); in main()
Dquat_slerp.cpp206 maxerr = maxerr.cwise().max(err); in main()
/external/eigen/doc/examples/
DMatrixBase_cwise_const.cpp15 cout << m.cwise() * n << endl; in main()
17 cout << m.cwise().pow(3) << endl; in main()
/external/eigen/doc/
Dtutorial.cpp38 m4 = m4.cwise()*m4; in main()
39 m3 = m3.cwise().cos(); in main()
DA05_PortingFrom2To3.dox82 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/
DCwise.h172 inline const Cwise<Derived> MatrixBase<Derived>::cwise() const in cwise() function
185 inline Cwise<Derived> MatrixBase<Derived>::cwise() in cwise() function
DLeastSquares.h164 result->offset() = - (result->normal().cwise()* mean).sum();
/external/eigen/Eigen/src/Core/
DMatrixBase.h475 inline const Cwise<Derived> cwise() const;
476 inline Cwise<Derived> cwise();

12