Home
last modified time | relevance | path

Searched refs:normalized (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/eigen/test/
Dgeo_quaternion.cpp80 q1 = AngleAxisx(a, v0.normalized()); in quaternion()
81 q2 = AngleAxisx(a, v1.normalized()); in quaternion()
112 && (aa.axis() - v1.normalized()).norm() < 1.99 in quaternion()
113 && (aa.axis() + v1.normalized()).norm() < 1.99) in quaternion()
119 VERIFY_IS_APPROX( v2.normalized(),(q2.setFromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
120 VERIFY_IS_APPROX( v1.normalized(),(q2.setFromTwoVectors(v1, v1)*v1).normalized()); in quaternion()
121 VERIFY_IS_APPROX(-v1.normalized(),(q2.setFromTwoVectors(v1,-v1)*v1).normalized()); in quaternion()
125 VERIFY_IS_APPROX( v3.normalized(),(q2.setFromTwoVectors(v1, v3)*v1).normalized()); in quaternion()
126 VERIFY_IS_APPROX(-v3.normalized(),(q2.setFromTwoVectors(v1,-v3)*v1).normalized()); in quaternion()
130 VERIFY_IS_APPROX( v2.normalized(),(Quaternionx::FromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
[all …]
Dvectorwiseop.cpp183 m2 = m1.colwise().normalized(); in vectorwiseop_matrix()
184 VERIFY_IS_APPROX(m2.col(c), m1.col(c).normalized()); in vectorwiseop_matrix()
185 m2 = m1.rowwise().normalized(); in vectorwiseop_matrix()
186 VERIFY_IS_APPROX(m2.row(r), m1.row(r).normalized()); in vectorwiseop_matrix()
191 VERIFY_IS_APPROX(m2.col(c), m1.col(c).normalized()); in vectorwiseop_matrix()
194 VERIFY_IS_APPROX(m2.row(r), m1.row(r).normalized()); in vectorwiseop_matrix()
/external/harfbuzz_ng/src/
Dhb-icu.cc190 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local
203 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose()
206 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose()
207 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose()
249 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local
264 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose()
268 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose()
271 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose()
276 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose()
277 U16_NEXT_UNSAFE (normalized, len, *b); in hb_icu_unicode_decompose()
[all …]
Dhb-glib.cc254 gchar *normalized; in hb_glib_unicode_compose() local
260 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose()
261 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_compose()
266 *ab = g_utf8_get_char (normalized); in hb_glib_unicode_compose()
272 g_free (normalized); in hb_glib_unicode_compose()
291 gchar *normalized; in hb_glib_unicode_decompose() local
296 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose()
297 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_decompose()
302 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
306 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
[all …]
/external/chromium-trace/catapult/dashboard/dashboard/
Dfind_step_test.py155 normalized = find_step._Normalize([5.0])
156 self.assertEqual(1, len(normalized))
157 self.assertTrue(math.isnan(normalized[0]))
159 normalized = find_step._Normalize([5.0, 5.0])
160 self.assertEqual(2, len(normalized))
161 self.assertTrue(math.isnan(normalized[0]))
162 self.assertTrue(math.isnan(normalized[1]))
174 normalized = find_step._Normalize(y_values)
175 self.assertAlmostEqual(0.0, math_utils.Mean(normalized))
176 self.assertAlmostEqual(1.0, math_utils.StandardDeviation(normalized))
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DFCDIterCollationIterator.java83 pos != normalized.length()) { in nextCodePoint()
84 c = normalized.codePointAt(pos); in nextCodePoint()
137 c = normalized.codePointBefore(pos); in previousCodePoint()
173 pos != normalized.length()) { in handleNextCE32()
174 c = normalized.charAt(pos++); in handleNextCE32()
194 assert(pos < normalized.length()); in handleGetTrailSurrogate()
196 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate()
225 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward()
384 pos = normalized.length(); in previousSegment()
401 if(normalized == null) { in normalize()
[all …]
DFCDUTF16CollationIterator.java364 if(normalized == null) {
365 normalized = new StringBuilder();
368 nfcImpl.decompose(rawSeq, from, to, normalized, to - from);
373 seq = normalized;
375 limit = start + normalized.length();
410 private StringBuilder normalized;
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DFCDIterCollationIterator.java85 pos != normalized.length()) { in nextCodePoint()
86 c = normalized.codePointAt(pos); in nextCodePoint()
139 c = normalized.codePointBefore(pos); in previousCodePoint()
175 pos != normalized.length()) { in handleNextCE32()
176 c = normalized.charAt(pos++); in handleNextCE32()
196 assert(pos < normalized.length()); in handleGetTrailSurrogate()
198 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate()
227 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward()
386 pos = normalized.length(); in previousSegment()
403 if(normalized == null) { in normalize()
[all …]
DFCDUTF16CollationIterator.java366 if(normalized == null) {
367 normalized = new StringBuilder();
370 nfcImpl.decompose(rawSeq, from, to, normalized, to - from);
375 seq = normalized;
377 limit = start + normalized.length();
412 private StringBuilder normalized;
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/
DVertexAttribute.java34 public final boolean normalized; field in VertexAttribute
67 …private VertexAttribute (int usage, int numComponents, int type, boolean normalized, String alias)… in VertexAttribute() argument
68 this(usage, numComponents, type, normalized, alias, 0); in VertexAttribute()
71 …private VertexAttribute (int usage, int numComponents, int type, boolean normalized, String alias,… in VertexAttribute() argument
75 this.normalized = normalized; in VertexAttribute()
/external/deqp/framework/delibs/debase/
DdeInt32.c152 deUint32 normalized = (deUint32)a << shift; /* Highest bit is always 1. */ in deRcp32() local
153 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32()
165 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
169 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
/external/icu/icu4c/source/i18n/
Dnortrans.cpp136 UnicodeString normalized; in handleTransliterate() local
154 fNorm2.normalize(segment, normalized, errorCode); in handleTransliterate()
158 if(segment != normalized) { in handleTransliterate()
160 text.handleReplaceBetween(prev, start, normalized); in handleTransliterate()
163 int32_t delta = normalized.length() - (start - prev); in handleTransliterate()
Duitercollationiterator.cpp131 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in handleNextCE32()
132 c = normalized[pos++]; in handleNextCE32()
152 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
154 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
192 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in nextCodePoint()
193 c = normalized.char32At(pos); in nextCodePoint()
246 c = normalized.char32At(pos - 1); in previousCodePoint()
277 (state >= IN_NORM_ITER_AT_LIMIT && pos == normalized.length())); in switchToForward()
422 pos = normalized.length(); in previousSegment()
442 nfcImpl.decompose(s, normalized, errorCode); in normalize()
Dutf8collationiterator.cpp211 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in handleNextCE32()
212 c = normalized[pos++]; in handleNextCE32()
248 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
250 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
292 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in nextCodePoint()
293 c = normalized.char32At(pos); in nextCodePoint()
331 c = normalized.char32At(pos - 1); in previousCodePoint()
362 (state == IN_NORMALIZED && pos == normalized.length())); in switchToForward()
503 pos = normalized.length(); in previousSegment()
523 nfcImpl.decompose(s, normalized, errorCode); in normalize()
/external/eigen/test/eigen2/
Deigen2_geometry_with_eigen2_prefix.cpp53 m << v0.normalized(), in geometry()
54 (v0.cross(v1)).normalized(), in geometry()
55 (v0.cross(v1).cross(v0)).normalized(); in geometry()
72 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
75 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
76 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
77 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
79 q1 = AngleAxisx(a, v0.normalized()); in geometry()
80 q2 = AngleAxisx(a, v1.normalized()); in geometry()
117 VERIFY_IS_APPROX(v2.normalized(),(q2.setFromTwoVectors(v1,v2)*v1).normalized()); in geometry()
[all …]
Deigen2_geometry.cpp51 m << v0.normalized(), in geometry()
52 (v0.cross(v1)).normalized(), in geometry()
53 (v0.cross(v1).cross(v0)).normalized(); in geometry()
70 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
73 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
74 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
75 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
77 q1 = AngleAxisx(a, v0.normalized()); in geometry()
78 q2 = AngleAxisx(a, v1.normalized()); in geometry()
115 VERIFY_IS_APPROX(v2.normalized(),(q2.setFromTwoVectors(v1,v2)*v1).normalized()); in geometry()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizationTransliterator.java96 StringBuilder normalized = new StringBuilder(); in handleTransliterate() local
114 norm2.normalize(segment, normalized); in handleTransliterate()
115 if(!Normalizer2Impl.UTF16Plus.equal(segment, normalized)) { in handleTransliterate()
117 text.replace(prev, start, normalized.toString()); in handleTransliterate()
120 int delta = normalized.length() - (start - prev); in handleTransliterate()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DNormalizationTransliterator.java95 StringBuilder normalized = new StringBuilder(); in handleTransliterate() local
113 norm2.normalize(segment, normalized); in handleTransliterate()
114 if(!Normalizer2Impl.UTF16Plus.equal(segment, normalized)) { in handleTransliterate()
116 text.replace(prev, start, normalized.toString()); in handleTransliterate()
119 int delta = normalized.length() - (start - prev); in handleTransliterate()
/external/eigen/unsupported/test/
Dalignedvector3.cpp45 VERIFY_IS_APPROX(f2.normalized(),r2.normalized()); in alignedvector3()
47 VERIFY_IS_APPROX((f2+f1).normalized(),(r2+r1).normalized()); in alignedvector3()
/external/opencv3/3rdparty/openexr/Imath/
DImathVec.cpp167 Vec2<short>::normalized () const in normalized() function in Imath::Vec2
236 Vec2<int>::normalized () const in normalized() function in Imath::Vec2
305 Vec3<short>::normalized () const in normalized() function in Imath::Vec3
374 Vec3<int>::normalized () const in normalized() function in Imath::Vec3
443 Vec4<short>::normalized () const in normalized() function in Imath::Vec4
512 Vec4<int>::normalized () const in normalized() function in Imath::Vec4
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DCorrelatedRandomVectorGenerator.java73 private final double[] normalized; field in CorrelatedRandomVectorGenerator
111 normalized = new double[rank]; in CorrelatedRandomVectorGenerator()
139 normalized = new double[rank]; in CorrelatedRandomVectorGenerator()
288 normalized[i] = generator.nextNormalizedDouble();
296 correlated[i] += root.getEntry(i, j) * normalized[j];
/external/mesa3d/src/mesa/vbo/
Dvbo_attrib_tmp.h159 #define ATTR_UI(val, type, normalized, attr, arg) do { \ argument
161 if (normalized) { \
167 if (normalized) { \
176 #define ATTR_UI_INDEX(val, type, normalized, index, arg) do { \ argument
178 ATTR_UI(val, (type), normalized, 0, (arg)); \
180 ATTR_UI(val, (type), normalized, VBO_ATTRIB_GENERIC0 + (index), (arg)); \
1022 TAG(VertexAttribP1ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1026 ATTR_UI_INDEX(1, type, normalized, index, value); in TAG()
1030 TAG(VertexAttribP2ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1034 ATTR_UI_INDEX(2, type, normalized, index, value); in TAG()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c130 desc->channel[chan].normalized != type.norm) { in format_matches_type()
159 boolean normalized; in lp_build_unpack_arith_rgba_aos() local
190 normalized = FALSE; in lp_build_unpack_arith_rgba_aos()
215 if (desc->channel[i].normalized) { in lp_build_unpack_arith_rgba_aos()
217 normalized = TRUE; in lp_build_unpack_arith_rgba_aos()
245 if (normalized) in lp_build_unpack_arith_rgba_aos()
274 boolean normalized; in lp_build_pack_rgba_aos() local
300 normalized = FALSE; in lp_build_pack_rgba_aos()
317 if (desc->channel[i].normalized) { in lp_build_pack_rgba_aos()
319 normalized = TRUE; in lp_build_pack_rgba_aos()
[all …]
/external/jsoncpp/src/lib_json/
Djson_writer.cpp450 std::string normalized; in normalizeEOL() local
451 normalized.reserve(text.length()); in normalizeEOL()
461 normalized += '\n'; in normalizeEOL()
463 normalized += c; in normalizeEOL()
465 return normalized; in normalizeEOL()
666 std::string normalized; in normalizeEOL() local
667 normalized.reserve(text.length()); in normalizeEOL()
677 normalized += '\n'; in normalizeEOL()
679 normalized += c; in normalizeEOL()
681 return normalized; in normalizeEOL()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DVertexArray.java115 …Attribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vert… in bind()
119 …Attribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vert… in bind()
132 …Attribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vert… in bind()
136 …Attribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vert… in bind()

12345678910>>...13