Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp55 srq=sqrt(q); in db_SolveCubic()
60 sin_theta_through3=sqrt(db_maxd(0.0,1.0-cos_theta_through3*cos_theta_through3)); in db_SolveCubic()
75 A= -db_sign(r)*db_CubRoot(db_absd(r)+sqrt(r2_min_q3)); in db_SolveCubic()
85 si_r_srq=db_sign(r)*sqrt(q); in db_SolveCubic()
149 m=sqrt(ms); in db_SolveQuartic()
150 n=sqrt(ns)*db_sign(mn); in db_SolveQuartic()
222 m=sqrt(ms); in db_SolveQuarticForced()
223 n=sqrt(ns)*db_sign(mn); in db_SolveQuarticForced()
Ddb_utilities_linalg.cpp38 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
47 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
55 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
62 d[3]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
68 d[4]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
73 d[5]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6()
93 d[i]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecompSeparateDiagonal()
129 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp3x3SeparateDiagonal()
135 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp3x3SeparateDiagonal()
140 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp3x3SeparateDiagonal()
Ddb_utilities.h211 return((a>=0.0)?(sqrt(a)):0.0); in db_SafeSqrt()
220 return((a>0.0)?(sqrt(1.0/a)):1.0); in db_SafeSqrtReciprocal()
492 cp=(om_sp2>=0.0)?sqrt(om_sp2):1.0; in db_IncrementalRotationMatrix()
493 co=(om_so2>=0.0)?sqrt(om_so2):1.0; in db_IncrementalRotationMatrix()
494 ck=(om_sk2>=0.0)?sqrt(om_sk2):1.0; in db_IncrementalRotationMatrix()
Ddb_utilities_poly.h60 srs=sqrt(rs); in db_SolveQuadratic()
360 m=db_SafeReciprocal(sqrt(n0)); in db_EigenVector4x4()
365 m=db_SafeReciprocal(sqrt(n1)); in db_EigenVector4x4()
370 m=db_SafeReciprocal(sqrt(n2)); in db_EigenVector4x4()
375 m=db_SafeReciprocal(sqrt(n3)); in db_EigenVector4x4()
Ddb_image_homography.cpp277 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity2DRaw()
292 divisor=sqrt(Aacc*Aacc+Bacc*Bacc); in db_StitchSimilarity2DRaw()
308 divisor2=sqrt(Aacc2*Aacc2+Bacc2*Bacc2); in db_StitchSimilarity2DRaw()
Ddb_metrics.h76 r=sqrt(r2); in db_CauchyDerivative()
85 r_fu=sqrt(fu); in db_CauchyDerivative()
112 J[0]=sqrt(one_over_scale2); in db_CauchyDerivative()
Ddb_utilities_camera.h129 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation()
136 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java145 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
150 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
160 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
165 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java130 float length = (float) Math.sqrt(tx * tx + ty * ty + tz * tz); in onAccelerometerChanged()
131 float glength = (float) Math.sqrt(temp); in onAccelerometerChanged()
139 mZ = (float) -Math.sqrt( in onAccelerometerChanged()
155 mZ = (float) -Math.sqrt( in onGyroscopeChanged()
177 mZ = (float) -Math.sqrt( in onGyroscopeChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java136 float mag = (float) Math.sqrt(2.0); in setHue()
140 mag = (float) Math.sqrt(3.0); in setHue()
142 float yrc = (float) Math.sqrt(2.0) / mag; in setHue()
Dvignette.rs69 float dist = strength * (sqrt(radx * radx + rady * rady) - 1.f);
70 float t = (1.f + dist / sqrt(1.f + dist* dist)) * .5f;
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java121 checkWeakEq(BoundedRational.sqrt(x), xAsCR.sqrt(), "sqrt:" + x); in checkBR()
172 check(BoundedRational.sqrt(new BoundedRational(4,9)) != null, in testBR()
194 BoundedRational.sqrt(BR_M1); in testBRexceptions()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DAvatarGroupRequestDescriptor.java98 final float diameter = (float) ((2 - Math.sqrt(2)) * width); in generateDestRectArray()
134 final float lengthOfEdgeA = (float) (radius * Math.sqrt(3)); in generateDestRectArray()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
DBlend.cpp1066 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1076 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1102 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1112 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1220 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames()
1281 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters()
1384 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in ComputeBlendParameters()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java170 trigTerm = Math.sqrt(trigTerm); in fastDistanceMeters()
181 return (2 * Math.atan2(Math.sqrt(x), Math.sqrt(Math.max(0.0, in accurateDistanceMeters()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DBoundedRational.java241 static BoundedRational sqrt(BoundedRational r) { in sqrt() method in BoundedRational
250 final BigInteger num_sqrt = BigInteger.valueOf(Math.round(Math.sqrt(r.mNum.doubleValue()))); in sqrt()
254 final BigInteger den_sqrt = BigInteger.valueOf(Math.round(Math.sqrt(r.mDen.doubleValue()))); in sqrt()
DCalculatorExpr.java744 ratVal = BoundedRational.sqrt(BoundedRational.negate(argVal.ratVal)); in evalUnary()
749 argVal.val.negate().sqrt(), null); in evalUnary()
752 ratVal = BoundedRational.sqrt(argVal.ratVal); in evalUnary()
756 return new EvalRet(argVal.pos, argVal.val.sqrt(), null); in evalUnary()
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleButtonsLayout.java144 double w = 2 * Math.sqrt((r + y) * (r - y)); in remeasureViews()
/packages/apps/Camera2/src/com/android/camera/ui/
DAnimatedCircleDrawable.java142 return (int) Math.sqrt((w*w) + (h*h)); in diagonalLength()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFlingAnimation.java77 double t = (-mUY - Math.sqrt(d)) / mAY; in initDuration()
/packages/apps/Gallery2/jni/filters/
Dedge.c88 float mag = sqrt(bestx * bestx + besty * besty); in JNIFUNCF()
/packages/apps/Camera2/tests_camera/src/com/android/camera/stress/
DShotToShotLatency.java121 standardDeviation = Math.sqrt(sigmaOfDiffFromMeanSquared / latencyTimes.size()); in testShotToShotLatency()
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DShotToShotLatency.java120 standardDeviation = Math.sqrt(sigmaOfDiffFromMeanSquared / latencyTimes.size()); in testShotToShotLatency()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java448 float sizeRatio = 0.99f * (float) Math.sqrt(wantDiameter2/totalDiameter2); in setTotalTextWidth()
544 double distance = Math.sqrt(Math.pow(centerX - x, 2) + Math.pow(centerY - y, 2)); in withinVirtualButtonBounds()

123