Home
last modified time | relevance | path

Searched refs:norm2 (Results 1 – 25 of 35) sorted by relevance

12

/external/icu/icu4c/source/common/unicode/
Dunorm2.h237 unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode);
246 unorm2_close(UNormalizer2 *norm2);
284 unorm2_normalize(const UNormalizer2 *norm2,
307 unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2,
330 unorm2_append(const UNormalizer2 *norm2,
355 unorm2_getDecomposition(const UNormalizer2 *norm2,
389 unorm2_getRawDecomposition(const UNormalizer2 *norm2,
409 unorm2_composePair(const UNormalizer2 *norm2, UChar32 a, UChar32 b);
421 unorm2_getCombiningClass(const UNormalizer2 *norm2, UChar32 c);
440 unorm2_isNormalized(const UNormalizer2 *norm2,
[all …]
Dnormalizer2.h514 norm2(n2), set(filterSet) {} in FilteredNormalizer2()
767 const Normalizer2 &norm2; variable
/external/icu/libandroidicu/include/unicode/
Dunorm2.h237 unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode);
246 unorm2_close(UNormalizer2 *norm2);
284 unorm2_normalize(const UNormalizer2 *norm2,
307 unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2,
330 unorm2_append(const UNormalizer2 *norm2,
355 unorm2_getDecomposition(const UNormalizer2 *norm2,
389 unorm2_getRawDecomposition(const UNormalizer2 *norm2,
409 unorm2_composePair(const UNormalizer2 *norm2, UChar32 a, UChar32 b);
421 unorm2_getCombiningClass(const UNormalizer2 *norm2, UChar32 c);
440 unorm2_isNormalized(const UNormalizer2 *norm2,
[all …]
/external/icu/icu4c/source/common/
Dnormalizer2.cpp207 Normalizer2Factory::getImpl(const Normalizer2 *norm2) { in getImpl() argument
208 return &((Normalizer2WithImpl *)norm2)->impl; in getImpl()
324 unorm2_close(UNormalizer2 *norm2) { in unorm2_close() argument
325 delete (Normalizer2 *)norm2; in unorm2_close()
329 unorm2_normalize(const UNormalizer2 *norm2, in unorm2_normalize() argument
346 const Normalizer2 *n2=(const Normalizer2 *)norm2; in unorm2_normalize()
363 normalizeSecondAndAppend(const UNormalizer2 *norm2, in normalizeSecondAndAppend() argument
383 const Normalizer2 *n2=(const Normalizer2 *)norm2; in normalizeSecondAndAppend()
419 unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2, in unorm2_normalizeSecondAndAppend() argument
423 return normalizeSecondAndAppend(norm2, in unorm2_normalizeSecondAndAppend()
[all …]
Dfilterednormalizer2.cpp77 dest.append(norm2.normalize(src.tempSubStringBetween(prevSpanLimit, spanLimit), in normalize()
124 norm2.normalizeUTF8(options, StringPiece(src, spanLength), sink, edits, errorCode); in normalizeUTF8()
178 norm2.normalizeSecondAndAppend(first, prefix, errorCode); in normalizeSecondAndAppend()
180 norm2.append(first, prefix, errorCode); in normalizeSecondAndAppend()
185 norm2.normalizeSecondAndAppend(middle, prefix, errorCode); in normalizeSecondAndAppend()
187 norm2.append(middle, prefix, errorCode); in normalizeSecondAndAppend()
205 return set.contains(c) && norm2.getDecomposition(c, decomposition); in getDecomposition()
210 return set.contains(c) && norm2.getRawDecomposition(c, decomposition); in getRawDecomposition()
215 return (set.contains(a) && set.contains(b)) ? norm2.composePair(a, b) : U_SENTINEL; in composePair()
220 return set.contains(c) ? norm2.getCombiningClass(c) : 0; in getCombiningClass()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizationTransliterator.java25 private final Normalizer2 norm2; field in NormalizationTransliterator
78 norm2 = n2; in NormalizationTransliterator()
115 } while(start < limit && !norm2.hasBoundaryBefore(c = text.char32At(start))); in handleTransliterate()
116 if(start == limit && isIncremental && !norm2.hasBoundaryAfter(c)) { in handleTransliterate()
123 norm2.normalize(segment, normalized); in handleTransliterate()
144 final Normalizer2 norm2; field in NormalizationTransliterator.NormalizingTransform
145 public NormalizingTransform(Normalizer2 norm2) { in NormalizingTransform() argument
146 this.norm2 = norm2; in NormalizingTransform()
150 return norm2.normalize(source); in transform()
162 cache = SOURCE_CACHE.get(norm2); in addSourceTargetSet()
[all …]
DFilteredNormalizer2.java38 norm2=n2; in FilteredNormalizer2()
86 return set.contains(c) ? norm2.getDecomposition(c) : null; in getDecomposition()
94 return set.contains(c) ? norm2.getRawDecomposition(c) : null; in getRawDecomposition()
102 return (set.contains(a) && set.contains(b)) ? norm2.composePair(a, b) : -1; in composePair()
110 return set.contains(c) ? norm2.getCombiningClass(c) : 0; in getCombiningClass()
124 if(!norm2.isNormalized(s.subSequence(prevSpanLimit, spanLimit))) { in isNormalized()
147 norm2.quickCheck(s.subSequence(prevSpanLimit, spanLimit)); in quickCheck()
172 norm2.spanQuickCheckYes(s.subSequence(prevSpanLimit, spanLimit)); in spanQuickCheckYes()
188 return !set.contains(c) || norm2.hasBoundaryBefore(c); in hasBoundaryBefore()
196 return !set.contains(c) || norm2.hasBoundaryAfter(c); in hasBoundaryAfter()
[all …]
DNormalizer.java135 private Normalizer2 norm2; field in Normalizer
581 norm2 = mode.getNormalizer2(opt); in Normalizer()
606 norm2 = mode.getNormalizer2(opt); in Normalizer()
628 norm2 = mode.getNormalizer2(options); in Normalizer()
655 copy.norm2 = norm2; in clone()
1759 norm2 = mode.getNormalizer2(options); in setMode()
1798 norm2 = mode.getNormalizer2(options); in setOption()
1959 if(norm2.hasBoundaryBefore(c)) { in nextNormalize()
1966 norm2.normalize(segment, buffer); in nextNormalize()
1982 if(norm2.hasBoundaryBefore(c)) { in previousNormalize()
[all …]
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DNormalizationTransliterator.java24 private final Normalizer2 norm2; field in NormalizationTransliterator
77 norm2 = n2; in NormalizationTransliterator()
114 } while(start < limit && !norm2.hasBoundaryBefore(c = text.char32At(start))); in handleTransliterate()
115 if(start == limit && isIncremental && !norm2.hasBoundaryAfter(c)) { in handleTransliterate()
122 norm2.normalize(segment, normalized); in handleTransliterate()
143 final Normalizer2 norm2; field in NormalizationTransliterator.NormalizingTransform
144 public NormalizingTransform(Normalizer2 norm2) { in NormalizingTransform() argument
145 this.norm2 = norm2; in NormalizingTransform()
149 return norm2.normalize(source); in transform()
161 cache = SOURCE_CACHE.get(norm2); in addSourceTargetSet()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DFilteredNormalizer2.java38 norm2=n2; in FilteredNormalizer2()
91 return set.contains(c) ? norm2.getDecomposition(c) : null; in getDecomposition()
100 return set.contains(c) ? norm2.getRawDecomposition(c) : null; in getRawDecomposition()
109 return (set.contains(a) && set.contains(b)) ? norm2.composePair(a, b) : -1; in composePair()
118 return set.contains(c) ? norm2.getCombiningClass(c) : 0; in getCombiningClass()
133 if(!norm2.isNormalized(s.subSequence(prevSpanLimit, spanLimit))) { in isNormalized()
157 norm2.quickCheck(s.subSequence(prevSpanLimit, spanLimit)); in quickCheck()
183 norm2.spanQuickCheckYes(s.subSequence(prevSpanLimit, spanLimit)); in spanQuickCheckYes()
200 return !set.contains(c) || norm2.hasBoundaryBefore(c); in hasBoundaryBefore()
209 return !set.contains(c) || norm2.hasBoundaryAfter(c); in hasBoundaryAfter()
[all …]
DNormalizer.java136 private Normalizer2 norm2; field in Normalizer
570 norm2 = mode.getNormalizer2(opt); in Normalizer()
594 norm2 = mode.getNormalizer2(opt); in Normalizer()
615 norm2 = mode.getNormalizer2(options); in Normalizer()
641 copy.norm2 = norm2; in clone()
1719 norm2 = mode.getNormalizer2(options); in setMode()
1756 norm2 = mode.getNormalizer2(options); in setOption()
1908 if(norm2.hasBoundaryBefore(c)) { in nextNormalize()
1915 norm2.normalize(segment, buffer); in nextNormalize()
1931 if(norm2.hasBoundaryBefore(c)) { in previousNormalize()
[all …]
/external/icu/icu4c/source/i18n/
Dnortrans.cpp65 const Normalizer2 *norm2 = Normalizer2::getInstance(NULL, name, mode, errorCode); in _create() local
67 return new NormalizationTransliterator(ID, *norm2); in _create()
77 const Normalizer2 &norm2) : in NormalizationTransliterator() argument
78 Transliterator(id, 0), fNorm2(norm2) {} in NormalizationTransliterator()
Dnortrans.h89 NormalizationTransliterator(const UnicodeString& id, const Normalizer2 &norm2);
/external/icu/icu4c/source/test/perf/normperf/
Dsimplenormperf.cpp237 norm2(n2), src(text), s(src.getBuffer()) {} in NormalizeUTF16()
242 const Normalizer2 &norm2; member in __anon5aaa72380111::NormalizeUTF16
259 norm2.normalize(piece, dest, errorCode); in call()
267 NormalizeUTF8(const Normalizer2 &n2, const UnicodeString &text) : norm2(n2), sink(&dest) { in NormalizeUTF8()
275 const Normalizer2 &norm2; member in __anon5aaa72380111::NormalizeUTF8
297 norm2.normalizeUTF8(0, piece, sink, nullptr, errorCode); in call()
/external/apache-commons-math/src/main/java/org/apache/commons/math/estimation/
DLevenbergMarquardtEstimator.java804 double norm2 = 0; in qrDecomposition() local
807 norm2 += akk * akk; in qrDecomposition()
809 jacNorm[k] = FastMath.sqrt(norm2); in qrDecomposition()
819 double norm2 = 0; in qrDecomposition() local
823 norm2 += aki * aki; in qrDecomposition()
825 if (Double.isInfinite(norm2) || Double.isNaN(norm2)) { in qrDecomposition()
830 if (norm2 > ak2) { in qrDecomposition()
832 ak2 = norm2; in qrDecomposition()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/
DLevenbergMarquardtOptimizer.java804 double norm2 = 0; in qrDecomposition() local
807 norm2 += akk * akk; in qrDecomposition()
809 jacNorm[k] = FastMath.sqrt(norm2); in qrDecomposition()
819 double norm2 = 0; in qrDecomposition() local
822 norm2 += aki * aki; in qrDecomposition()
824 if (Double.isInfinite(norm2) || Double.isNaN(norm2)) { in qrDecomposition()
828 if (norm2 > ak2) { in qrDecomposition()
830 ak2 = norm2; in qrDecomposition()
/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialSolver.h86 RealScalar norm2 = numext::abs2( m_roots[0] ); in selectComplexRoot_withRespectToNorm() local
90 if( pred( currNorm2, norm2 ) ){ in selectComplexRoot_withRespectToNorm()
91 res=i; norm2=currNorm2; } in selectComplexRoot_withRespectToNorm()
/external/icu/icu4c/source/test/intltest/
Dnormconf.cpp285 UBool isNormalizedUTF8(const Normalizer2 &norm2, const UnicodeString &s, UErrorCode &errorCode) { in isNormalizedUTF8() argument
287 return norm2.isNormalizedUTF8(s.toUTF8String(s8), errorCode); in isNormalizedUTF8()
447 const Normalizer2 *norm2, in checkNorm() argument
474 if (norm2 == nullptr || options != 0) { in checkNorm()
486 norm2->normalizeUTF8(0, s8, sink, editsPtr, errorCode); in checkNorm()
Dnormconf.h69 const Normalizer2 *norm2,
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java43 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0); in TestNormalizerAPI() local
44 if(norm2.next()!=0xe4) { in TestNormalizerAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java40 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0); in TestNormalizerAPI() local
41 if(norm2.next()!=0xe4) { in TestNormalizerAPI()
/external/icu/libandroidicu/static_shim/
Dshim.cpp1938 int32_t unorm2_append_android(const UNormalizer2 * norm2, UChar * first, int32_t firstLength, int32… in unorm2_append_android() argument
1939 return unorm2_append(norm2, first, firstLength, firstCapacity, second, secondLength, pErrorCode); in unorm2_append_android()
1941 void unorm2_close_android(UNormalizer2 * norm2) { in unorm2_close_android() argument
1942 unorm2_close(norm2); in unorm2_close_android()
1944 UChar32 unorm2_composePair_android(const UNormalizer2 * norm2, UChar32 a, UChar32 b) { in unorm2_composePair_android() argument
1945 return unorm2_composePair(norm2, a, b); in unorm2_composePair_android()
1947 uint8_t unorm2_getCombiningClass_android(const UNormalizer2 * norm2, UChar32 c) { in unorm2_getCombiningClass_android() argument
1948 return unorm2_getCombiningClass(norm2, c); in unorm2_getCombiningClass_android()
1950 int32_t unorm2_getDecomposition_android(const UNormalizer2 * norm2, UChar32 c, UChar * decompositio… in unorm2_getDecomposition_android() argument
1951 return unorm2_getDecomposition(norm2, c, decomposition, capacity, pErrorCode); in unorm2_getDecomposition_android()
[all …]
/external/libopus/celt/
Dbands.c1384 static void special_hybrid_folding(const CELTMode *m, celt_norm *norm, celt_norm *norm2, int start,… in special_hybrid_folding() argument
1394 OPUS_COPY(&norm2[n1], &norm2[2*n1 - n2], n2-n1); in special_hybrid_folding()
1407 celt_norm * OPUS_RESTRICT norm, * OPUS_RESTRICT norm2; in quant_all_bands() local
1439 norm2 = norm + M*eBands[m->nbEBands-1]-norm_offset; in quant_all_bands()
1515 special_hybrid_folding(m, norm, norm2, start, M, dual_stereo); in quant_all_bands()
1569 norm[j] = HALF32(norm[j]+norm2[j]); in quant_all_bands()
1577 effective_lowband != -1 ? norm2+effective_lowband : NULL, LM, in quant_all_bands()
1578 last?NULL:norm2+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, y_cm); in quant_all_bands()
1627 special_hybrid_folding(m, norm, norm2, start, M, dual_stereo); in quant_all_bands()
/external/tensorflow/tensorflow/contrib/model_pruning/examples/cifar10/
Dcifar10_pruning.py222 norm2 = tf.nn.lrn(
226 norm2,
/external/icu/icu4c/source/tools/gennorm2/
Dn2builder.cpp1010 const Norm *norm2 = b2.norms.getNorm(c); in computeDiff() local
1022 if(norm2 == nullptr || !norm2->hasMapping()) { in computeDiff()
1026 mapping2 = norm2->mapping; in computeDiff()
1027 type2 = norm2->mappingType; in computeDiff()

12