Home
last modified time | relevance | path

Searched refs:det (Results 1 – 25 of 141) sorted by relevance

123456

/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp131 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument
133 if (nextIndex >= det->fRawLength) { in nextByte()
139 return det->fRawInput[nextIndex++]; in nextByte()
147 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonC… in match_mbcs() argument
156 while (nextChar(&iter, det)) { in match_mbcs()
243 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar()
247 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar()
257 int32_t secondByte = it->nextByte(det); in nextChar()
271 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument
272 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis)); in match()
[all …]
Dcsrsbcs.h48 virtual int32_t nextByte(InputText *det);
49 virtual void parseCharacters(InputText *det);
52 int32_t parse(InputText *det);
61 int32_t nextByte(InputText *det);
62 void parseCharacters(InputText *det);
75 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
76 … virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const;
84 virtual UBool match(InputText *det, CharsetMatch *results) const;
92 virtual UBool match(InputText *det, CharsetMatch *results) const;
143 virtual UBool match(InputText *det, CharsetMatch *results) const;
[all …]
Dcsrsbcs.cpp90 int32_t NGramParser::nextByte(InputText *det) in nextByte() argument
92 if (byteIndex >= det->fInputLen) { in nextByte()
96 return det->fInputBytes[byteIndex++]; in nextByte()
99 void NGramParser::parseCharacters(InputText *det) in parseCharacters() argument
104 while ((b = nextByte(det)) >= 0) { in parseCharacters()
118 int32_t NGramParser::parse(InputText *det) in parse() argument
120 parseCharacters(det); in parse()
185 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() argument
188 if (byteIndex >= det->fInputLen || det->fInputBytes[byteIndex] == 0) { in nextByte()
193 alef = isLamAlef(det->fInputBytes[byteIndex]); in nextByte()
[all …]
Dcsrmbcs.h42 int32_t nextByte(InputText* det);
61 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
101 UBool nextChar(IteratedChar *it, InputText *det) const;
132 UBool nextChar(IteratedChar *it, InputText *det) const;
175 UBool nextChar(IteratedChar* it, InputText* det) const;
194 UBool nextChar(IteratedChar* it, InputText* det) const;
/external/chromium_org/third_party/icu/source/i18n/
Dcsrmbcs.cpp131 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument
133 if (nextIndex >= det->fRawLength) { in nextByte()
139 return det->fRawInput[nextIndex++]; in nextByte()
147 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonC… in match_mbcs() argument
156 while (nextChar(&iter, det)) { in match_mbcs()
243 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar()
247 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar()
257 int32_t secondByte = it->nextByte(det); in nextChar()
271 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument
272 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis)); in match()
[all …]
Dcsrsbcs.h45 virtual int32_t nextByte(InputText *det);
46 virtual void parseCharacters(InputText *det);
49 int32_t parse(InputText *det);
58 int32_t nextByte(InputText *det);
59 void parseCharacters(InputText *det);
72 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
73 … virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const;
81 virtual UBool match(InputText *det, CharsetMatch *results) const;
89 virtual UBool match(InputText *det, CharsetMatch *results) const;
140 virtual UBool match(InputText *det, CharsetMatch *results) const;
[all …]
Dcsrsbcs.cpp90 int32_t NGramParser::nextByte(InputText *det) in nextByte() argument
92 if (byteIndex >= det->fInputLen) { in nextByte()
96 return det->fInputBytes[byteIndex++]; in nextByte()
99 void NGramParser::parseCharacters(InputText *det) in parseCharacters() argument
104 while ((b = nextByte(det)) >= 0) { in parseCharacters()
118 int32_t NGramParser::parse(InputText *det) in parse() argument
120 parseCharacters(det); in parse()
185 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() argument
188 if (byteIndex >= det->fInputLen || det->fInputBytes[byteIndex] == 0) { in nextByte()
193 alef = isLamAlef(det->fInputBytes[byteIndex]); in nextByte()
[all …]
Dcsrmbcs.h42 int32_t nextByte(InputText* det);
61 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
101 UBool nextChar(IteratedChar *it, InputText *det) const;
132 UBool nextChar(IteratedChar *it, InputText *det) const;
175 UBool nextChar(IteratedChar* it, InputText* det) const;
194 UBool nextChar(IteratedChar* it, InputText* det) const;
/external/chromium-trace/trace-viewer/third_party/gl-matrix/src/gl-matrix/
Dmat2d.js121 var det = aa * ad - ab * ac;
122 if(!det){
125 det = 1.0 / det;
127 out[0] = ad * det;
128 out[1] = -ab * det;
129 out[2] = -ac * det;
130 out[3] = aa * det;
131 out[4] = (ac * aty - ad * atx) * det;
132 out[5] = (ab * atx - aa * aty) * det;
Dmat2.js121 det = a0 * a3 - a2 * a1;
123 if (!det) {
126 det = 1.0 / det;
128 out[0] = a3 * det;
129 out[1] = -a1 * det;
130 out[2] = -a2 * det;
131 out[3] = a0 * det;
Dmat3.js176 det = a00 * b01 + a01 * b11 + a02 * b21;
178 if (!det) {
181 det = 1.0 / det;
183 out[0] = b01 * det;
184 out[1] = (-a22 * a01 + a02 * a21) * det;
185 out[2] = (a12 * a01 - a02 * a11) * det;
186 out[3] = b11 * det;
187 out[4] = (a22 * a00 - a02 * a20) * det;
188 out[5] = (-a12 * a00 + a02 * a10) * det;
189 out[6] = b21 * det;
[all …]
/external/chromium_org/third_party/qcms/src/
Dmatrix.c41 float det; in matrix_det() local
42 det = mat.m[0][0]*mat.m[1][1]*mat.m[2][2] + in matrix_det()
48 return det; in matrix_det()
63 float det = matrix_det(mat); in matrix_invert() local
65 if (det == 0) { in matrix_invert()
71 det = 1/det; in matrix_invert()
86 dest_mat.m[j][i] = det * p; in matrix_invert()
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsmtrx.c131 cmsFloat64Number det, c0, c1, c2; in _cmsMAT3inverse() local
137 det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; in _cmsMAT3inverse()
139 if (fabs(det) < MATRIX_DET_TOLERANCE) return FALSE; // singular matrix; can't invert in _cmsMAT3inverse()
141 b -> v[0].n[0] = c0/det; in _cmsMAT3inverse()
142 b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; in _cmsMAT3inverse()
143 b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; in _cmsMAT3inverse()
144 b -> v[1].n[0] = c1/det; in _cmsMAT3inverse()
145 b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; in _cmsMAT3inverse()
146 b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; in _cmsMAT3inverse()
147 b -> v[2].n[0] = c2/det; in _cmsMAT3inverse()
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Deqp.test28 proc det {args} { uplevel do_eqp_test $args }
126 det 2.2.1 "SELECT DISTINCT min(x), max(x) FROM t1 GROUP BY x ORDER BY 1" {
132 det 2.2.2 "SELECT DISTINCT min(x), max(x) FROM t2 GROUP BY x ORDER BY 1" {
137 det 2.2.3 "SELECT DISTINCT * FROM t1" {
141 det 2.2.4 "SELECT DISTINCT * FROM t1, t2" {
146 det 2.2.5 "SELECT DISTINCT * FROM t1, t2 ORDER BY t1.x" {
152 det 2.2.6 "SELECT DISTINCT t2.x FROM t1, t2 ORDER BY t2.x" {
157 det 2.3.1 "SELECT max(x) FROM t2" {
160 det 2.3.2 "SELECT min(x) FROM t2" {
163 det 2.3.3 "SELECT min(x), max(x) FROM t2" {
[all …]
/external/eigen/test/
Dinverse.cpp50 RealScalar det; in inverse() local
53 m1.computeInverseAndDetWithCheck(m2, det, invertible); in inverse()
56 VERIFY_IS_APPROX(det, m1.determinant()); in inverse()
66 m3.computeInverseAndDetWithCheck(m4, det, invertible); in inverse()
68 VERIFY_IS_MUCH_SMALLER_THAN(abs(det-m3.determinant()), RealScalar(1)); in inverse()
/external/skia/src/core/
DSkPoint.cpp215 SkScalar det = u.cross(v); in distanceToLineBetweenSqd() local
220 *side = (Side) SkScalarSignAsInt(det); in distanceToLineBetweenSqd()
222 return SkScalarMulDiv(det, det, uLengthSqd); in distanceToLineBetweenSqd()
254 SkScalar det = u.cross(v); in distanceToLineSegmentBetweenSqd() local
255 return SkScalarMulDiv(det, det, uLengthSqd); in distanceToLineSegmentBetweenSqd()
/external/chromium_org/third_party/skia/experimental/
DSkSetPoly3To3_A.cpp59 SkDScalar det = SkDScalar_setMul(srcOP[0], srcOP[3]) - in SkSetPoly3To3_A() local
75 matrix->setScaleX(divide(M[0], det)); in SkSetPoly3To3_A()
76 matrix->setSkewX( divide(M[1], det)); in SkSetPoly3To3_A()
77 matrix->setSkewY (divide(M[2], det)); in SkSetPoly3To3_A()
78 matrix->setScaleY(divide(M[3], det)); in SkSetPoly3To3_A()
/external/skia/experimental/
DSkSetPoly3To3_A.cpp59 SkDScalar det = SkDScalar_setMul(srcOP[0], srcOP[3]) - in SkSetPoly3To3_A() local
75 matrix->setScaleX(divide(M[0], det)); in SkSetPoly3To3_A()
76 matrix->setSkewX( divide(M[1], det)); in SkSetPoly3To3_A()
77 matrix->setSkewY (divide(M[2], det)); in SkSetPoly3To3_A()
78 matrix->setScaleY(divide(M[3], det)); in SkSetPoly3To3_A()
/external/opencv/cv/src/
Dcvlinefit.cpp111 float det[9], evc[9], evl[3]; in icvFitLine3D_wods() local
177 det[0] = dz2 + dy2; in icvFitLine3D_wods()
178 det[1] = -dxy; in icvFitLine3D_wods()
179 det[2] = -dxz; in icvFitLine3D_wods()
180 det[3] = det[1]; in icvFitLine3D_wods()
181 det[4] = dx2 + dz2; in icvFitLine3D_wods()
182 det[5] = -dyz; in icvFitLine3D_wods()
183 det[6] = det[2]; in icvFitLine3D_wods()
184 det[7] = det[5]; in icvFitLine3D_wods()
185 det[8] = dy2 + dx2; in icvFitLine3D_wods()
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkPoint.cpp226 SkScalar det = u.cross(v); in distanceToLineBetweenSqd() local
231 *side = (Side) SkScalarSignAsInt(det); in distanceToLineBetweenSqd()
233 return SkScalarMulDiv(det, det, uLengthSqd); in distanceToLineBetweenSqd()
265 SkScalar det = u.cross(v); in distanceToLineSegmentBetweenSqd() local
266 return SkScalarMulDiv(det, det, uLengthSqd); in distanceToLineSegmentBetweenSqd()
/external/aac/libFDK/src/
Dautocorr2nd.cpp174 ac->det = (fMultDiv2(ac->r11r,ac->r22r) - fMultDiv2(ac->r12r,ac->r12r)) ; in autoCorr2nd_real()
175 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_real()
177 ac->det <<= mScale; in autoCorr2nd_real()
266 ac->det = ( fMultDiv2(ac->r11r,ac->r22r) >> 1 ) - in autoCorr2nd_cplx()
268 mScale = CountLeadingBits(fAbs(ac->det)); in autoCorr2nd_cplx()
270 ac->det <<= mScale; in autoCorr2nd_cplx()
/external/valgrind/main/none/tests/
Dfucomip.c5 float det = 625.f; in main() local
7 if (det < 1) in main()
/external/skia/experimental/Intersection/
DNearestPoint.cpp336 double det, dInv; variable
349 det = a1 * b2 - a2 * b1;
350 dInv = 1.0/det;
359 det = a1 * b2 - a2 * b1;
360 dInv = 1.0/det;
394 double det, detInv; variable
405 det = XNM*YLK - YNM*XLK;
406 detInv = 1.0/det;
/external/chromium_org/third_party/skia/experimental/Intersection/
DNearestPoint.cpp336 double det, dInv; variable
349 det = a1 * b2 - a2 * b1;
350 dInv = 1.0/det;
359 det = a1 * b2 - a2 * b1;
360 dInv = 1.0/det;
394 double det, detInv; variable
405 det = XNM*YLK - YNM*XLK;
406 detInv = 1.0/det;
/external/fonttools/Lib/fontTools/misc/
Dtransform.py239 det = xx*yy - yx*xy
240 xx, xy, yx, yy = yy/det, -xy/det, -yx/det, xx/det

123456