Home
last modified time | relevance | path

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

12345678910>>...21

/external/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 …]
/external/angle/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 …]
/external/llvm-project/polly/lib/External/isl/
Disl_mat.c25 isl_ctx *isl_mat_get_ctx(__isl_keep isl_mat *mat) in isl_mat_get_ctx() argument
27 return mat ? mat->ctx : NULL; in isl_mat_get_ctx()
32 uint32_t isl_mat_get_hash(__isl_keep isl_mat *mat) in isl_mat_get_hash() argument
37 if (!mat) in isl_mat_get_hash()
41 isl_hash_byte(hash, mat->n_row & 0xFF); in isl_mat_get_hash()
42 isl_hash_byte(hash, mat->n_col & 0xFF); in isl_mat_get_hash()
43 for (i = 0; i < mat->n_row; ++i) { in isl_mat_get_hash()
46 row_hash = isl_seq_get_hash(mat->row[i], mat->n_col); in isl_mat_get_hash()
57 struct isl_mat *mat; in isl_mat_alloc() local
59 mat = isl_alloc_type(ctx, struct isl_mat); in isl_mat_alloc()
[all …]
Disl_mat_private.h26 uint32_t isl_mat_get_hash(__isl_keep isl_mat *mat);
29 __isl_give isl_mat *isl_mat_dup(__isl_keep isl_mat *mat);
30 __isl_give isl_mat *isl_mat_cow(__isl_take isl_mat *mat);
31 __isl_give isl_mat *isl_mat_sub_alloc(__isl_keep isl_mat *mat,
40 unsigned first_col, __isl_take isl_mat *mat);
43 __isl_give isl_mat *isl_mat_reverse_gauss(__isl_take isl_mat *mat);
45 __isl_give isl_mat *isl_mat_scale(__isl_take isl_mat *mat, isl_int m);
46 __isl_give isl_mat *isl_mat_scale_down_row(__isl_take isl_mat *mat, int row,
49 __isl_give isl_vec *isl_mat_get_row(__isl_keep isl_mat *mat, unsigned row);
51 __isl_give isl_mat *isl_mat_lexnonneg_rows(__isl_take isl_mat *mat);
[all …]
/external/skqp/tests/
DMatrixTest.cpp254 SkMatrix mat; in test_matrix_min_max_scale() local
255 mat.reset(); in test_matrix_min_max_scale()
258 mat.postConcat(mats[x]); in test_matrix_min_max_scale()
261 SkScalar minScale = mat.getMinScale(); in test_matrix_min_max_scale()
262 SkScalar maxScale = mat.getMaxScale(); in test_matrix_min_max_scale()
264 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); in test_matrix_min_max_scale()
267 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
268 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); in test_matrix_min_max_scale()
271 if (mat.hasPerspective()) { in test_matrix_min_max_scale()
290 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 …]
DMatrix44Test.cpp119 SkMatrix44 mat; in test_translate() local
122 mat.setTranslate(0, 0, 0); in test_translate()
123 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_translate()
124 mat.setTranslate(1, 2, 3); in test_translate()
125 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
126 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in test_translate()
134 mat = a; in test_translate()
135 mat.preTranslate(10, 11, 12); in test_translate()
136 REPORTER_ASSERT(reporter, mat == c); in test_translate()
139 mat = a; in test_translate()
[all …]
DDrawBitmapRectTest.cpp25 static void rand_matrix(SkMatrix* mat, SkRandom& rand, unsigned mask) { in rand_matrix() argument
26 mat->setIdentity(); in rand_matrix()
28 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
31 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
34 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
37 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
38 mat->setPerspY(rand.nextSScalar1()); in rand_matrix()
48 SkMatrix mat; in test_treatAsSprite() local
58 rand_matrix(&mat, rand, SkMatrix::kTranslate_Mask); in test_treatAsSprite()
61 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, noaaPaint)); in test_treatAsSprite()
[all …]
/external/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()
274 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
275 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); in test_matrix_min_max_scale()
278 if (mat.hasPerspective()) { in test_matrix_min_max_scale()
297 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 …]
DMatrix44Test.cpp113 SkMatrix44 mat; in test_translate() local
116 mat.setTranslate(0, 0, 0); in test_translate()
117 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_translate()
118 mat.setTranslate(1, 2, 3); in test_translate()
119 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
120 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in test_translate()
128 mat = a; in test_translate()
129 mat.preTranslate(10, 11, 12); in test_translate()
130 REPORTER_ASSERT(reporter, mat == c); in test_translate()
133 mat = a; in test_translate()
[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 …]
/external/llvm-project/mlir/unittests/Analysis/Presburger/
DMatrixTest.cpp16 Matrix mat(5, 5); in TEST() local
19 mat(row, col) = 10 * row + col; in TEST()
22 EXPECT_EQ(mat(row, col), int(10 * row + col)); in TEST()
26 Matrix mat(5, 5); in TEST() local
29 mat(row, col) = col == 3 ? 1 : 0; in TEST()
30 mat.swapColumns(3, 1); in TEST()
33 EXPECT_EQ(mat(row, col), col == 1 ? 1 : 0); in TEST()
36 mat.swapColumns(3, 1); in TEST()
37 mat.swapColumns(2, 4); in TEST()
38 mat.swapColumns(1, 3); in TEST()
[all …]
/external/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 …]
/external/deqp/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 …]
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/regex/
DMatcherNativeTest.java272 Matcher mat = test.matcher(positiveTestString); in testGroupint() local
273 mat.matches(); in testGroupint()
278 mat.group(i + 2); in testGroupint()
280 mat.group(i + 100); in testGroupint()
282 mat.group(-1); in testGroupint()
284 mat.group(-100); in testGroupint()
297 Matcher mat = test.matcher(positiveTestString); in testGroupint() local
298 mat.matches(); in testGroupint()
300 assertEquals("i: " + i + " j: " + j, groupResults[i][j], mat in testGroupint()
314 Matcher mat = test.matcher(positiveTestString); in testGroup() local
[all …]
/external/llvm-project/polly/lib/External/isl/include/isl/
Dmat.h26 isl_ctx *isl_mat_get_ctx(__isl_keep isl_mat *mat);
30 __isl_give isl_mat *isl_mat_extend(__isl_take isl_mat *mat,
33 __isl_give isl_mat *isl_mat_copy(__isl_keep isl_mat *mat);
34 __isl_null isl_mat *isl_mat_free(__isl_take isl_mat *mat);
36 isl_size isl_mat_rows(__isl_keep isl_mat *mat);
37 isl_size isl_mat_cols(__isl_keep isl_mat *mat);
38 __isl_give isl_val *isl_mat_get_element_val(__isl_keep isl_mat *mat,
40 __isl_give isl_mat *isl_mat_set_element_si(__isl_take isl_mat *mat,
42 __isl_give isl_mat *isl_mat_set_element_val(__isl_take isl_mat *mat,
45 __isl_give isl_mat *isl_mat_swap_cols(__isl_take isl_mat *mat,
[all …]
/external/autotest/client/site_tests/graphics_SanAngeles/src/
Dmatrixop.c36 void Matrix4x4_LoadIdentity(Matrix4x4 mat) in Matrix4x4_LoadIdentity() argument
40 mat[i] = 0; in Matrix4x4_LoadIdentity()
42 mat[i*4 + i] = 1.f; in Matrix4x4_LoadIdentity()
46 void Matrix4x4_Scale(Matrix4x4 mat, float sx, float sy, float sz) in Matrix4x4_Scale() argument
51 mat[0*4 + i] *= sx; in Matrix4x4_Scale()
52 mat[1*4 + i] *= sy; in Matrix4x4_Scale()
53 mat[2*4 + i] *= sz; in Matrix4x4_Scale()
58 void Matrix4x4_Translate(Matrix4x4 mat, float tx, float ty, float tz) in Matrix4x4_Translate() argument
62 mat[3*4 + i] += mat[0*4 + i] * tx + in Matrix4x4_Translate()
63 mat[1*4 + i] * ty + in Matrix4x4_Translate()
[all …]
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DIMath.js460 var mat = new J3DIMatrix4();
464 mat.$matrix.m11 = 1;
465 mat.$matrix.m12 = 0;
466 mat.$matrix.m13 = 0;
467 mat.$matrix.m21 = 0;
468 mat.$matrix.m22 = 1 - 2 * sinA2;
469 mat.$matrix.m23 = 2 * sinA * cosA;
470 mat.$matrix.m31 = 0;
471 mat.$matrix.m32 = -2 * sinA * cosA;
472 mat.$matrix.m33 = 1 - 2 * sinA2;
[all …]
/external/eigen/doc/snippets/
DTopicAliasing_cwise.cpp1 MatrixXf mat(2,2); variable
2 mat << 1, 2, 4, 7;
3 cout << "Here is the matrix mat:\n" << mat << endl << endl;
5 mat = 2 * mat;
6 cout << "After 'mat = 2 * mat', mat = \n" << mat << endl << endl;
9 mat = mat - MatrixXf::Identity(2,2);
10 cout << "After the subtraction, it becomes\n" << mat << endl << endl;
13 ArrayXXf arr = mat;
18 mat << 1, 2, 4, 7;
19 mat = (2 * mat - MatrixXf::Identity(2,2)).array().square();
[all …]

12345678910>>...21