Home
last modified time | relevance | path

Searched refs:mat (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/third_party/rust/crates/regex/tests/
Dfowler.rs5 mat!(match_basic_3, r"abracadabra$", r"abracadabracadabra", Some((7, 18)));
6 mat!(match_basic_4, r"a...b", r"abababbb", Some((2, 7)));
7 mat!(match_basic_5, r"XXXXXX", r"..XXXXXX", Some((2, 8)));
8 mat!(match_basic_6, r"\)", r"()", Some((1, 2)));
9 mat!(match_basic_7, r"a]", r"a]a", Some((0, 2)));
10 mat!(match_basic_9, r"\}", r"}", Some((0, 1)));
11 mat!(match_basic_10, r"\]", r"]", Some((0, 1)));
12 mat!(match_basic_12, r"]", r"]", Some((0, 1)));
13 mat!(match_basic_15, r"^a", r"ax", Some((0, 1)));
14 mat!(match_basic_16, r"\^a", r"a^a", Some((1, 3)));
[all …]
Dunicode.rs1 mat!(uni_literal, r"☃", "☃", Some((0, 3)));
2 mat!(uni_literal_plus, r"☃+", "☃", Some((0, 3)));
3 mat!(uni_literal_casei_plus, r"(?i)☃+", "☃", Some((0, 3)));
4 mat!(uni_class_plus, r"[☃Ⅰ]+", "☃", Some((0, 3)));
5 mat!(uni_one, r"\pN", "Ⅰ", Some((0, 3)));
6 mat!(uni_mixed, r"\pN+", "Ⅰ1Ⅱ2", Some((0, 8)));
7 mat!(uni_not, r"\PN+", "abⅠ", Some((0, 2)));
8 mat!(uni_not_class, r"[\PN]+", "abⅠ", Some((0, 2)));
9 mat!(uni_not_class_neg, r"[^\PN]+", "abⅠ", Some((2, 5)));
10 mat!(uni_case, r"(?i)Δ", "δ", Some((0, 2)));
[all …]
Dcrazy.rs1 mat!(ascii_literal, r"a", "a", Some((0, 1)));
4 mat!(
10 mat!(
16 mat!(match_float1, r"[-+]?[0-9]*\.?[0-9]+", "0.1", Some((0, 3)));
17 mat!(match_float2, r"[-+]?[0-9]*\.?[0-9]+", "0.1.2", Some((0, 3)));
18 mat!(match_float3, r"[-+]?[0-9]*\.?[0-9]+", "a1.2", Some((1, 4)));
19 mat!(match_float4, r"^[-+]?[0-9]*\.?[0-9]+$", "1.a", None);
20 mat!(
26 mat!(
32 mat!(
[all …]
Dbytes.rs12 mat!(word_boundary, r"(?-u) \b", " δ", None);
14 mat!(word_boundary_unicode, r" \b", " δ", Some((0, 1)));
15 mat!(word_not_boundary, r"(?-u) \B", " δ", Some((0, 1)));
17 mat!(word_not_boundary_unicode, r" \B", " δ", None);
19 mat!(perl_w_ascii, r"(?-u)\w+", "aδ", Some((0, 1)));
21 mat!(perl_w_unicode, r"\w+", "aδ", Some((0, 3)));
22 mat!(perl_d_ascii, r"(?-u)\d+", "1२३9", Some((0, 1)));
24 mat!(perl_d_unicode, r"\d+", "1२३9", Some((0, 8)));
25 mat!(perl_s_ascii, r"(?-u)\s+", " \u{1680}", Some((0, 1)));
27 mat!(perl_s_unicode, r"\s+", " \u{1680}", Some((0, 4)));
[all …]
Dregression.rs30 mat!(regression_unsorted_binary_search_1, r"(?i-u)[a_]+", "A_", Some((0, 2)));
31 mat!(regression_unsorted_binary_search_2, r"(?i-u)[A_]+", "a_", Some((0, 2)));
35 mat!(regression_negated_char_class_1, r"(?i)[^x]", "x", None);
37 mat!(regression_negated_char_class_2, r"(?i)[^x]", "X", None);
40 mat!(regression_ascii_word_underscore, r"[[:word:]]", "_", Some((0, 1)));
51 mat!(regression_alt_in_alt1, r"ab?|$", "az", Some((0, 1)));
52 mat!(regression_alt_in_alt2, r"^(.*?)(\n|\r\n?|$)", "ab\rcd", Some((0, 3)));
55 mat!(regression_leftmost_first_prefix, r"z*azb", "azb", Some((0, 3)));
59 mat!(uni_case_lower_nocase_flag, r"(?i)\p{Ll}+", "ΛΘΓΔα", Some((0, 10)));
62 mat!(many_alternates, r"1|2|3|4|5|6|7|8|9|10|int", "int", Some((0, 3)));
[all …]
Dflags.rs1 mat!(match_flag_case, "(?-u)(?i)abc", "ABC", Some((0, 3)));
2 mat!(match_flag_weird_case, "(?-u)(?i)a(?-i)bc", "Abc", Some((0, 3)));
3 mat!(match_flag_weird_case_not, "(?-u)(?i)a(?-i)bc", "ABC", None);
4 mat!(match_flag_case_dotnl, "(?-u)(?is)a(?u:.)", "A\n", Some((0, 2)));
5 mat!(
11 mat!(
17 mat!(
23 mat!(
29 mat!(match_flag_ungreedy, "(?U)a+", "aa", Some((0, 1)));
30 mat!(match_flag_ungreedy_greedy, "(?U)a+?", "aa", Some((0, 2)));
[all …]
Dsuffix_reverse.rs1 mat!(t01, r".*abcd", r"abcd", Some((0, 4)));
2 mat!(t02, r".*(?:abcd)+", r"abcd", Some((0, 4)));
3 mat!(t03, r".*(?:abcd)+", r"abcdabcd", Some((0, 8)));
4 mat!(t04, r".*(?:abcd)+", r"abcdxabcd", Some((0, 9)));
5 mat!(t05, r".*x(?:abcd)+", r"abcdxabcd", Some((0, 9)));
6 mat!(t06, r"[^abcd]*x(?:abcd)+", r"abcdxabcd", Some((4, 9)));
/third_party/skia/third_party/externals/angle2/util/
DMatrix.cpp136 Matrix4 Matrix4::invert(const Matrix4 &mat) in invert() argument
139 mat.data[5] * mat.data[10] * mat.data[15] - mat.data[5] * mat.data[11] * mat.data[14] - in invert()
140 mat.data[9] * mat.data[6] * mat.data[15] + mat.data[9] * mat.data[7] * mat.data[14] + in invert()
141 mat.data[13] * mat.data[6] * mat.data[11] - mat.data[13] * mat.data[7] * mat.data[10], in invert()
142 -mat.data[4] * mat.data[10] * mat.data[15] + mat.data[4] * mat.data[11] * mat.data[14] + in invert()
143 mat.data[8] * mat.data[6] * mat.data[15] - mat.data[8] * mat.data[7] * mat.data[14] - in invert()
144 mat.data[12] * mat.data[6] * mat.data[11] + mat.data[12] * mat.data[7] * mat.data[10], in invert()
145 mat.data[4] * mat.data[9] * mat.data[15] - mat.data[4] * mat.data[11] * mat.data[13] - in invert()
146 mat.data[8] * mat.data[5] * mat.data[15] + mat.data[8] * mat.data[7] * mat.data[13] + in invert()
147 mat.data[12] * mat.data[5] * mat.data[11] - mat.data[12] * mat.data[7] * mat.data[9], in invert()
[all …]
/third_party/skia/tests/
DMatrixTest.cpp261 SkMatrix mat; in test_matrix_min_max_scale() local
262 mat.reset(); in test_matrix_min_max_scale()
265 mat.postConcat(mats[x]); in test_matrix_min_max_scale()
268 SkScalar minScale = mat.getMinScale(); in test_matrix_min_max_scale()
269 SkScalar maxScale = mat.getMaxScale(); in test_matrix_min_max_scale()
271 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); in test_matrix_min_max_scale()
273 success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
274 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); in test_matrix_min_max_scale()
277 if (mat.hasPerspective()) { in test_matrix_min_max_scale()
296 mat.mapVectors(vectors, SK_ARRAY_COUNT(vectors)); in test_matrix_min_max_scale()
[all …]
DMatrixClipCollapseTest.cpp141 typedef void (*PFEmitMC)(SkCanvas* canvas, MatType mat, ClipType clip,
144 typedef void (*PFEmitBody)(SkCanvas* canvas, PFEmitMC emitMC, MatType mat,
147 typedef void (*PFEmitStruct)(SkCanvas* canvas, PFEmitMC emitMC, MatType mat,
194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument
224 static void emit_mat(SkCanvas* canvas, MatType mat) { in emit_mat() argument
225 switch (mat) { in emit_mat()
257 static void add_mat(MatType mat, SkTDArray<DrawType>* expected) { in add_mat() argument
263 switch (mat) { in add_mat()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat() argument
329 emit_mat(canvas, mat); in emit_clip_and_mat()
[all …]
DDrawBitmapRectTest.cpp27 static void rand_matrix(SkMatrix* mat, SkRandom& rand, unsigned mask) { in rand_matrix() argument
28 mat->setIdentity(); in rand_matrix()
30 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
33 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
36 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
39 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
40 mat->setPerspY(rand.nextSScalar1()); in rand_matrix()
50 SkMatrix mat; in test_treatAsSprite() local
62 rand_matrix(&mat, rand, SkMatrix::kTranslate_Mask); in test_treatAsSprite()
65 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, sampling, noaaPaint)); in test_treatAsSprite()
[all …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dmatrix_interpolation.inl9 tmat4x4<T, P> const & mat, argument
17 …if((abs(mat[1][0] - mat[0][1]) < epsilon) && (abs(mat[2][0] - mat[0][2]) < epsilon) && (abs(mat[2]…
19mat[1][0] + mat[0][1]) < epsilon2) && (abs(mat[2][0] + mat[0][2]) < epsilon2) && (abs(mat[2][1] +
28 T xx = (mat[0][0] + (T)1.0) / (T)2.0;
29 T yy = (mat[1][1] + (T)1.0) / (T)2.0;
30 T zz = (mat[2][2] + (T)1.0) / (T)2.0;
31 T xy = (mat[1][0] + mat[0][1]) / (T)4.0;
32 T xz = (mat[2][0] + mat[0][2]) / (T)4.0;
33 T yz = (mat[2][1] + mat[1][2]) / (T)4.0;
72 …rt((mat[2][1] - mat[1][2]) * (mat[2][1] - mat[1][2]) + (mat[2][0] - mat[0][2]) * (mat[2][0] - mat[…
[all …]
/third_party/vk-gl-cts/framework/common/
DtcuMatrixUtil.hpp37 Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat);
61 inline Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat) in transpose() argument
66 res(col, row) = mat(row, col); in transpose()
72 Matrix<float, 2, 2> mat; in rotationMatrix() local
76 mat(0, 0) = c; in rotationMatrix()
77 mat(0, 1) = -s; in rotationMatrix()
78 mat(1, 0) = s; in rotationMatrix()
79 mat(1, 1) = c; in rotationMatrix()
81 return mat; in rotationMatrix()
86 Matrix<float, 2, 2> mat; in shearMatrix() local
[all …]
DtcuMatrix.hpp103 static T doDeterminant (const Matrix<T, Size, Size>& mat);
104 static Matrix<T, Size, Size> doInverse (const Matrix<T, Size, Size>& mat);
110 static T doDeterminant (const Matrix<T, 2, 2>& mat);
111 static Matrix<T, 2, 2> doInverse (const Matrix<T, 2, 2>& mat);
117 static T doDeterminant (const Matrix<T, 3, 3>& mat);
118 static Matrix<T, 3, 3> doInverse (const Matrix<T, 3, 3>& mat);
124 static T doDeterminant (const Matrix<T, 4, 4>& mat);
125 static Matrix<T, 4, 4> doInverse (const Matrix<T, 4, 4>& mat);
132 T determinant (const Matrix<T, Size, Size>& mat) in determinant() argument
134 return SquareMatrixOps<T, Size>::doDeterminant(mat); in determinant()
[all …]
/third_party/mesa3d/src/mesa/math/
Dm_matrix.c117 #define TEST_MAT_FLAGS(mat, a) \ argument
118 ((MAT_FLAGS_GEOMETRY & (~(a)) & ((mat)->flags) ) == 0)
220 static void matrix_multf( GLmatrix *mat, const GLfloat *m, GLuint flags ) in matrix_multf() argument
222 mat->flags |= (flags | MAT_DIRTY_TYPE | MAT_DIRTY_INVERSE); in matrix_multf()
224 if (TEST_MAT_FLAGS(mat, MAT_FLAGS_3D)) in matrix_multf()
225 matmul34( mat->m, mat->m, m ); in matrix_multf()
227 matmul4( mat->m, mat->m, m ); in matrix_multf()
351 static GLboolean invert_matrix_general( GLmatrix *mat ) in invert_matrix_general() argument
353 return util_invert_mat4x4(mat->inv, mat->m); in invert_matrix_general()
371 static GLboolean invert_matrix_3d_general( GLmatrix *mat ) in invert_matrix_3d_general() argument
[all …]
Dm_debug_norm.c123 static void ref_norm_transform_rescale( const GLmatrix *mat, in ref_norm_transform_rescale() argument
131 const GLfloat *m = mat->inv; in ref_norm_transform_rescale()
146 static void ref_norm_transform_normalize( const GLmatrix *mat, in ref_norm_transform_normalize() argument
154 const GLfloat *m = mat->inv; in ref_norm_transform_normalize()
199 GLmatrix mat[1]; in test_norm_function() local
211 mat->m = align_malloc( 16 * sizeof(GLfloat), 16 ); in test_norm_function()
212 mat->inv = m = mat->m; in test_norm_function()
278 ref_norm_transform_rescale( mat, scale, source, NULL, ref ); in test_norm_function()
280 ref_norm_transform_normalize( mat, scale, source, NULL, ref ); in test_norm_function()
281 ref_norm_transform_normalize( mat, scale, source, length, ref2 ); in test_norm_function()
[all …]
/third_party/rust/crates/aho-corasick/src/
Dahocorasick.rs440 self.replace_all_with(haystack, &mut dst, |mat, _, dst| { in replace_all()
441 dst.push_str(replace_with[mat.pattern()].as_ref()); in replace_all()
491 self.replace_all_with_bytes(haystack, &mut dst, |mat, _, dst| { in replace_all_bytes()
492 dst.extend(replace_with[mat.pattern()].as_ref()); in replace_all_bytes()
554 for mat in self.find_iter(haystack) { in replace_all_with()
555 dst.push_str(&haystack[last_match..mat.start()]); in replace_all_with()
556 last_match = mat.end(); in replace_all_with()
557 if !replace_with(&mat, &haystack[mat.start()..mat.end()], dst) { in replace_all_with()
620 for mat in self.find_iter(haystack) { in replace_all_with_bytes()
621 dst.extend(&haystack[last_match..mat.start()]); in replace_all_with_bytes()
[all …]
/third_party/cups-filters/cupsfilters/
Dimage-colorspace.c499 float mat[3][3]; /* Color adjustment matrix */ in cupsImageRGBAdjust() local
511 ident(mat); in cupsImageRGBAdjust()
512 saturate(mat, saturation * 0.01); in cupsImageRGBAdjust()
513 huerotate(mat, (float)hue); in cupsImageRGBAdjust()
532 lut[i][j][k] = mat[i][j] * k + 0.5; in cupsImageRGBAdjust()
1142 huerotate(float mat[3][3], /* I - Matrix to append to */ in huerotate()
1206 mult(hmat, mat, mat); in huerotate()
1215 ident(float mat[3][3]) /* I - Matrix to identify */ in ident()
1217 mat[0][0] = 1.0; in ident()
1218 mat[0][1] = 0.0; in ident()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp647 float determinant (const tcu::Matrix<float, Size, Size>& mat);
650 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() argument
652 return mat(0,0) * mat(1,1) - mat(1,0) * mat(0,1); in determinant()
656 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() argument
658 return + mat(0,0) * mat(1,1) * mat(2,2) in determinant()
659 + mat(0,1) * mat(1,2) * mat(2,0) in determinant()
660 + mat(0,2) * mat(1,0) * mat(2,1) in determinant()
661 - mat(0,0) * mat(1,2) * mat(2,1) in determinant()
662 - mat(0,1) * mat(1,0) * mat(2,2) in determinant()
663 - mat(0,2) * mat(1,1) * mat(2,0); in determinant()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderMatrixTests.cpp653 float determinant (const tcu::Matrix<float, Size, Size>& mat);
656 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() argument
658 return mat(0,0) * mat(1,1) - mat(1,0) * mat(0,1); in determinant()
662 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() argument
664 return + mat(0,0) * mat(1,1) * mat(2,2) in determinant()
665 + mat(0,1) * mat(1,2) * mat(2,0) in determinant()
666 + mat(0,2) * mat(1,0) * mat(2,1) in determinant()
667 - mat(0,0) * mat(1,2) * mat(2,1) in determinant()
668 - mat(0,1) * mat(1,0) * mat(2,2) in determinant()
669 - mat(0,2) * mat(1,1) * mat(2,0); in determinant()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp647 float determinant (const tcu::Matrix<float, Size, Size>& mat);
650 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() argument
652 return mat(0,0) * mat(1,1) - mat(1,0) * mat(0,1); in determinant()
656 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() argument
658 return + mat(0,0) * mat(1,1) * mat(2,2) in determinant()
659 + mat(0,1) * mat(1,2) * mat(2,0) in determinant()
660 + mat(0,2) * mat(1,0) * mat(2,1) in determinant()
661 - mat(0,0) * mat(1,2) * mat(2,1) in determinant()
662 - mat(0,1) * mat(1,0) * mat(2,2) in determinant()
663 - mat(0,2) * mat(1,1) * mat(2,0); in determinant()
[all …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dtype_ptr.inl82 tmat2x2<T, P> const & mat argument
85 return &(mat[0].x);
93 tmat2x2<T, P> & mat argument
96 return &(mat[0].x);
104 tmat3x3<T, P> const & mat argument
107 return &(mat[0].x);
115 tmat3x3<T, P> & mat argument
118 return &(mat[0].x);
126 tmat4x4<T, P> const & mat argument
129 return &(mat[0].x);
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderGLSLstd450.cpp784 auto mat = Operand(this, state, insn.word(5)); in EmitExtGLSLstd450() local
786 switch(mat.componentCount) in EmitExtGLSLstd450()
790 mat.Float(0), mat.Float(1), in EmitExtGLSLstd450()
791 mat.Float(2), mat.Float(3))); in EmitExtGLSLstd450()
795 mat.Float(0), mat.Float(1), mat.Float(2), in EmitExtGLSLstd450()
796 mat.Float(3), mat.Float(4), mat.Float(5), in EmitExtGLSLstd450()
797 mat.Float(6), mat.Float(7), mat.Float(8))); in EmitExtGLSLstd450()
801 mat.Float(0), mat.Float(1), mat.Float(2), mat.Float(3), in EmitExtGLSLstd450()
802 mat.Float(4), mat.Float(5), mat.Float(6), mat.Float(7), in EmitExtGLSLstd450()
803 mat.Float(8), mat.Float(9), mat.Float(10), mat.Float(11), in EmitExtGLSLstd450()
[all …]
/third_party/mesa3d/src/mesa/main/
Dlight.c670 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; in _mesa_update_material() local
686 mat[MAT_ATTRIB_FRONT_AMBIENT]); in _mesa_update_material()
697 mat[MAT_ATTRIB_BACK_AMBIENT]); in _mesa_update_material()
703 COPY_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_EMISSION] ); in _mesa_update_material()
704 ACC_SCALE_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_AMBIENT], in _mesa_update_material()
709 COPY_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_EMISSION] ); in _mesa_update_material()
710 ACC_SCALE_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_AMBIENT], in _mesa_update_material()
722 mat[MAT_ATTRIB_FRONT_DIFFUSE] ); in _mesa_update_material()
733 mat[MAT_ATTRIB_BACK_DIFFUSE] ); in _mesa_update_material()
745 mat[MAT_ATTRIB_FRONT_SPECULAR]); in _mesa_update_material()
[all …]
/third_party/skia/gm/
Dfilterindiabox.cpp22 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { in computeSize() argument
25 mat.mapRect(&bounds); in computeSize()
29 static void draw_cell(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx, in draw_cell() argument
34 canvas->concat(mat); in draw_cell()
38 static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) { in draw_row() argument
39 draw_cell(canvas, bm, mat, 0 * dx, SkSamplingOptions()); in draw_row()
40 draw_cell(canvas, bm, mat, 1 * dx, SkSamplingOptions(SkFilterMode::kLinear)); in draw_row()
41 draw_cell(canvas, bm, mat, 2 * dx, SkSamplingOptions(SkFilterMode::kLinear, in draw_row()
43 draw_cell(canvas, bm, mat, 3 * dx, SkSamplingOptions(SkCubicResampler::Mitchell())); in draw_row()

12345678910>>...14