Home
last modified time | relevance | path

Searched refs:abs2 (Results 1 – 25 of 54) sorted by relevance

123

/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
Ddogleg.h95 …/ qnorm * numext::abs2(sgnorm / delta) + sqrt(numext::abs2(temp - delta / qnorm) + (1.-numext::abs… in dogleg()
96 alpha = delta / qnorm * (1. - numext::abs2(sgnorm / delta)) / temp; in dogleg()
DLevenbergMarquardt.h295 actred = 1. - numext::abs2(fnorm1 / fnorm); in minimizeOneStep()
300 temp1 = numext::abs2(wa3.stableNorm() / fnorm); in minimizeOneStep()
301 temp2 = numext::abs2(sqrt(par) * pnorm / fnorm); in minimizeOneStep()
545 actred = 1. - numext::abs2(fnorm1 / fnorm); in minimizeOptimumStorageOneStep()
550 temp1 = numext::abs2(wa3.stableNorm() / fnorm); in minimizeOptimumStorageOneStep()
551 temp2 = numext::abs2(sqrt(par) * pnorm / fnorm); in minimizeOptimumStorageOneStep()
DHybridNonLinearSolver.h257 actred = 1. - numext::abs2(fnorm1 / fnorm); in solveOneStep()
264 prered = 1. - numext::abs2(temp / fnorm); in solveOneStep()
500 actred = 1. - numext::abs2(fnorm1 / fnorm); in solveNumericalDiffOneStep()
507 prered = 1. - numext::abs2(temp / fnorm); in solveNumericalDiffOneStep()
/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialSolver.h86 RealScalar norm2 = numext::abs2( m_roots[0] ); in selectComplexRoot_withRespectToNorm()
89 const RealScalar currNorm2 = numext::abs2( m_roots[i] ); in selectComplexRoot_withRespectToNorm()
125 RealScalar abs2(0);
135 abs2 = m_roots[i].real() * m_roots[i].real();
140 if( pred( currAbs2, abs2 ) )
142 abs2 = currAbs2;
/external/eigen/Eigen/src/Core/
DStableNorm.h24 ssq = ssq * numext::abs2(scale/maxCoeff); in stable_norm_kernel()
104 if(ax > ab2) abig += numext::abs2(ax*s2m); in blueNorm_impl()
105 else if(ax < b1) asml += numext::abs2(ax*s1m); in blueNorm_impl()
106 else amed += numext::abs2(ax); in blueNorm_impl()
140 return abig * sqrt(RealScalar(1) + numext::abs2(asml/abig)); in blueNorm_impl()
DGlobalFunctions.h78 …EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(abs2,scalar_abs2_op,squared absolute value,\sa ArrayBase::abs2 DO…
82 …EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(square,scalar_square_op,square (power 2),\sa Eigen::abs2 DOXCOMMA…
181 EIGEN_ARRAY_DECLARE_GLOBAL_EIGEN_UNARY(abs2,scalar_abs2_op)
DFuzzy.h47 return x.cwiseAbs2().sum() <= numext::abs2(prec) * y.cwiseAbs2().sum();
67 return x.cwiseAbs2().sum() <= numext::abs2(prec * y);
/external/eigen/test/
Dboostmultiprec.cpp134 using Eigen::numext::abs2; in test_relative_error()
135 return sqrt(abs2<Real>(a-b)/Eigen::numext::mini<Real>(abs2(a),abs2(b))); in test_relative_error()
Dnumext.cpp32 VERIFY_IS_APPROX( numext::abs2(x), numext::abs2(numext::abs(x)) ); in check_abs()
Darray.cpp247 VERIFY_IS_APPROX(m1.abs2(), abs2(m1)); in array_real()
279 VERIFY_IS_APPROX(m3, sqrt(abs2(m1))); in array_real()
284 …VERIFY_IS_APPROX(numext::abs2(numext::real(m1)) + numext::abs2(numext::imag(m1)), numext::abs2(m1)… in array_real()
285 VERIFY_IS_APPROX(numext::abs2(real(m1)) + numext::abs2(imag(m1)), numext::abs2(m1)); in array_real()
357 VERIFY_IS_APPROX(m1.abs2(), abs2(m1)); in array_complex()
403 VERIFY_IS_APPROX(abs(m1), sqrt(abs2(m1))); in array_complex()
Deigen2support.cpp48 using numext::abs2; in eigen2support()
51 VERIFY_IS_EQUAL(ei_abs2(s1), abs2(s1)); in eigen2support()
/external/eigen/unsupported/test/
DFFTW.cpp40 totalpower += numext::abs2(acc); in fft_rmse()
43 difpower += numext::abs2(dif); in fft_rmse()
57 totalpower += (long double)((numext::abs2( buf1[k] ) + numext::abs2(buf2[k]) )/2); in dif_rmse()
58 difpower += (long double)(numext::abs2(buf1[k] - buf2[k])); in dif_rmse()
Dmpreal_support.cpp36 VERIFY(Eigen::internal::isApprox(A.array().abs2().sum(), A.squaredNorm())); in test_mpreal_support()
38 VERIFY_IS_APPROX(A.array().abs2().sqrt(), A.array().abs()); in test_mpreal_support()
Dcxx11_tensor_of_complex.cpp43 Tensor<double, 1> abs2 = data2.abs(); in test_abs() local
46 VERIFY_IS_APPROX(abs2(i), std::abs(data2(i))); in test_abs()
/external/eigen/Eigen/src/Jacobi/
DJacobi.h98 RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); in makeJacobi()
109 RealScalar n = RealScalar(1) / sqrt(numext::abs2(t)+RealScalar(1)); in makeJacobi()
182 RealScalar p2 = numext::abs2(ps); in makeGivens()
184 RealScalar q2 = numext::abs2(qs); in makeGivens()
197 RealScalar p2 = numext::abs2(ps); in makeGivens()
199 RealScalar q2 = numext::abs2(qs); in makeGivens()
235 Scalar u = sqrt(Scalar(1) + numext::abs2(t)); in makeGivens()
245 Scalar u = sqrt(Scalar(1) + numext::abs2(t)); in makeGivens()
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
Dthumb2-it-block.ll17 %abs2 = select i1 %cmp2, i32 %sub2, i32 %b
18 %add = add nsw i32 %abs1, %abs2
/external/llvm/test/CodeGen/ARM/
Dthumb2-it-block.ll12 %abs2 = select i1 %cmp2, i32 %sub2, i32 %b
13 %add = add nsw i32 %abs1, %abs2
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLMonestep.h112 actred = 1. - numext::abs2(fnorm1 / m_fnorm); in minimizeOneStep()
117 temp1 = numext::abs2(m_wa3.stableNorm() / m_fnorm); in minimizeOneStep()
118 temp2 = numext::abs2(sqrt(m_par) * pnorm / m_fnorm); in minimizeOneStep()
/external/eigen/Eigen/src/Householder/
DHouseholder.h80 if(tailSqNorm <= tol && numext::abs2(numext::imag(c0))<=tol) in makeHouseholder()
88 beta = sqrt(numext::abs2(c0) + tailSqNorm); in makeHouseholder()
/external/eigen/doc/snippets/
DCwise_abs2.cpp2 cout << v.abs2() << endl;
/external/eigen/Eigen/src/Eigenvalues/
DSelfAdjointEigenSolver.h723 …const Scalar t0 = Scalar(0.5) * sqrt( numext::abs2(m(0,0)-m(1,1)) + Scalar(4)*numext::abs2(m(1,0))…
766 Scalar a2 = numext::abs2(scaledMat(0,0));
767 Scalar c2 = numext::abs2(scaledMat(1,1));
768 Scalar b2 = numext::abs2(scaledMat(1,0));
823 RealScalar e2 = numext::abs2(subdiag[end-1]);
/external/eigen/unsupported/Eigen/src/AutoDiff/
DAutoDiffScalar.h581 EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(abs2,
582 using numext::abs2;
583 return Eigen::MakeAutoDiffScalar(abs2(x.value()), x.derivatives() * (Scalar(2)*x.value()));)
641 …return Eigen::MakeAutoDiffScalar(tan(x.value()),x.derivatives() * (Scalar(1)/numext::abs2(cos(x.va…
646 …return Eigen::MakeAutoDiffScalar(asin(x.value()),x.derivatives() * (Scalar(1)/sqrt(1-numext::abs2(…
651 …akeAutoDiffScalar(acos(x.value()),x.derivatives() * (Scalar(-1)/sqrt(1-numext::abs2(x.value()))));)
656 …return Eigen::MakeAutoDiffScalar(tanh(x.value()),x.derivatives() * (Scalar(1)/numext::abs2(cosh(x.…
/external/eigen/Eigen/src/IterativeLinearSolvers/
DIncompleteCholesky.h236 m_scale(j) += numext::abs2(vals(k)); in factorize()
238 m_scale(rowIdx[k]) += numext::abs2(vals(k)); in factorize()
347 vals[colPtr[i]] -= numext::abs2(col_vals(k)); in factorize()
/external/eigen/blas/
Dlevel1_impl.h123 norm = scale*sqrt((numext::abs2(a/scale)) + (numext::abs2(b/scale))); in EIGEN_BLAS_FUNC()
/external/eigen/Eigen/src/misc/
DRealSvd2x2.h42 RealScalar tmp = sqrt(RealScalar(1) + numext::abs2(u)); in real_2x2_jacobi_svd()

123