Home
last modified time | relevance | path

Searched refs:norm (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/external/python/cpython2/Lib/test/
Dtest_glob.py16 def norm(self, *parts): member in 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, ['a', 'aab', 'aaa']))
88 eq(self.glob('*a'), map(self.norm, ['a', 'aaa']))
[all …]
/external/icu/icu4c/source/tools/gennorm2/
Dextradata.cpp40 int32_t ExtraData::writeMapping(UChar32 c, const Norm &norm, UnicodeString &dataString) { in writeMapping() argument
41 UnicodeString &m=*norm.mapping; in writeMapping()
44 int32_t firstUnit=length|(norm.trailCC<<8); in writeMapping()
46 if(norm.rawMapping!=NULL) { in writeMapping()
47 UnicodeString &rm=*norm.rawMapping; in writeMapping()
79 int32_t cccLccc=norm.cc|(norm.leadCC<<8); in writeMapping()
90 int32_t ExtraData::writeNoNoMapping(UChar32 c, const Norm &norm, in writeNoNoMapping() argument
94 int32_t offset=writeMapping(c, norm, newMapping); in writeNoNoMapping()
110 UBool ExtraData::setNoNoDelta(UChar32 c, Norm &norm) const { in setNoNoDelta()
113 if(norm.mappingCP>=0 && in setNoNoDelta()
[all …]
Dn2builder.cpp324 void Normalizer2DataBuilder::postProcess(Norm &norm) { in postProcess() argument
331 if(norm.hasMapping()) { in postProcess()
332 if(norm.mapping->length()>Normalizer2Impl::MAPPING_LENGTH_MASK) { in postProcess()
333 norm.error="mapping longer than maximum of 31"; in postProcess()
338 if(norm.rawMapping!=nullptr) { in postProcess()
339 norms.reorder(*norm.rawMapping, buffer); in postProcess()
342 norms.reorder(*norm.mapping, buffer); in postProcess()
347 norm.leadCC=1; in postProcess()
348 norm.trailCC=0xff; in postProcess()
350 norm.leadCC=buffer.ccAt(0); in postProcess()
[all …]
Dnorms.cpp142 UBool Norms::combinesWithCCBetween(const Norm &norm, uint8_t lowCC, int32_t highCC) const { in combinesWithCCBetween() argument
145 const CompositionPair *pairs=norm.getCompositionPairs(length); in combinesWithCCBetween()
178 void CompositionBuilder::rangeHandler(UChar32 start, UChar32 end, Norm &norm) { in rangeHandler() argument
179 if(norm.mappingType!=Norm::ROUND_TRIP) { return; } in rangeHandler()
187 if(norm.cc!=0) { in rangeHandler()
196 const UnicodeString &m=*norm.mapping; in rangeHandler()
238 void Decomposer::rangeHandler(UChar32 start, UChar32 end, Norm &norm) { in rangeHandler() argument
239 if(!norm.hasMapping()) { return; } in rangeHandler()
240 const UnicodeString &m=*norm.mapping; in rangeHandler()
257 if(norm.mappingType==Norm::ROUND_TRIP) { in rangeHandler()
[all …]
Dextradata.h33 void rangeHandler(UChar32 start, UChar32 end, Norm &norm) U_OVERRIDE;
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;
56 void writeCompositions(UChar32 c, const Norm &norm, UnicodeString &dataString);
57 void writeExtraData(UChar32 c, Norm &norm);
/external/libxml2/result/
Datt5.sax12 SAX.startElement(norm, attr=' ')
13 SAX.endElement(norm)
16 SAX.startElement(norm, attr=' foo bar ')
17 SAX.endElement(norm)
20 SAX.startElement(norm, attr=' foobar')
21 SAX.endElement(norm)
24 SAX.startElement(norm, attr=' foo bar ')
25 SAX.endElement(norm)
28 SAX.startElement(norm, attr='foobar ')
29 SAX.endElement(norm)
[all …]
Datt5.sax212 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' '...', 3)
13 SAX.endElementNs(norm, NULL, NULL)
16 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' f...', 13)
17 SAX.endElementNs(norm, NULL, NULL)
20 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' fo...', 8)
21 SAX.endElementNs(norm, NULL, NULL)
24 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' foo...', 9)
25 SAX.endElementNs(norm, NULL, NULL)
28 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr='foob...', 8)
29 SAX.endElementNs(norm, NULL, NULL)
[all …]
Datt5.rde8 1 1 norm 1 0
11 1 1 norm 1 0
14 1 1 norm 1 0
17 1 1 norm 1 0
20 1 1 norm 1 0
23 1 1 norm 1 0
26 1 1 norm 1 0
29 1 1 norm 1 0
32 1 1 norm 1 0
35 1 1 norm 1 0
[all …]
Datt5.rdr8 1 1 norm 1 0
11 1 1 norm 1 0
14 1 1 norm 1 0
17 1 1 norm 1 0
20 1 1 norm 1 0
23 1 1 norm 1 0
26 1 1 norm 1 0
29 1 1 norm 1 0
32 1 1 norm 1 0
35 1 1 norm 1 0
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_query_hw_sm.c609 uint8_t norm[2]; /* normalization num,denom */ member
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 = { 1, 1 },
[all …]
/external/opencv/cxcore/src/
Dcxnorm.cpp57 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, t0 ); \
83 norm = _update_op_( norm, t0 ); \
98 norm = _update_op_( norm, t0 ); \
99 norm = _update_op_( norm, t1 ); \
107 norm = _update_op_( norm, t0 ); \
108 norm = _update_op_( norm, t1 ); \
[all …]
/external/python/cpython3/Lib/test/
Dtest_glob.py13 def norm(self, *parts): member in 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, ['a', 'aab', 'aaa']))
84 eq(self.glob('*a'), map(self.norm, ['a', 'aaa']))
[all …]
/external/libxml2/result/noent/
Datt5.sax212 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' '...', 3)
13 SAX.endElementNs(norm, NULL, NULL)
16 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' f...', 13)
17 SAX.endElementNs(norm, NULL, NULL)
20 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' fo...', 8)
21 SAX.endElementNs(norm, NULL, NULL)
24 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr=' foo...', 9)
25 SAX.endElementNs(norm, NULL, NULL)
28 SAX.startElementNs(norm, NULL, NULL, 0, 1, 0, attr='foob...', 8)
29 SAX.endElementNs(norm, NULL, NULL)
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vb_texgen.c105 const GLfloat *norm = normal->start; in build_m3() local
108 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m3()
112 two_nu = 2.0F * DOT3(norm,u); in build_m3()
113 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m3()
114 fy = f[i][1] = u[1] - norm[1] * two_nu; in build_m3()
115 fz = f[i][2] = u[2] - norm[2] * two_nu; in build_m3()
133 GLfloat *norm = normal->start; in build_m2() local
136 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m2()
141 two_nu = 2.0F * DOT3(norm,u); in build_m2()
142 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m2()
[all …]
/external/eigen/test/
Dstable_norm.cpp76 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); in stable_norm()
77 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); in stable_norm()
78 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); in stable_norm()
79 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); in stable_norm()
102 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); in stable_norm()
103 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); in stable_norm()
104 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); in stable_norm()
105 VERIFY_IS_APPROX(vrand.rowwise().stableNorm(), vrand.rowwise().norm()); in stable_norm()
106 VERIFY_IS_APPROX(vrand.rowwise().blueNorm(), vrand.rowwise().norm()); in stable_norm()
107 VERIFY_IS_APPROX(vrand.rowwise().hypotNorm(), vrand.rowwise().norm()); in stable_norm()
[all …]
Dhouseholder.cpp45 VERIFY_IS_APPROX(v1.norm(), v2.norm()); in householder()
46 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); in householder()
50 VERIFY_IS_APPROX(v1.norm(), v2.norm()); in householder()
61 VERIFY_IS_APPROX(m1.norm(), m2.norm()); in householder()
62 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m1.block(1,0,rows-1,cols).norm(), m1.norm()); in householder()
73 VERIFY_IS_APPROX(m3.norm(), m4.norm()); in householder()
74 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m3.block(0,1,rows,rows-1).norm(), m3.norm()); in householder()
Dadjoint.cpp33 … = NumTraits<Scalar>::IsInteger ? RealScalar(0) : (std::max)((s1 * v1 + s2 * v2).norm(),v3.norm()); in run()
37 VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); in run()
39 VERIFY_IS_APPROX(v1, v1.norm() * v1.normalized()); in run()
42 VERIFY_IS_APPROX(v1, v1.norm() * v3); in run()
44 VERIFY_IS_APPROX(v3.norm(), RealScalar(1)); in run()
50 VERIFY( (v1*very_small).norm() == 0 ); in run()
58 …teger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adj… in run()
63 VERIFY_IS_APPROX(Vec::Random(v1.size()).normalized().norm(), RealScalar(1)); in run()
/external/libgsm/add-test/
Dadd_test.dta317 'norm ================
320 norm 1 = 30
321 norm 2 = 29
322 norm 3 = 29
323 norm 4 = 28
324 norm 5 = 28
326 norm 0x08000000 = 3
327 norm 0x10000000 = 2
328 norm 0x20000000 = 1
329 norm 0x20000001 = 1
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Ddct_ops_test.py45 def _np_dct2(self, signals, norm=None): argument
55 if norm == "ortho":
64 def _compare(self, signals, norm, atol=5e-4, rtol=5e-4): argument
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)
89 spectral_ops.dct(signals, norm="bad")
Dclip_ops_test.py159 ans, norm = clip_ops.clip_by_global_norm((x0, x1), clip_norm)
162 tf_norm = norm.eval()
180 ans, norm = clip_ops.clip_by_global_norm((x0, x1), clip_norm)
183 tf_norm = norm.eval()
201 ans, norm = clip_ops.clip_by_global_norm((x0, None, x1, None), clip_norm)
206 tf_norm = norm.eval()
225 ans, norm = clip_ops.clip_by_global_norm([x0, x1], clip_norm)
228 tf_norm = norm.eval()
255 ans, norm = clip_ops.clip_by_global_norm([x0, x1], clip_norm)
258 tf_norm = norm.eval()
[all …]
/external/mesa3d/src/mesa/main/
Dformat_parser.py48 def __init__(self, type, norm, size): argument
50 self.norm = norm
59 if self.norm:
65 return self.type == other.type and self.norm == other.norm and self.size == other.size
71 if self.norm:
85 if self.norm:
349 if channel.norm != ref_channel.norm:
432 norm = None
436 if norm is None:
437 norm = c.norm
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_parse.py55 def __init__(self, type, norm, pure, size, name = ''): argument
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.si…
81 if self.norm:
97 if self.norm:
157 if channel.norm != ref_channel.norm:
176 if channel.norm != ref_channel.norm:
294 norm = True
299 norm = False
[all …]
/external/mesa3d/src/amd/vulkan/
Dvk_format_parse.py56 def __init__(self, type, norm, pure, scaled, size, name = ''): argument
58 self.norm = norm
67 if self.norm:
77 …return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.si…
85 if self.norm:
101 if self.norm:
161 if channel.norm != ref_channel.norm:
182 if channel.norm != ref_channel.norm:
302 norm = True
308 norm = False
[all …]
/external/icu/icu4c/source/test/intltest/
Dtstnrapi.cpp28 Normalizer norm(iter, UNORM_NFC); in TestNormalizerAPI() local
29 if(norm.next()!=0xe4) { in TestNormalizerAPI()
34 Normalizer copy(norm); in TestNormalizerAPI()
76 norm.setIndexOnly(3); in TestNormalizerAPI()
77 if(norm.current()!=0x4e3d) { in TestNormalizerAPI()
136 norm.setMode(UNORM_NONE); in TestNormalizerAPI()
137 if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) { in TestNormalizerAPI()
/external/libcxx/test/std/numerics/complex.number/cmplx.over/
Dnorm.pass.cpp26 static_assert((std::is_same<decltype(std::norm(x)), double>::value), ""); in test()
27 assert(std::norm(x) == norm(std::complex<double>(static_cast<double>(x), 0))); in test()
34 static_assert((std::is_same<decltype(std::norm(x)), T>::value), ""); in test()
35 assert(std::norm(x) == norm(std::complex<T>(x, 0))); in test()

12345678910>>...14