Home
last modified time | relevance | path

Searched refs:squaredNorm (Results 1 – 25 of 47) sorted by relevance

12

/external/eigen/Eigen/src/Core/
DDot.h93 …umTraits<typename internal::traits<Derived>::Scalar>::Real MatrixBase<Derived>::squaredNorm() const
107 return numext::sqrt(squaredNorm());
125 RealScalar z = n.squaredNorm();
144 RealScalar z = squaredNorm();
169 RealScalar z = (n/w).squaredNorm();
191 RealScalar z = (derived()/w).squaredNorm();
284 …t::abs2(nested.dot(otherNested)) <= prec * prec * nested.squaredNorm() * otherNested.squaredNorm();
304 if(!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec))
/external/eigen/test/
Dstable_norm.cpp89 …VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default nor… in stable_norm()
96 …VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the defau… in stable_norm()
118 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY((numext::isnan)(v.squaredNorm())); in stable_norm()
129 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY(isPlusInf(v.squaredNorm())); in stable_norm()
143 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY(isPlusInf(v.squaredNorm())); in stable_norm()
160 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY((numext::isnan)(v.squaredNorm())); in stable_norm()
Dcuda_basic.cu92 out[i*N+4] = x1.matrix().squaredNorm(); in operator ()()
96 out[i*N+8] = x1.matrix().colwise().squaredNorm().sum(); in operator ()()
Darray_for_matrix.cpp44 VERIFY_IS_MUCH_SMALLER_THAN(m1.colwise().sum().sum() - m1.sum(), m1.squaredNorm()); in array_for_matrix()
45 VERIFY_IS_MUCH_SMALLER_THAN(m1.rowwise().sum().sum() - m1.sum(), m1.squaredNorm()); in array_for_matrix()
46 …LER_THAN(m1.colwise().sum() + m2.colwise().sum() - (m1+m2).colwise().sum(), (m1+m2).squaredNorm()); in array_for_matrix()
47 …LER_THAN(m1.rowwise().sum() - m2.rowwise().sum() - (m1-m2).rowwise().sum(), (m1-m2).squaredNorm()); in array_for_matrix()
Dsparse_vector.cpp96 VERIFY_IS_APPROX(v1.squaredNorm(), refV1.squaredNorm()); in sparse_vector()
Dgeo_alignedbox.cpp127 VERIFY_IS_APPROX( 53.0f, box.diagonal().squaredNorm() ); in specificTest1()
154 VERIFY_IS_APPROX( 62, box.diagonal().squaredNorm() ); in specificTest2()
Deigensolver_complex.cpp65 …ion<RealScalar>()*test_precision<RealScalar>()*numext::maxi(vec1.squaredNorm(),vec2.squaredNorm()); in verify_is_approx_upto_permutation()
/external/eigen/unsupported/test/
Dlevenberg_marquardt.cpp302 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
323 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
382 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
399 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
473 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 1.5324382854E+00); in testNistHahn1()
495 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 1.5324382854E+00); in testNistHahn1()
559 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
576 VERIFY_IS_APPROX(lm.fvec().squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
637 VERIFY(lm.fvec().squaredNorm() <= 1.4307867721E-25); in testNistLanczos1()
658 VERIFY(lm.fvec().squaredNorm() <= 1.4307867721E-25); in testNistLanczos1()
[all …]
DNonLinearOptimization.cpp692 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
713 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
772 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
789 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
862 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.5324382854E+00); in testNistHahn1()
884 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.5324382854E+00); in testNistHahn1()
948 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
965 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
1027 std::cout << lm.fvec.squaredNorm() << "\n"; in testNistLanczos1()
1028 VERIFY(lm.fvec.squaredNorm() <= 1.4307867721E-25); in testNistLanczos1()
[all …]
DBVH.cpp55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …ect(const BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radiu… in minimumOnObject()
/external/eigen/Eigen/src/SparseCore/
DSparseFuzzy.h24 …return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actu… in isApprox()
DSparseDot.h77 SparseMatrixBase<Derived>::squaredNorm() const in squaredNorm() function
87 return sqrt(squaredNorm()); in norm()
/external/eigen/Eigen/src/IterativeLinearSolvers/
DBiCGSTAB.h45 RealScalar r0_sqnorm = r0.squaredNorm(); in bicgstab()
46 RealScalar rhs_sqnorm = rhs.squaredNorm(); in bicgstab()
67 while ( r.squaredNorm() > tol2 && i<maxIters ) in bicgstab()
78 rho = r0_sqnorm = r.squaredNorm(); in bicgstab()
95 RealScalar tmp = t.squaredNorm(); in bicgstab()
104 tol_error = sqrt(r.squaredNorm()/rhs_sqnorm); in bicgstab()
DLeastSquareConjugateGradient.h46 RealScalar rhsNorm2 = (mat.adjoint()*rhs).squaredNorm(); in least_square_conjugate_gradient()
55 RealScalar residualNorm2 = normal_residual.squaredNorm(); in least_square_conjugate_gradient()
73 Scalar alpha = absNew / tmp.squaredNorm(); // the amount we travel on dir in least_square_conjugate_gradient()
78 residualNorm2 = normal_residual.squaredNorm(); in least_square_conjugate_gradient()
DConjugateGradient.h45 RealScalar rhsNorm2 = rhs.squaredNorm(); in conjugate_gradient()
54 RealScalar residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
76 residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
/external/eigen/doc/examples/
DTutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp18 cout << "v.squaredNorm() = " << v.squaredNorm() << endl; in main()
24 cout << "m.squaredNorm() = " << m.squaredNorm() << endl; in main()
DTutorial_ReductionsVisitorsBroadcasting_broadcast_1nn.cpp20 (m.colwise() - v).colwise().squaredNorm().minCoeff(&index); in main()
/external/eigen/doc/snippets/
DTutorial_Map_using.cpp15 cout << "Squared euclidean distance: " << (m1-m2).squaredNorm() << endl;
17 (m1-m2map).squaredNorm() << endl;
DPartialRedux_squaredNorm.cpp3 cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << endl;
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DIterationController.h134 { return converged(v.squaredNorm()); } in converged()
148 { return finished(double(v.squaredNorm())); } in finished()
DMINRES.h41 const RealScalar rhsNorm2(rhs.squaredNorm()); in minres()
59 RealScalar residualNorm2(v_new.squaredNorm()); in minres()
/external/eigen/doc/
DTutorialReductionsVisitorsBroadcasting.dox29 …\f$) squared norm of a vector can be obtained \link MatrixBase::squaredNorm() squaredNorm() \endli…
31 …link method, which returns the square root of \link MatrixBase::squaredNorm() squaredNorm() \endli…
226 …ean distance with the partial reduction named \link MatrixBase::squaredNorm() squaredNorm() \endli…
239 (m.colwise() - v).colwise().squaredNorm().minCoeff(&index);
253 …- <tt>(m.colwise() - v).colwise().squaredNorm()</tt> is a partial reduction, computing the squared…
255 \mbox{(m.colwise() - v).colwise().squaredNorm()} =
DCustomizingEigen_Plugins.dox28 inline RealScalar squaredLength() const { return squaredNorm(); }
30 inline RealScalar invLength(void) const { return fast_inv_sqrt(squaredNorm()); }
34 { return (derived() - other.derived()).squaredNorm(); }
/external/eigen/unsupported/Eigen/
DAlignedVector3173 inline Scalar squaredNorm() const
176 return m_coeffs.squaredNorm();
182 return sqrt(squaredNorm());
/external/eigen/unsupported/doc/examples/
DBVH_Example.cpp20 …OnObjectObject(const Vector2d &v1, const Vector2d &v2) { ++calls; return (v1 - v2).squaredNorm(); } in minimumOnObjectObject()

12