Home
last modified time | relevance | path

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

123456789

/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.cc189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose()
205 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose()
206 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose()
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local
263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose()
267 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose()
270 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose()
275 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose()
276 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/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/deqp/framework/delibs/debase/
DdeInt32.c132 deUint32 normalized = (deUint32)a << shift; /* Highest bit is always 1. */ in deRcp32() local
133 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32()
145 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
149 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()
Dutf16collationiterator.cpp157 normalized(other.normalized), in FCDUTF16CollationIterator()
164 start = normalized.getBuffer(); in FCDUTF16CollationIterator()
166 limit = start + normalized.length(); in FCDUTF16CollationIterator()
479 nfcImpl.decompose(from, to, normalized, (int32_t)(to - from), errorCode); in normalize()
485 start = normalized.getBuffer(); in normalize()
486 limit = start + normalized.length(); 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/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/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/skia/src/gpu/gl/
DGrGLVertexArray.cpp17 GrGLboolean normalized, in set() argument
30 array->fNormalized != normalized || in set()
38 normalized, in set()
44 array->fNormalized = normalized; in set()
/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.cpp531 std::string normalized; in normalizeEOL() local
532 normalized.reserve( text.length() ); in normalizeEOL()
543 normalized += '\n'; in normalizeEOL()
546 normalized += c; in normalizeEOL()
548 return normalized; in normalizeEOL()
812 std::string normalized; in normalizeEOL() local
813 normalized.reserve( text.length() ); in normalizeEOL()
824 normalized += '\n'; in normalizeEOL()
827 normalized += c; in normalizeEOL()
829 return normalized; in normalizeEOL()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DVertexBuffer.java314 protected boolean normalized = false; field in VertexBuffer
460 public void setNormalized(boolean normalized){ in setNormalized() argument
461 this.normalized = normalized; in setNormalized()
469 return normalized; in isNormalized()
920 vb.normalized = normalized; in clone()
963 oc.write(normalized, "normalized", false); in write()
997 normalized = ic.readBoolean("normalized", false); in read()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_array.c212 GLboolean normalized, GLboolean integer) in st_pipe_vertex_format() argument
229 if (normalized) in st_pipe_vertex_format()
234 if (normalized) in st_pipe_vertex_format()
241 if (normalized) in st_pipe_vertex_format()
246 if (normalized) in st_pipe_vertex_format()
257 assert(normalized); in st_pipe_vertex_format()
272 else if (normalized) { in st_pipe_vertex_format()
/external/deqp/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp66 GLboolean normalized; member
92 , normalized (GL_FALSE) in Attribute()
209 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState()
452 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
503 if (state.attributes[0].normalized || state.attributes[0].type == GL_FLOAT) in createProgram()
561 …x].size, state.attributes[attribNdx].type, state.attributes[attribNdx].normalized, state.attribute… in setState()
727 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState()
767 m_spec.state.attributes[attribNdx].normalized = m_random.getBool(); in init()
785 m_spec.vao.attributes[attribNdx].normalized = m_random.getBool(); in init()
1028 else if (state.attributes[attribNdx].type != GL_FLOAT && !state.attributes[attribNdx].normalized) in createProgram()
[all …]
/external/eigen/demos/opengl/
Dcamera.cpp109 camAxes.col(2) = (-newDirection).normalized(); in setDirection()
110 camAxes.col(0) = up.cross( camAxes.col(2) ).normalized(); in setDirection()
111 camAxes.col(1) = camAxes.col(2).cross( camAxes.col(0) ).normalized(); in setDirection()
123 setDirection(newDirection.normalized()); in setTarget()
/external/mesa3d/src/gallium/docs/source/
Dresources.rst72 1D surface accessed with normalized coordinates.
81 - Must use normalized coordinates
102 D3D11: not supported (only PIPE_TEXTURE_2D with normalized coordinates is supported)
106 2D surface accessed with normalized coordinates.
114 - Must use normalized coordinates
135 - Must use normalized coordinates
161 - Must use normalized coordinates

123456789