/external/ceres-solver/internal/ceres/ |
block_sparse_matrix_test.cc | 80 EXPECT_LT((y_a - y_b).norm(), 1e-12); 92 EXPECT_LT((y_a - y_b).norm(), 1e-12); 101 EXPECT_LT((y_a - y_b).norm(), 1e-12); 109 EXPECT_LT((m_a - m_b).norm(), 1e-12); 130 EXPECT_LT((m_a - m_b).norm(), 1e-12);
|
corrector_test.cc | 206 ASSERT_NEAR((g_res - res).norm(), 0.0, 1e-10); 207 ASSERT_NEAR((g_jac - jac).norm(), 0.0, 1e-10); 209 ASSERT_NEAR((g_grad - c_grad).norm(), 0.0, 1e-10); 267 ASSERT_NEAR((g_res - res).norm(), 0.0, 1e-10); 268 ASSERT_NEAR((g_jac - jac).norm(), 0.0, 1e-10); 270 ASSERT_NEAR((g_grad - c_grad).norm(), 0.0, 1e-10); 271 ASSERT_NEAR((g_hess - c_hess).norm(), 0.0, 1e-10);
|
dense_sparse_matrix_test.cc | 65 EXPECT_EQ((y_a - y_b).norm(), 0); 106 EXPECT_EQ((b1 - b2).norm(), 0); 120 EXPECT_EQ((b1 - b2).norm(), 0); 135 EXPECT_EQ((b1 - b2).norm(), 0); 145 EXPECT_EQ((b1 - b2).norm(), 0); 181 EXPECT_EQ((tsm_dense - dsm_dense).norm(), 0.0);
|
dogleg_strategy_test.cc | 148 EXPECT_LE(x_.norm(), options_.initial_radius * (1.0 + 4.0 * kEpsilon)); 168 EXPECT_LE(x_.norm(), options_.initial_radius * (1.0 + 4.0 * kEpsilon)); 216 EXPECT_NEAR(basis.col(0).norm(), 1.0, kTolerance); 217 EXPECT_NEAR(basis.col(1).norm(), 1.0, kTolerance); 222 EXPECT_NEAR((gradient - basis*(basis.transpose()*gradient)).norm(), 228 EXPECT_NEAR((gn - basis*(basis.transpose()*gn)).norm(),
|
schur_eliminator_test.cc | 184 double diff = delta.norm(); 185 EXPECT_NEAR(diff / lhs_expected.norm(), 0.0, relative_tolerance); 186 EXPECT_NEAR((rhs - rhs_expected).norm() / rhs_expected.norm(), 0.0, 188 EXPECT_NEAR((sol - sol_expected).norm() / sol_expected.norm(), 0.0,
|
dogleg_strategy.cc | 198 const double gradient_norm = gradient_.norm(); 199 const double gauss_newton_norm = gauss_newton_step_.norm(); 245 dogleg_step_norm_ = dogleg_step.norm(); 271 // As a consequence, the norm of the gauss_newton_step_ in the subspace is 272 // the same as its norm in the original space. 273 const double gauss_newton_norm = gauss_newton_step_.norm(); 305 dogleg_step = -(radius_ / gradient_.norm()) * gradient_; 341 (minimum.norm() * grad_minimum.norm()); 496 if (x_i.norm() > 0) [all...] |
rotation_test.cc | 73 *result_listener << "squared norm is " << norm2; 318 double norm = 0; local 321 norm += axis_angle[i] * axis_angle[i]; 323 norm = sqrt(norm); 328 axis_angle[i] = axis_angle[i] * theta / norm; 350 double norm = 0; local 353 norm += quaternion[i] * quaternion[i]; 355 norm = sqrt(norm); 427 double norm = 0; local 526 double norm = 0; local [all...] |
conjugate_gradients_solver.cc | 86 double norm_b = bref.norm(); 103 double norm_r = r.norm(); 220 norm_r = r. norm();
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
LocationCluster.java | 122 double norm = 0f; local 125 norm += vector[i] * vector[i]; 127 norm = Math.sqrt(norm); 132 (vector[i] / norm) * Math.sin(radian);
|
/external/eigen/unsupported/test/ |
FFTW.cpp | 19 float norm(float x) {return x*x;} function 20 double norm(double x) {return x*x;} function 21 long double norm(long double x) {return x*x;} function 43 totalpower += norm(acc); 46 difpower += norm(dif); 47 //cerr << k0 << "\t" << acc << "\t" << x << "\t" << sqrt(norm(dif)) << endl; 60 totalpower += (norm( buf1[k] ) + norm(buf2[k]) )/2.; 61 difpower += norm(buf1[k] - buf2[k]); 208 VERIFY( (src-src2).norm() < test_precision<T>() ) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/ |
BatchNode.java | 511 Vector3f norm = vars.vect2; local 525 norm.x = tmpFloatN[index++]; 527 norm.y = tmpFloatN[index++]; 529 norm.z = tmpFloatN[index]; 532 transform.multNormal(norm, norm); 536 tmpFloatN[index++] = norm.x; 538 tmpFloatN[index++] = norm.y; 540 tmpFloatN[index++] = norm.z; 555 Vector3f norm = vars.vect2 local [all...] |
/external/dropbear/libtommath/ |
bn_mp_div.c | 106 int res, n, t, i, norm, neg; local 152 norm = mp_count_bits(&y) % DIGIT_BIT; 153 if (norm < (int)(DIGIT_BIT-1)) { 154 norm = (DIGIT_BIT-1) - norm; 155 if ((res = mp_mul_2d (&x, norm, &x)) != MP_OKAY) { 158 if ((res = mp_mul_2d (&y, norm, &y)) != MP_OKAY) { 162 norm = 0; 272 if ((res = mp_div_2d (&x, norm, &x, NULL)) != MP_OKAY) {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
Tnaf.java | 75 * Computes the norm of an element <code>λ</code> of 80 * @return The norm of <code>λ</code>. 82 public static BigInteger norm(final byte mu, ZTauElement lambda) method in class:Tnaf 84 BigInteger norm; local 97 norm = s1.add(s2).add(s3); 101 norm = s1.subtract(s2).add(s3); 108 return norm; 112 * Computes the norm of an element <code>λ</code> of 121 * @return The norm of <code>λ</code>. 123 public static SimpleBigDecimal norm(final byte mu, SimpleBigDecimal u method in class:Tnaf 126 SimpleBigDecimal norm; local 321 BigInteger norm = norm(mu, lambda); local 731 BigInteger norm = norm(mu, lambda); local [all...] |
/external/eigen/test/eigen2/ |
eigen2_adjoint.cpp | 51 // check basic properties of dot, norm, norm2 58 VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); 61 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); 76 VERIFY_IS_APPROX(VectorType::Random(rows).normalized().norm(), RealScalar(1));
|
/frameworks/rs/ |
rsComponent.h | 34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
|
/cts/suite/audio_quality/test_description/processing/ |
calc_thd.py | 37 P0 = math.pow(la.norm(fftData[baseSignalLoc - iMargain/2: baseSignalLoc + iMargain/2]), 2) 41 Pothers += math.pow(la.norm(fftData[i - iMargain/2: i + iMargain/2]), 2)
|
/external/eigen/Eigen/src/Geometry/ |
EulerAngles.h | 49 Scalar s = Vector2(coeff(j,i) , coeff(k,i)).norm(); 64 Scalar c = Vector2(coeff(i,i) , coeff(i,j)).norm();
|
/external/eigen/test/ |
prec_inverse_4x4.cpp | 23 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); 44 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() );
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/ |
CollisionResult.java | 74 public void setContactNormal(Vector3f norm){ 75 this.contactNormal = norm;
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Water/ |
simple_water.vert | 46 vec4 norm = vec4(0.0, 1.0, 0.0, 0.0); 54 viewDir.z = dot(temp, norm); 60 lightDir.z = dot(temp, norm);
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
multiclass_pa.cpp | 90 float norm = 0; local 92 norm += inputs[i] * inputs[i]; 94 return norm; 99 float norm = 0; local 101 norm += inputs[i].second * inputs[i].second; 103 return norm;
|
/external/icu4c/test/intltest/ |
tstnorm.cpp | 166 Normalizer* norm = new Normalizer("", UNORM_NFD); local 171 backAndForth(norm, canonTests[i][0]); 175 norm->setMode(UNORM_NFC); 177 backAndForth(norm, canonTests[i][0]); 180 delete norm; 185 Normalizer* norm = new Normalizer("", UNORM_NFD); local 186 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 1); 188 delete norm; 193 Normalizer* norm = new Normalizer("", UNORM_NFKD); local 194 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 1) 203 Normalizer* norm = new Normalizer("", UNORM_NFC); local 213 Normalizer* norm = new Normalizer("", UNORM_NFKC); local 233 Normalizer* norm = new Normalizer("", UNORM_NFC); local 255 Normalizer* norm = new Normalizer("", UNORM_NFD); local [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
RealSchur.h | 195 Index findSmallSubdiagEntry(Index iu, Scalar norm); 225 Scalar norm = computeNormOfT(); local 227 if(norm!=0) 231 Index il = findSmallSubdiagEntry(iu, norm); 271 /** \internal Computes and returns vector L1 norm of T */ 277 // Scalar norm = m_matT.upper().cwiseAbs().sum() 279 Scalar norm(0); 281 norm += m_matT.row(j).segment((std::max)(j-1,Index(0)), size-(std::max)(j-1,Index(0))).cwiseAbs().sum(); 282 return norm; 287 inline typename MatrixType::Index RealSchur<MatrixType>::findSmallSubdiagEntry(Index iu, Scalar norm) [all...] |
/external/eigen/blas/ |
level1_impl.h | 110 RealScalar norm,scale; local 120 norm = scale*internal::sqrt((internal::abs2(a/scale))+ (internal::abs2(b/scale))); 122 *c = internal::abs(a)/norm; 123 *s = alpha*internal::conj(b)/norm; 124 a = alpha*norm;
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/ |
EmitterMeshVertexShape.java | 61 Vector3f norm = vertToNormalMap.get(vert); local 62 if (norm == null) { 63 norm = new Vector3f(normalTable[i], normalTable[i + 1], normalTable[i + 2]); 64 vertToNormalMap.put(vert, norm); 66 norm.addLocal(normalTable[i], normalTable[i + 1], normalTable[i + 2]);
|