/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_poly.cpp | 55 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()
|
D | db_utilities_linalg.cpp | 38 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()
|
D | db_utilities.h | 211 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()
|
D | db_utilities_poly.h | 60 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()
|
D | db_image_homography.cpp | 277 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()
|
D | db_metrics.h | 76 r=sqrt(r2); in db_CauchyDerivative() 85 r_fu=sqrt(fu); in db_CauchyDerivative() 112 J[0]=sqrt(one_over_scale2); in db_CauchyDerivative()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | Quaternion.java | 26 import static java.lang.Math.sqrt; 134 float traceRoot = (float) sqrt(trace + 1); // |traceRoot|>=1 ... in fromMatrix() 144 sqrt(1.0f + matrix.data[0] - matrix.data[5] - matrix.data[10]); in fromMatrix() 153 (float) sqrt(1.0f + matrix.data[5] - matrix.data[0] - matrix.data[10]); in fromMatrix() 162 (float) sqrt(1.0f + matrix.data[10] - matrix.data[0] - matrix.data[5]); in fromMatrix() 310 double sinTheta0 = sqrt(1.0 - cosTheta0 * cosTheta0); in slerp() 382 float num = (float) sqrt(num8 + 1f); in lookRotation() 390 float num7 = (float) sqrt(((1f + m00) - m11) - m22); in lookRotation() 398 float num6 = (float) sqrt(((1f + m11) - m00) - m22); in lookRotation() 405 float num5 = (float) sqrt(((1f + m22) - m00) - m11); in lookRotation()
|
D | AoaVector.java | 29 import static java.lang.Math.sqrt; 187 float d = (float) sqrt(x * x + y * y + z * z); in fromCartesian() 214 double az = acos(sqrt(max(ce * ce * ca * ca, 0) + se * se)) in fromSphericalVector() 233 float z = (float) sqrt(distance * distance - x * x - y * y); in toCartesian()
|
D | MathHelper.java | 23 import static java.lang.Math.sqrt; 53 : 1 / (float) sqrt(x); in rsqrt()
|
D | SphericalVector.java | 30 import static java.lang.Math.sqrt; 140 float d = (float) sqrt(x * x + y * y + z * z); in fromCartesian() 163 double azz = sqrt(max(ca * ca - se * se, 0)) / cos(vec.elevation); in fromAoAVector()
|
D | Vector3.java | 19 import static java.lang.Math.sqrt; 148 return (float) sqrt(lengthSquared()); in length()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | EyePosition.java | 130 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/Calendar/src/com/android/calendar/ |
D | EventGeometry.kt | 129 return (Math.sqrt(dx as Double * dx + dy as Double * dy)) as Float in pointToEvent() 134 return (Math.sqrt(dx as Double * dx + dy as Double * dy)) as Float in pointToEvent() 144 return (Math.sqrt(dx as Double * dx + dy as Double * dy)) as Float in pointToEvent() 149 return (Math.sqrt(dx as Double * dx + dy as Double * dy)) as Float in pointToEvent()
|
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_2/ |
D | sqrt.example.cpp | 7 namespace generated_tests::sqrt { namespace 54 namespace generated_tests::sqrt { namespace 101 namespace generated_tests::sqrt { namespace
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | MathHelperTest.java | 28 import static java.lang.Math.sqrt; 54 assertClose(rsqrt(8), 1 / sqrt(8)); in testRsqrt() 55 assertClose(rsqrt(1.000182f), 1 / sqrt(1.000182f)); in testRsqrt()
|
/packages/services/Car/service/src/com/android/car/util/ |
D | BrightnessUtils.java | 119 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat() 216 public static float sqrt(float a) { in sqrt() method in BrightnessUtils.MathUtils 217 return (float) Math.sqrt(a); in sqrt()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ColorSpaceMatrix.java | 136 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()
|
/packages/modules/ExtServices/native/pHash/ |
D | fast_dct-inl.h | 36 sqrt_orth_scale_factor_(sqrt(orth_scale_factor_)), in FastDCT() 37 sqrt_one_half_(sqrt(0.5)), in FastDCT() 43 bit_reversal_workspace_(new int[2 + static_cast<int>(ceil(sqrt(block_size)))]) { in FastDCT()
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/ |
D | PrivacyGeneratorStatisticalTest.java | 110 double stddev = Math.sqrt((double) (numTrials * (1 + maxIndex)) * poissonMean); in totalIndicesAddedTest() 145 double stddev = Math.sqrt(numTrials * distance * (1 - distance)); in indexOffsetTest() 202 double stddev = Math.sqrt(numTrials * distance * (1 - distance) * intervalSize); in doubleToIndexTest()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleButtonsLayout.kt | 27 import kotlin.math.sqrt 143 val w = 2 * sqrt((r + y) * (r - y).toDouble()) in remeasureViews()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/section/ |
D | ScreenPreviewClickView.kt | 28 import kotlin.math.sqrt 101 return sqrt(deltaX.pow(2) + deltaY.pow(2)) in distanceMoved()
|
/packages/services/Mtp/perf_tests/src/com/android/mtp/ |
D | AppFusePerfTest.java | 93 Math.sqrt(readSquaredAverage - readAverage * readAverage)); in testReadWriteFile() 96 Math.sqrt(writeSquaredAverage - writeAverage * writeAverage)); in testReadWriteFile()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | AvatarGroupRequestDescriptor.java | 98 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/ |
D | Geometry.h | 106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid() 120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringAnimationBuilder.java | 138 double naturalFreq = Math.sqrt(mStiffness); in computeParams() 139 double dampedFreq = naturalFreq * Math.sqrt(1 - mDampingRatio * mDampingRatio); in computeParams()
|