/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
multiclass_pa.cpp | 92 float norm = 0; local 94 norm += inputs[i] * inputs[i]; 96 return norm; 101 float norm = 0; local 103 norm += inputs[i].second * inputs[i].second; 105 return norm;
|
/external/lzma/xz-embedded/ |
xz_dec_bcj.c | 220 uint64_t norm; local 235 norm = instr >> bit_res; 237 if (((norm >> 37) & 0x0F) == 0x05 238 && ((norm >> 9) & 0x07) == 0) { 239 addr = (norm >> 13) & 0x0FFFFF; 240 addr |= ((uint32_t)(norm >> 36) & 1) << 20; 245 norm &= ~((uint64_t)0x8FFFFF << 13); 246 norm |= (uint64_t)(addr & 0x0FFFFF) << 13; 247 norm |= (uint64_t)(addr & 0x100000) 251 instr |= norm << bit_res [all...] |
/external/icu/icu4c/source/test/intltest/ |
tstnorm.cpp | 165 Normalizer* norm = new Normalizer("", UNORM_NFD); local 170 backAndForth(norm, canonTests[i][0]); 174 norm->setMode(UNORM_NFC); 176 backAndForth(norm, canonTests[i][0]); 179 delete norm; 184 Normalizer* norm = new Normalizer("", UNORM_NFD); local 185 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 1); 187 delete norm; 192 Normalizer* norm = new Normalizer("", UNORM_NFKD); local 193 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 1) 202 Normalizer* norm = new Normalizer("", UNORM_NFC); local 212 Normalizer* norm = new Normalizer("", UNORM_NFKC); local 232 Normalizer* norm = new Normalizer("", UNORM_NFC); local 254 Normalizer* norm = new Normalizer("", UNORM_NFD); local [all...] |
/external/opencv3/modules/java/android_test/src/org/opencv/test/android/ |
UtilsTest.java | 37 double maxDiff = Core.norm(m16, m32, Core.NORM_INF); 81 maxDiff = Core.norm(imgRGBA, m16, Core.NORM_INF); 87 maxDiff = Core.norm(imgRGBA, m32, Core.NORM_INF); 99 maxDiff = Core.norm(imgRGBA, m16, Core.NORM_INF); 105 maxDiff = Core.norm(imgRGBA, m32, Core.NORM_INF); 119 maxDiff = Core.norm(imgGray, tmp, Core.NORM_INF); 127 maxDiff = Core.norm(imgGray, tmp, Core.NORM_INF);
|
/external/opencv3/samples/python2/ |
find_obj.py | 29 norm = cv2.NORM_L2 32 norm = cv2.NORM_L2 35 norm = cv2.NORM_HAMMING 38 norm = cv2.NORM_HAMMING 41 norm = cv2.NORM_HAMMING 45 if norm == cv2.NORM_L2: 54 matcher = cv2.BFMatcher(norm)
|
/external/ceres-solver/internal/ceres/ |
dogleg_strategy.cc | 203 const double gradient_norm = gradient_.norm(); 204 const double gauss_newton_norm = gauss_newton_step_.norm(); 250 dogleg_step_norm_ = dogleg_step.norm(); 276 // As a consequence, the norm of the gauss_newton_step_ in the subspace is 277 // the same as its norm in the original space. 278 const double gauss_newton_norm = gauss_newton_step_.norm(); 310 dogleg_step = -(radius_ / gradient_.norm()) * gradient_; 346 (minimum.norm() * grad_minimum.norm()); 501 if (x_i.norm() > 0) [all...] |
conjugate_gradients_solver.cc | 85 const double norm_b = bref.norm(); 103 double norm_r = r.norm(); 221 norm_r = r. norm();
|
implicit_schur_complement_test.cc | 144 if ((y - z).norm() > kEpsilon) { 153 if ((isc.rhs() - rhs).norm() > kEpsilon) { 168 if ((sol - reference_solution).norm() > kEpsilon) {
|
/external/eigen/blas/ |
level1_impl.h | 113 RealScalar norm,scale; local 123 norm = scale*sqrt((numext::abs2(a/scale)) + (numext::abs2(b/scale))); 125 *c = abs(a)/norm; 126 *s = alpha*numext::conj(b)/norm; 127 a = alpha*norm;
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_type.h | 109 unsigned norm:1; member in struct:lp_type 271 res_type.norm = TRUE; 344 type.norm = FALSE; 360 type.norm = FALSE; 376 type.norm = TRUE;
|
/external/opencv3/modules/core/perf/ |
perf_norm.cpp | 14 PERF_TEST_P(Size_MatType_NormType, norm, 31 TEST_CYCLE() n = norm(src, normType); 54 TEST_CYCLE() n = norm(src, normType, mask); 77 TEST_CYCLE() n = norm(src1, src2, normType); 101 TEST_CYCLE() n = norm(src1, src2, normType, mask);
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
btShapeHull.cpp | 48 btVector3 norm; local 49 m_shape->getPreferredPenetrationDirection(i,norm); 50 getUnitSpherePoints()[numSampleDirections] = norm;
|
/external/pdfium/xfa/src/fxbarcode/datamatrix/ |
BC_DataMatrixDetector.cpp | 212 int32_t norm = Distance(topLeft, topRight);
local 213 FX_FLOAT cos = (topRight->GetX() - topLeft->GetX()) / norm;
214 FX_FLOAT sin = (topRight->GetY() - topLeft->GetY()) / norm;
218 norm = Distance(bottomRight, topRight);
219 cos = (topRight->GetX() - bottomRight->GetX()) / norm;
220 sin = (topRight->GetY() - bottomRight->GetY()) / norm;
259 int32_t norm = Distance(topLeft, topRight);
local 260 FX_FLOAT cos = (topRight->GetX() - topLeft->GetX()) / norm;
261 FX_FLOAT sin = (topRight->GetY() - topLeft->GetY()) / norm;
265 norm = Distance(bottomRight, topRight); [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
sparse_weight_vector.h | 65 // 4. its L0 norm is close to zero. 72 void SetNormalizer(const double norm) { 73 normalizer_ = norm; 143 // L-x norm. eg. L1, L2. 157 // Reproject using the given norm. 159 int32 Reproject(const double norm, const RegularizationType r);
|
/external/eigen/bench/ |
quat_slerp.cpp | 92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); 94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); 115 // theta = Scalar(2) * atan2((a.coeffs()-b.coeffs()).norm(),(a.coeffs()+b.coeffs()).norm()); 120 theta = /*M_PI -*/ Scalar(2)*std::asin( (-a.coeffs()-b.coeffs()).norm()/2 ); 122 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); 199 err[0] = (cr.coeffs()-refc.cast<RefScalar>().coeffs()).norm(); 203 err[k+1] = (c[k].coeffs()-refc.coeffs()).norm();
|
/external/eigen/bench/spbench/ |
sp_solver.cpp | 60 // cout << " norm of A " << mat1.norm() << endl; ; 69 // std::cout<< "NORM " << mat1.squaredNorm()<< endl; 116 double tempNorm = tmp2.norm()/b.norm(); 117 cout << "Relative norm of the computed solution : " << tempNorm <<"\n";
|
test_sparseLU.cpp | 88 scalar tempNorm = tmp2.norm()/b.norm(); 89 cout << "Relative norm of the computed solution : " << tempNorm <<"\n";
|
/external/eigen/test/eigen2/ |
eigen2_prec_inverse_4x4.cpp | 42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() ); 62 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() );
|
/external/eigen/unsupported/test/ |
alignedvector3.cpp | 43 VERIFY_IS_APPROX(f2.norm(),r2.norm());
|
/external/icu/icu4c/source/tools/gennorm2/ |
n2builder.h | 34 struct Norm; 79 Norm *allocNorm(); 80 Norm *getNorm(UChar32 c); 81 Norm *createNorm(UChar32 c); 82 Norm *checkNormForMapping(Norm *p, UChar32 c); // check for permitted overrides 84 const Norm &getNormRef(UChar32 c) const; 86 UBool combinesWithCCBetween(const Norm &norm, uint8_t lowCC, uint8_t highCC) const; 87 UChar32 combine(const Norm &norm, UChar32 trail) const [all...] |
/external/opencv/cxcore/src/ |
_cxipp.h | 316 ( const srctype* img, int imgstep, CvSize size, double* norm )) \ 319 ( const srctype* img, int imgstep, CvSize size, double* norm )) \ 322 ( const srctype* img, int imgstep, CvSize size, double* norm )) \ 327 CvSize size, double* norm )) \ 332 CvSize size, double* norm )) \ 337 CvSize size, double* norm )) 343 CvSize size, double* norm )) \ 347 CvSize size, double* norm, CvHintAlgorithm )) \ 351 CvSize size, double* norm, CvHintAlgorithm )) \ 356 CvSize size, double* norm )) \ [all...] |