HomeSort by relevance Sort by last modified time
    Searched defs:sqrt (Results 1 - 25 of 32) sorted by null

1 2

  /external/eigen/Eigen/src/plugins/
ArrayCwiseUnaryOps.h 63 sqrt() const function
  /external/deqp/framework/common/
tcuInterval.cpp 133 Interval sqrt (const Interval& x) function in namespace:tcu
135 return applyMonotone(std::sqrt, x);
140 return 1.0 / sqrt(x);
  /external/eigen/Eigen/src/Eigen2Support/
CwiseOperators.h 92 /** \deprecated ArrayBase::sqrt() */
95 Cwise<ExpressionType>::sqrt() const function in class:Eigen::Cwise
  /external/fonttools/Lib/fontTools/misc/
bezierTools.py 253 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/lldb/tools/lldb-perf/lib/
MemoryGauge.cpp 154 sqrt (const MemoryStats& arg) function
  /external/chromium_org/third_party/skia/src/core/
SkFloat.h 49 void sqrt() { fPacked = Sqrt(fPacked); } function in class:SkFloat
50 void setSqrt(const SkFloat& a) { fPacked = Sqrt(a.fPacked); }
102 static int32_t Sqrt(int32_t);
  /external/guava/guava/src/com/google/common/math/
IntMath.java 93 // 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);
BigIntegerMath.java 94 * 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(DoubleUtils.bigToDouble(x)), HALF_EVEN)
    [all...]
LongMath.java 89 // 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/guava/guava-tests/test/com/google/common/collect/
SortedMapsTest.java 64 Function<Integer, Double> sqrt = new Function<Integer, Double>() { local
67 return Math.sqrt(in);
71 SortedMaps.transformValues(map, sqrt);
  /external/guava/guava-tests/test/com/google/common/math/
IntMathTest.java 50 BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR).intValue(),
66 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR).longValue());
84 @GwtIncompatible("sqrt")
86 assertEquals(IntMath.sqrt(Integer.MAX_VALUE, FLOOR), IntMath.FLOOR_SQRT_MAX_INT);
200 // Simple test to cover sqrt(0) for all types and all modes.
201 @GwtIncompatible("sqrt")
204 assertEquals(0, IntMath.sqrt(0, mode));
208 @GwtIncompatible("sqrt")
213 IntMath.sqrt(x, mode);
220 /* Relies on the correctness of BigIntegerMath.sqrt for all modes except UNNECESSARY. *
    [all...]
LongMathTest.java 48 assertEquals(BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR).longValue(),
64 assertEquals(BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
68 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.HALF_POWERS_OF_10.length + 1), FLOOR);
73 assertEquals(LongMath.sqrt(Long.MAX_VALUE, FLOOR), LongMath.FLOOR_SQRT_MAX_LONG);
237 LongMath.sqrt(x, mode);
244 // Relies on the correctness of BigIntegerMath.sqrt for all modes except UNNECESSARY.
250 assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
255 /* Relies on the correctness of sqrt(long, FLOOR). */
258 long logFloor = LongMath.sqrt(x, FLOOR)
    [all...]
BigIntegerMathTest.java 54 assertEquals(BigIntegerMath.sqrt(
250 assertEquals(ZERO, BigIntegerMath.sqrt(ZERO, mode));
258 BigIntegerMath.sqrt(x, mode);
268 BigInteger result = BigIntegerMath.sqrt(x, mode);
279 BigInteger result = BigIntegerMath.sqrt(x, mode);
287 // Relies on the correctness of sqrt(BigInteger, FLOOR).
290 BigInteger floor = BigIntegerMath.sqrt(x, FLOOR);
294 assertEquals(floor, BigIntegerMath.sqrt(x, UNNECESSARY));
304 BigInteger result = BigIntegerMath.sqrt(x, HALF_UP);
307 // sqrt(x) < result + 0.5, so 4 * x < (result + 0.5)^2 *
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
Target.java 204 Floaty sqrt(Floaty a) { method in class:Target
205 //Log.w("Target.sqrt", "a: " + a.toString());
209 double f = Math.sqrt(a.mValue);
210 double min = Math.sqrt(a.mMinValue);
211 double max = Math.sqrt(a.mMaxValue);
251 * discontinuous, e.g. sqrt around 0, lgamma around -1, -2, -3 and tan around pi/2.
CoreMathVerifier.java 108 static native float sqrt(float x); method in class:CoreMathVerifier
362 Target.Floaty d = t.sqrt(sum);
416 Target.Floaty l = t.sqrt(sum);
504 return t.divide(t.new32(1.f), t.sqrt(in));
531 static private Target.Floaty sqrt(float f, Target t) { method in class:CoreMathVerifier
533 return t.sqrt(in);
    [all...]
  /external/eigen/unsupported/Eigen/src/MatrixFunctions/
MatrixSquareRoot.h 50 * 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECFieldElement.java 23 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
    [all...]
  /external/ceres-solver/include/ceres/
jet.h 374 // 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(T(1.0) - f.a * f.a)
    [all...]
  /external/chromium_org/third_party/boringssl/src/crypto/bn/
bn_test.c 1299 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/clang/lib/Headers/
tgmath.h 500 // 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/
mpreal.h 320 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());
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/
TargetLibraryInfo.h 541 /// 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/
lithium-codegen-ia32.cc 3763 Label done, sqrt; local
    [all...]
  /external/chromium_org/v8/src/x64/
lithium-codegen-x64.cc 3861 Label done, sqrt; local
    [all...]
  /external/chromium_org/v8/src/x87/
lithium-codegen-x87.cc 4091 Label done, sqrt; local
    [all...]

Completed in 836 milliseconds

1 2