/external/icu/icu4c/source/tools/gennorm2/ |
H A D | extradata.cpp | 40 int32_t ExtraData::writeMapping(UChar32 c, const Norm &norm, UnicodeString &dataString) { argument 41 UnicodeString &m=*norm.mapping; 44 int32_t firstUnit=length|(norm.trailCC<<8); 46 if(norm.rawMapping!=NULL) { 47 UnicodeString &rm=*norm.rawMapping; 79 int32_t cccLccc=norm.cc|(norm.leadCC<<8); 90 int32_t ExtraData::writeNoNoMapping(UChar32 c, const Norm &norm, argument 94 int32_t offset=writeMapping(c, norm, newMapping); 110 UBool ExtraData::setNoNoDelta(UChar32 c, Norm &norm) cons 126 writeCompositions(UChar32 c, const Norm &norm, UnicodeString &dataString) argument 174 rangeHandler(UChar32 start, UChar32 end, Norm &norm) argument 194 writeExtraData(UChar32 c, Norm &norm) argument [all...] |
H A D | extradata.h | 33 void rangeHandler(UChar32 start, UChar32 end, Norm &norm) U_OVERRIDE; 46 * Requires norm.hasMapping(). 51 int32_t writeMapping(UChar32 c, const Norm &norm, UnicodeString &dataString); 52 int32_t writeNoNoMapping(UChar32 c, const Norm &norm, 54 UBool setNoNoDelta(UChar32 c, Norm &norm) const; 55 /** Requires norm.compositions!=nullptr. */ 56 void writeCompositions(UChar32 c, const Norm &norm, UnicodeString &dataString); 57 void writeExtraData(UChar32 c, Norm &norm);
|
H A D | n2builder.cpp | 324 void Normalizer2DataBuilder::postProcess(Norm &norm) { argument 331 if(norm.hasMapping()) { 332 if(norm.mapping->length()>Normalizer2Impl::MAPPING_LENGTH_MASK) { 333 norm.error="mapping longer than maximum of 31"; 338 if(norm.rawMapping!=nullptr) { 339 norms.reorder(*norm.rawMapping, buffer); 342 norms.reorder(*norm.mapping, buffer); 347 norm.leadCC=1; 348 norm.trailCC=0xff; 350 norm 422 writeNorm16(UChar32 start, UChar32 end, Norm &norm) argument 942 const Norm *norm; local [all...] |
/external/python/cpython2/Lib/test/ |
H A D | test_glob.py | 16 def norm(self, *parts): member in class:GlobTests 20 filename = self.norm(*parts) 38 os.symlink(self.norm('broken'), self.norm('sym1')) 39 os.symlink('broken', self.norm('sym2')) 40 os.symlink(os.path.join('a', 'bcd'), self.norm('sym3')) 66 eq(self.glob('a'), [self.norm('a')]) 67 eq(self.glob('a', 'D'), [self.norm('a', 'D')]) 68 eq(self.glob('aab'), [self.norm('aab')]) 87 eq(self.glob('a*'), map(self.norm, [' [all...] |
/external/libcxx/test/std/numerics/complex.number/cmplx.over/ |
H A D | norm.pass.cpp | 14 // norm(T x); 26 static_assert((std::is_same<decltype(std::norm(x)), double>::value), ""); 27 assert(std::norm(x) == norm(std::complex<double>(static_cast<double>(x), 0))); 34 static_assert((std::is_same<decltype(std::norm(x)), T>::value), ""); 35 assert(std::norm(x) == norm(std::complex<T>(x, 0)));
|
H A D | UDT_is_rejected.fail.cpp | 54 std::norm(ft); // expected-error {{no matching function}} 55 std::norm(dt); // expected-error {{no matching function}} 56 std::norm(ldt); // expected-error {{no matching function}} 57 std::norm(it); // expected-error {{no matching function}} 58 std::norm(uit); // expected-error {{no matching function}}
|
/external/eigen/doc/snippets/ |
H A D | PartialRedux_norm.cpp | 3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
|
H A D | RealQZ_compute.cpp | 13 << "\n|A-QSZ|: " << (A-qz.matrixQ()*qz.matrixS()*qz.matrixZ()).norm() 14 << ", |B-QTZ|: " << (B-qz.matrixQ()*qz.matrixT()*qz.matrixZ()).norm() 15 << "\n|QQ* - I|: " << (qz.matrixQ()*qz.matrixQ().adjoint() - MatrixXf::Identity(4,4)).norm() 16 << ", |ZZ* - I|: " << (qz.matrixZ()*qz.matrixZ().adjoint() - MatrixXf::Identity(4,4)).norm()
|
H A D | PartialPivLU_solve.cpp | 7 cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl;
|
/external/eigen/doc/examples/ |
H A D | TutorialLinAlgExComputeSolveError.cpp | 12 double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp | 19 cout << "v.norm() = " << v.norm() << endl; 25 cout << "m.norm() = " << m.norm() << endl;
|
H A D | TutorialInplaceLU.cpp | 33 cout << "Residual: " << (A0 * x - b).norm() << endl; 39 cout << "Residual: " << (A0 * x - b).norm() << endl; 46 cout << "Residual: " << (A0 * x - b).norm() << endl; 58 cout << "Residual: " << (A1 * x - b).norm() << endl;
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
H A D | dct_ops_test.py | 45 def _np_dct2(self, signals, norm=None): 55 if norm == "ortho": 64 def _compare(self, signals, norm, atol=5e-4, rtol=5e-4): 66 np_dct = self._np_dct2(signals, norm) 67 tf_dct = spectral_ops.dct(signals, type=2, norm=norm).eval() 70 scipy_dct = fftpack.dct(signals, type=2, norm=norm) 79 for norm in (None, "ortho"): 80 self._compare(signals, norm) [all...] |
/external/python/cpython3/Lib/test/ |
H A D | test_glob.py | 13 def norm(self, *parts): member in class:GlobTests 20 filename = self.norm(*parts) 38 os.symlink(self.norm('broken'), self.norm('sym1')) 39 os.symlink('broken', self.norm('sym2')) 40 os.symlink(os.path.join('a', 'bcd'), self.norm('sym3')) 66 eq(self.glob('a'), [self.norm('a')]) 67 eq(self.glob('a', 'D'), [self.norm('a', 'D')]) 68 eq(self.glob('aab'), [self.norm('aab')]) 83 eq(self.glob('a*'), map(self.norm, [' [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
H A D | StringPool.java | 43 final String norm = pool.get(s); 44 if (norm == null) { 48 return norm;
|
/external/opencv/cxcore/src/ |
H A D | cxnorm.cpp | 57 norm = _update_op_( norm, t0 ); \ 58 norm = _update_op_( norm, t1 ); \ 64 norm = _update_op_( norm, t0 ); \ 65 norm = _update_op_( norm, t1 ); \ 72 norm = _update_op_( norm, t 971 double norm = 0, norm_diff = 0; local [all...] |
/external/eigen/test/ |
H A D | stable_norm.cpp | 40 && "the stable norm algorithm cannot be guaranteed on this computer"); 76 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); 77 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); 78 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); 79 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); 89 VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default norm must fail 96 VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the default norm must fail 102 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); 103 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); 104 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); [all...] |
H A D | householder.cpp | 45 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 46 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); 50 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 61 VERIFY_IS_APPROX(m1.norm(), m2.norm()); 62 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m1.block(1,0,rows-1,cols).norm(), m1.norm()); [all...] |
/external/skia/src/core/ |
H A D | SkHalf.h | 57 Sk4i norm = (positive << 13) + ((127 - 15) << 23); 59 Sk4i merged = (sign << 16) | (norm & is_norm); 78 Sk4i norm = (positive - ((127 - 15) << 23)) >> 13; 80 Sk4i merged = (sign >> 16) | (will_be_norm & norm);
|
/external/skqp/src/core/ |
H A D | SkHalf.h | 57 Sk4i norm = (positive << 13) + ((127 - 15) << 23); 59 Sk4i merged = (sign << 16) | (norm & is_norm); 78 Sk4i norm = (positive - ((127 - 15) << 23)) >> 13; 80 Sk4i merged = (sign >> 16) | (will_be_norm & norm);
|
/external/mesa3d/src/mesa/tnl/ |
H A D | t_vb_texgen.c | 105 const GLfloat *norm = normal->start; local 108 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { 112 two_nu = 2.0F * DOT3(norm,u); 113 fx = f[i][0] = u[0] - norm[0] * two_nu; 114 fy = f[i][1] = u[1] - norm[1] * two_nu; 115 fz = f[i][2] = u[2] - norm[2] * two_nu; 133 GLfloat *norm = normal->start; local 136 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { 141 two_nu = 2.0F * DOT3(norm,u); 142 fx = f[i][0] = u[0] - norm[ 182 GLfloat *norm = normal->start; local 208 GLfloat *norm = normal->start; local 282 const GLfloat *norm = normal->start; local 387 const GLfloat *norm = normal->start; local 420 const GLfloat *norm = normal->start; local 449 const GLfloat *norm = normal->start; local [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | tstnrapi.cpp | 28 Normalizer norm(iter, UNORM_NFC); 29 if(norm.next()!=0xe4) { 34 Normalizer copy(norm); 76 norm.setIndexOnly(3); 77 if(norm.current()!=0x4e3d) { 136 norm.setMode(UNORM_NONE); 137 if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) {
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_query_hw_sm.c | 609 uint8_t norm[2]; /* normalization num,denom */ member in struct:nvc0_hw_sm_query_cfg 623 .norm = { 1, 1 }, 632 .norm = { 2, 1 }, 641 .norm = { 1, 1 }, 650 .norm = { 1, 1 }, 659 .norm = { 1, 1 }, 668 .norm = { 1, 1 }, 677 .norm = { 1, 1 }, 686 .norm = { 1, 1 }, 695 .norm [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_parse.py | 55 def __init__(self, type, norm, pure, size, name = ''): 57 self.norm = norm 65 if self.norm: 73 return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.size == other.size 81 if self.norm: 97 if self.norm: 123 '''Make up a short norm for a format, suitable to be used as suffix in 157 if channel.norm ! [all...] |
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
H A D | norm.pass.cpp | 14 // norm(const complex<T>& x); 26 assert(norm(z) == 25); 34 double r = norm(testcases[i]);
|