HomeSort by relevance Sort by last modified time
    Searched refs:abs (Results 151 - 175 of 1209) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/replicaisland/src/com/replica/replicaisland/
PhysicsComponent.java 86 if (touchingFloor && currentVelocity.y <= 0.0f && Math.abs(newVelocity.x) > 0.0f
92 float frictionCoeffecient = Math.abs(currentVelocity.x) > 0.0f ?
98 final float maxFriction = Math.abs(gravityVector.y) * getMass()
101 if (maxFriction > Math.abs(newVelocity.x)) {
109 if (Math.abs(newVelocity.x) < 0.01f) {
113 if (Math.abs(newVelocity.y) < 0.01f) {
  /external/valgrind/main/none/tests/mips32/
FPUarithmetic.stdout.exp 2 abs.s 0.000000 0.000000
3 abs.s 456.248962 456.248962
4 abs.s 3.000000 3.000000
5 abs.s 1.000000 -1.000000
6 abs.s 1384.599976 1384.599976
7 abs.s 7.294568 -7.294568
8 abs.s 1000000000.000000 1000000000.000000
9 abs.s 5786.470215 -5786.470215
10 abs.s 1752.000000 1752.000000
11 abs.s 0.002457 0.00245
    [all...]
  /external/eigen/test/
array_for_matrix.cpp 113 m3(i,j) = internal::abs(m1(i,j))<mid ? 0 : m1(i,j);
114 VERIFY_IS_APPROX( (m1.array().abs()<MatrixType::Constant(rows,cols,mid).array())
117 VERIFY_IS_APPROX( (m1.array().abs()<MatrixType::Constant(rows,cols,mid).array())
119 VERIFY_IS_APPROX( (m1.array().abs()>=MatrixType::Constant(rows,cols,mid).array())
122 VERIFY_IS_APPROX( (m1.array().abs()<mid).select(0,m1), m3);
125 VERIFY(((m1.array().abs()+1)>RealScalar(0.1)).count() == rows*cols);
130 VERIFY_IS_APPROX(((m1.array().abs()+1)>RealScalar(0.1)).matrix().colwise().count(), VectorOfIndices::Constant(cols,rows).transpose());
131 VERIFY_IS_APPROX(((m1.array().abs()+1)>RealScalar(0.1)).matrix().rowwise().count(), VectorOfIndices::Constant(rows, cols));
140 VERIFY_IS_APPROX(u.template lpNorm<2>(), internal::sqrt(u.array().abs().square().sum()));
141 VERIFY_IS_APPROX(internal::pow(u.template lpNorm<5>(), typename VectorType::RealScalar(5)), u.array().abs().pow(5).sum())
    [all...]
cwiseop.cpp 107 m3 = m1.cwise().abs().cwise().sqrt();
108 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs());
109 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs());
110 VERIFY_IS_APPROX(m1.cwise().abs().cwise().log().cwise().exp() , m1.cwise().abs());
113 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1);
115 m3 = m1.cwise().abs();
  /libcore/luni/src/main/java/java/lang/
Math.java 51 * <li>{@code abs(-0.0) = +0.0}</li>
52 * <li>{@code abs(+infinity) = +infinity}</li>
53 * <li>{@code abs(-infinity) = +infinity}</li>
54 * <li>{@code abs(NaN) = NaN}</li>
57 public static native double abs(double d); method in class:Math
64 * <li>{@code abs(-0.0) = +0.0}</li>
65 * <li>{@code abs(+infinity) = +infinity}</li>
66 * <li>{@code abs(-infinity) = +infinity}</li>
67 * <li>{@code abs(NaN) = NaN}</li>
70 public static native float abs(float f) method in class:Math
78 public static native int abs(int i); method in class:Math
84 public static native long abs(long l); method in class:Math
    [all...]
  /external/eigen/test/eigen2/
eigen2_cwiseop.cpp 100 m3 = m1.cwise().abs().cwise().sqrt();
101 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs());
102 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs());
103 VERIFY_IS_APPROX(m1.cwise().abs().cwise().log().cwise().exp() , m1.cwise().abs());
106 m3 = (m1.cwise().abs().cwise()<=RealScalar(0.01)).select(mones,m1);
108 m3 = m1.cwise().abs();
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
ResizeHandler.java 28 import static java.lang.Math.abs;
110 int margin = mSnap ? 0 : abs(newBounds.x - x);
118 int margin = mSnap ? 0 : abs(newBounds.x - (x - newBounds.w));
133 int margin = mSnap ? 0 : abs(newBounds.y - y);
141 int margin = mSnap ? 0 : abs(newBounds.y - (y - newBounds.h));
220 && (!mSnap || Math.abs(match.delta) < BaseLayoutRule.getMaxMatchDistance())) {
244 && (!mSnap || Math.abs(match.delta) < BaseLayoutRule.getMaxMatchDistance())) {
  /ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
eval.pass.cpp 74 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
128 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
147 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
168 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
189 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
210 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
231 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
252 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
273 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
  /cts/suite/audio_quality/test_description/processing/
check_spectrum.py 57 print "Phh", abs(Phh[iLow:iHigh])
58 print "Pdd", abs(Pdd[iLow:iHigh])
59 amplitudeRatio = np.sqrt(abs(Pdd[iLow:iHigh]/Phh[iLow:iHigh]))
64 positiveMax = abs(max(amplitudeRatio))
65 negativeMin = abs(min(amplitudeRatio))
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CameraPreview.java 280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
281 if (Math.abs(size.height - targetHeight) < minDiff) {
283 minDiff = Math.abs(size.height - targetHeight);
291 if (Math.abs(size.height - targetHeight) < minDiff) {
293 minDiff = Math.abs(size.height - targetHeight);
SensorTest.java 90 if (Math.abs(diff[i]) > 0) {
111 boolean gestX = Math.abs(x) > 3;
112 boolean gestY = Math.abs(y) > 3;
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
CameraFragment.java 300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
302 if (Math.abs(size.height - targetHeight) < minDiff) {
304 minDiff = Math.abs(size.height - targetHeight);
312 if (Math.abs(size.height - targetHeight) < minDiff) {
314 minDiff = Math.abs(size.height - targetHeight);
  /external/chromium/chrome/browser/ui/tabs/
dock_info.cc 34 int delta_x = abs(x - screen_loc.x());
35 int delta_y = abs(y - screen_loc.y());
49 int delta_x = abs(x - screen_loc.x());
50 int delta_y = abs(y - screen_loc.y());
93 int max_delta_y = abs(screen_loc.y() - y);
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
TextureGeneratorVoronoi.java 85 float[] voronoiWeights = new float[] {FastMath.abs(voronoiWeight1), FastMath.abs(voronoiWeight2),
86 FastMath.abs(voronoiWeight3), FastMath.abs(voronoiWeight4)};
101 texres.intensity = sc * FastMath.abs(voronoiWeight1 * da[0] + voronoiWeight2 * da[1] + voronoiWeight3 * da[2] + voronoiWeight4 * da[3]);
  /external/jmonkeyengine/engine/src/core/com/jme3/math/
Matrix3f.java 121 m00 = FastMath.abs(m00);
122 m01 = FastMath.abs(m01);
123 m02 = FastMath.abs(m02);
124 m10 = FastMath.abs(m10);
125 m11 = FastMath.abs(m11);
126 m12 = FastMath.abs(m12);
127 m20 = FastMath.abs(m20);
128 m21 = FastMath.abs(m21);
129 m22 = FastMath.abs(m22);
961 if (FastMath.abs(det) <= FastMath.FLT_EPSILON)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
VelocityTrackerTest.java 196 float absError = Math.abs(actual - expected);
200 if (Math.abs(expected) < 0.001f) {
203 return absError / Math.abs(expected);
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/
9.6.js 34 3 compute (sign (result(1)) * floor(abs(result 1)))
77 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
80 n = sign * Math.floor( Math.abs(n) )
  /frameworks/base/core/java/android/webkit/
DeviceOrientationService.java 171 || Math.abs(alpha - mAlpha) > DELTA_DEGRESS
172 || Math.abs(beta - mBeta) > DELTA_DEGRESS
173 || Math.abs(gamma - mGamma) > DELTA_DEGRESS) {
  /ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.f/
eval_param.pass.cpp 67 assert(std::abs(f(u[i], p.m(), p.n()) - double(i)/N) < .01);
86 assert(std::abs(f(u[i], p.m(), p.n()) - double(i)/N) < .01);
105 assert(std::abs(f(u[i], p.m(), p.n()) - double(i)/N) < .01);
  /packages/apps/Calculator/src/com/android/calculator2/
PanelSwitcher.java 65 if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) > Math.abs(velocityY)) {
  /system/core/libpixelflinger/codeflinger/
ARMAssembler.cpp 529 LOG_ALWAYS_FATAL_IF(abs(immed12) >= 0x800,
533 ((W&1)<<21) | (abs(immed12)&0x7FF);
538 LOG_ALWAYS_FATAL_IF(abs(immed12) >= 0x800,
542 return (((uint32_t(immed12)>>31)^1)<<23) | (abs(immed12)&0x7FF);
550 reg_imm(abs(Rm), type, shift);
555 return (1<<25) | (((uint32_t(Rm)>>31)^1)<<23) | reg_imm(abs(Rm), type, shift);
561 uint32_t offset = abs(immed8);
563 LOG_ALWAYS_FATAL_IF(abs(immed8) >= 0x100,
573 uint32_t offset = abs(immed8);
575 LOG_ALWAYS_FATAL_IF(abs(immed8) >= 0x100
    [all...]
  /external/libvpx/libvpx/vp8/common/arm/armv6/
loopfilter_v6.asm 95 orr r6, r6, r7 ; abs (p3-p2)
96 orr r8, r8, r10 ; abs (p2-p1)
104 orr r6, r6, r7 ; abs (p1-p0)
113 orr r6, r6, r7 ; abs (p1-q1)
115 orr r12, r11, r12 ; abs (p0-q0)
117 uqadd8 r12, r12, r12 ; abs (p0-q0) * 2
118 and r6, r7, r6, lsr #1 ; abs (p1-q1) / 2
120 uqadd8 r12, r12, r6 ; abs (p0-q0)*2 + abs (p1-q1)/2
129 orr r6, r7, r6 ; abs (q1-q0
    [all...]
simpleloopfilter_v6.asm 79 orr r8, r8, r7 ; abs(p1 - q1)
80 orr r10, r10, r11 ; abs(p0 - q0)
81 uqadd8 r10, r10, r10 ; abs(p0 - q0) * 2
82 uhadd8 r8, r8, lr ; abs(p1 - q2) >> 1
83 uqadd8 r10, r10, r8 ; abs(p0 - q0)*2 + abs(p1 - q1)/2
183 orr r7, r7, r8 ; abs(p1 - q1)
184 orr r9, r9, r10 ; abs(p0 - q0)
186 uqadd8 r9, r9, r9 ; abs(p0 - q0) * 2
187 uhadd8 r7, r7, r8 ; abs(p1 - q1) /
    [all...]
  /external/libvpx/libvpx/vp8/encoder/
encodemv.c 73 if (abs(mv->row >> 1) > max_mv_r)
76 max_mv_r = abs(mv->row >> 1);
79 if ((abs(mv->row) / 2) != max_mv_r)
80 fprintf(f, "MV Row conversion error %6d\n", abs(mv->row) / 2);
85 if (abs(mv->col >> 1) > max_mv_c)
89 max_mv_c = abs(mv->col >> 1);
  /external/webkit/Source/WebKit/efl/ewk/
ewk_view_tiled.c 103 if (abs(sr->dx) >= sw || abs(sr->dy) >= sh) {
124 sx -= abs(sr->dx);
125 sy -= abs(sr->dy);
126 sw += abs(sr->dx);
127 sh += abs(sr->dy);

Completed in 567 milliseconds

1 2 3 4 5 67 8 91011>>