Searched defs:sqrt (Results 1 - 25 of 37) sorted by relevance

12

/external/eigen/Eigen/src/plugins/
H A DArrayCwiseUnaryOps.h63 sqrt() const function
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowFloatMath.java47 public static float sqrt(float value) { method in class:ShadowFloatMath
48 return (float) Math.sqrt(value);
/external/deqp/framework/common/
H A DtcuInterval.cpp133 Interval sqrt (const Interval& x) function in namespace:tcu
135 return applyMonotone(std::sqrt, x);
140 return 1.0 / sqrt(x);
/external/fonttools/Lib/fontTools/misc/
H A DbezierTools.py253 from math import sqrt, acos, cos, pi namespace
257 sqrt=sqrt):
274 rDD = sqrt(DD)
308 theta = acos(R/sqrt(Q*Q*Q))
309 rQ2 = -2.0*sqrt(Q)
318 x = pow(sqrt(R2_Q3)+abs(R), 1/3.0)
/external/fonttools/Tools/fontTools/misc/
H A DbezierTools.py253 from math import sqrt, acos, cos, pi namespace
257 sqrt=sqrt):
274 rDD = sqrt(DD)
308 theta = acos(R/sqrt(Q*Q*Q))
309 rQ2 = -2.0*sqrt(Q)
318 x = pow(sqrt(R2_Q3)+abs(R), 1/3.0)
/external/guava/guava/src/com/google/common/math/
H A DBigIntegerMath.java94 * Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
165 // Since sqrt(10) is irrational, log10(x) - floorLog can never be exactly 0.5
179 * {@code sqrt(x)} is not an integer
182 public static BigInteger sqrt(BigInteger x, RoundingMode mode) { method in class:BigIntegerMath
185 return BigInteger.valueOf(LongMath.sqrt(x.longValue(), mode));
221 * a) every iteration (except potentially the first) has guess >= floor(sqrt(x)). This is
222 * because guess' is the arithmetic mean of guess and x / guess, sqrt(x) is the geometric mean,
225 * b) this iteration converges to floor(sqrt(x)). In fact, the number of correct digits doubles
230 * definitely >= floor(sqrt(x)), and then continue the iteration until we reach a fixed point.
256 return DoubleMath.roundToBigInteger(Math.sqrt(DoubleUtil
[all...]
H A DIntMath.java93 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
134 // sqrt(10) is irrational, so log10(x) - logFloor is never exactly 0.5
203 * {@code sqrt(x)} is not an integer
207 public static int sqrt(int x, RoundingMode mode) { method in class:IntMath
237 return (int) Math.sqrt(x);
H A DLongMath.java89 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
132 // sqrt(10) is irrational, so log10(x)-logFloor is never exactly 0.5
240 * {@code sqrt(x)} is not an integer
243 public static long sqrt(long x, RoundingMode mode) { method in class:LongMath
246 return IntMath.sqrt((int) x, mode);
275 long sqrt0 = (long) Math.sqrt(x);
/external/eigen/Eigen/src/Eigen2Support/
H A DCwiseOperators.h92 /** \deprecated ArrayBase::sqrt() */
95 Cwise<ExpressionType>::sqrt() const function in class:Eigen::Cwise
/external/lldb/tools/lldb-perf/lib/
H A DMemoryGauge.cpp154 sqrt (const MemoryStats& arg) function
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DECFieldElement.java23 public abstract ECFieldElement sqrt(); method in class:ECFieldElement
212 * return a sqrt root - the routine verifies that the calculation
215 public ECFieldElement sqrt() method in class:ECFieldElement.Fp
865 // public ECFieldElement sqrt()
1218 public ECFieldElement sqrt() method in class:ECFieldElement.F2m
/external/chromium_org/third_party/skia/src/core/
H A DSkFloat.h49 void sqrt() { fPacked = Sqrt(fPacked); } function in class:SkFloat
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
H A DMatrixSquareRoot.h50 * rest is not touched. See MatrixBase::sqrt() for details on
93 using std::sqrt;
98 sqrtT.coeffRef(i,i) = sqrt(T.coeff(i,i));
271 * MatrixBase::sqrt() for details on how this computation is
284 using std::sqrt;
291 result.coeffRef(i,i) = sqrt(m_A.coeff(i,i));
310 * \sa MatrixSquareRootTriangular, MatrixSquareRootQuasiTriangular, MatrixBase::sqrt()
330 * See MatrixBase::sqrt() for details on how this computation is
412 * MatrixBase::sqrt() and most of the time this is the only way it is
458 const MatrixSquareRootReturnValue<Derived> MatrixBase<Derived>::sqrt() cons function in class:Eigen::MatrixBase
[all...]
/external/skia/src/core/
H A DSkFloat.h49 void sqrt() { fPacked = Sqrt(fPacked); } function in class:SkFloat
/external/stlport/src/
H A Dcomplex.cpp176 result._M_re = ::sqrt(0.5f * (mag + re));
179 result._M_im = ::sqrt(0.5f * (mag - re));
188 sqrt(const complex<float>& z) { return sqrtT(z); } function
191 sqrt(const complex<double>& z) { return sqrtT(z); } function
195 sqrt(const complex<long double>& z) { return sqrtT(z); } function
/external/chromium_org/third_party/boringssl/src/crypto/bn/
H A Dbn_test.c1299 BIGNUM *n = BN_new(), *nn = BN_new(), *sqrt = BN_new(); local
1307 !BN_sqrt(sqrt, nn, ctx)) {
1311 if (BN_cmp(n, sqrt) != 0) {
1327 if (BN_sqrt(sqrt, nn, ctx)) {
1335 BN_free(sqrt);
/external/stlport/stlport/stl/
H A D_cmath.h345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh)
379 _STLP_DMATH_INLINE(sqrt)
405 # if defined (sqrt)
406 inline double __stlp_sqrt(double __x) { return sqrt(__x); }
407 # undef sqrt macro
408 inline double sqrt(double __x) { return __stlp_sqrt(__x); } function
450 _STLP_DEF_MATH_INLINE(sqrt, sqrt)
498 inline long double hypot(long double x, long double y) { return sqrt(x * x + y * y); }
504 inline double hypot(double x, double y) { return sqrt(
[all...]
/external/valgrind/main/memcheck/tests/
H A Dvcpu_fbench.c20 that the inner loops (sin, sqrt) present a workload independent of
350 #define sqrt I_sqrt macro
457 /* sqrt(x) Return square root. Initial guess, then Newton-
460 double sqrt(x) function
570 return atan2(x, sqrt(1 - x * x));
/external/valgrind/main/perf/
H A Dfbench.c16 that the inner loops (sin, sqrt) present a workload independent of
346 #define sqrt I_sqrt macro
453 /* sqrt(x) Return square root. Initial guess, then Newton-
456 double sqrt(x) function
566 return atan2(x, sqrt(1 - x * x));
/external/ceres-solver/include/ceres/
H A Djet.h374 // This is necessary because we want to use the same name (e.g. 'sqrt') for
382 inline double sqrt (double x) { return std::sqrt(x); } function in namespace:ceres
417 // sqrt(a + h) ~= sqrt(a) + h / (2 sqrt(a))
419 Jet<T, N> sqrt(const Jet<T, N>& f) { function in namespace:ceres
420 const T tmp = sqrt(f.a);
431 // acos(a + h) ~= acos(a) - 1 / sqrt(1 - a^2) h
434 const T tmp = - T(1.0) / sqrt(
[all...]
/external/clang/lib/Headers/
H A Dtgmath.h500 // sqrt
508 __tg_sqrt(double __x) {return sqrt(__x);}
526 #undef sqrt macro
527 #define sqrt(__x) __tg_sqrt(__tg_promote1((__x))(__x)) macro
/external/eigen/unsupported/test/mpreal/
H A Dmpreal.h320 friend const mpreal sqrt(const mpreal& v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
321 friend const mpreal sqrt(const unsigned long int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
757 // sqrt
758 const mpreal sqrt(const unsigned int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
759 const mpreal sqrt(const long int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
760 const mpreal sqrt(const int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
761 const mpreal sqrt(const long double v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
762 const mpreal sqrt(const double v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
2009 inline const mpreal sqrt (const mpreal& x, mp_rnd_t r) { MPREAL_UNARY_MATH_FUNCTION_BODY(sqrt); } function in namespace:mpfr
2011 inline const mpreal sqrt(const unsigned long int x, mp_rnd_t r) function in namespace:mpfr
2018 inline const mpreal sqrt(const unsigned int v, mp_rnd_t rnd_mode) function in namespace:mpfr
2023 inline const mpreal sqrt(const long int v, mp_rnd_t rnd_mode) function in namespace:mpfr
2029 inline const mpreal sqrt(const int v, mp_rnd_t rnd_mode) function in namespace:mpfr
2059 inline const mpreal sqrt (const long double v, mp_rnd_t rnd_mode) { return sqrt(mpreal(v),rnd_mode); } function in namespace:mpfr
2060 inline const mpreal sqrt (const double v, mp_rnd_t rnd_mode) { return sqrt(mpreal(v),rnd_mode); } function in namespace:mpfr
[all...]
/external/llvm/include/llvm/Target/
H A DTargetLibraryInfo.h541 /// double sqrt(double x);
542 sqrt, enumerator in enum:llvm::LibFunc::Func
732 case LibFunc::sqrt: case LibFunc::sqrtf: case LibFunc::sqrtl:
/external/chromium_org/v8/src/ia32/
H A Dlithium-codegen-ia32.cc3762 // Math.sqrt(-Infinity) == NaN
3763 Label done, sqrt; local
3772 __ j(not_equal, &sqrt, Label::kNear);
3773 __ j(carry, &sqrt, Label::kNear);
3780 __ bind(&sqrt);
/external/chromium_org/v8/src/x64/
H A Dlithium-codegen-x64.cc3860 // Math.sqrt(-Infinity) == NaN
3861 Label done, sqrt; local
3869 __ j(not_equal, &sqrt, Label::kNear);
3870 __ j(carry, &sqrt, Label::kNear);
3877 __ bind(&sqrt);

Completed in 8041 milliseconds

12