Home
last modified time | relevance | path

Searched refs:mat1 (Results 1 – 25 of 53) sorted by relevance

123

/external/eigen/unsupported/test/
Dcxx11_tensor_contraction.cpp22 Tensor<float, 2, DataLayout> mat1(2, 3); in test_evals() local
26 mat1.setRandom(); in test_evals()
33 typedef TensorEvaluator<decltype(mat1.contract(mat2, dims3)), DefaultDevice> Evaluator; in test_evals()
34 Evaluator eval(mat1.contract(mat2, dims3), DefaultDevice()); in test_evals()
40 VERIFY_IS_APPROX(mat4(0,0), mat1(0,0)*mat2(0,0) + mat1(1,0)*mat2(1,0)); in test_evals()
41 VERIFY_IS_APPROX(mat4(0,1), mat1(0,0)*mat2(0,1) + mat1(1,0)*mat2(1,1)); in test_evals()
42 VERIFY_IS_APPROX(mat4(0,2), mat1(0,0)*mat2(0,2) + mat1(1,0)*mat2(1,2)); in test_evals()
43 VERIFY_IS_APPROX(mat4(1,0), mat1(0,1)*mat2(0,0) + mat1(1,1)*mat2(1,0)); in test_evals()
44 VERIFY_IS_APPROX(mat4(1,1), mat1(0,1)*mat2(0,1) + mat1(1,1)*mat2(1,1)); in test_evals()
45 VERIFY_IS_APPROX(mat4(1,2), mat1(0,1)*mat2(0,2) + mat1(1,1)*mat2(1,2)); in test_evals()
[all …]
Dcxx11_tensor_comparisons.cpp19 Tensor<float, 3> mat1(2,3,7); in test_orderings() local
26 mat1.setRandom(); in test_orderings()
29 lt = mat1 < mat2; in test_orderings()
30 le = mat1 <= mat2; in test_orderings()
31 gt = mat1 > mat2; in test_orderings()
32 ge = mat1 >= mat2; in test_orderings()
37 VERIFY_IS_EQUAL(lt(i,j,k), mat1(i,j,k) < mat2(i,j,k)); in test_orderings()
38 VERIFY_IS_EQUAL(le(i,j,k), mat1(i,j,k) <= mat2(i,j,k)); in test_orderings()
39 VERIFY_IS_EQUAL(gt(i,j,k), mat1(i,j,k) > mat2(i,j,k)); in test_orderings()
40 VERIFY_IS_EQUAL(ge(i,j,k), mat1(i,j,k) >= mat2(i,j,k)); in test_orderings()
[all …]
Dcxx11_tensor_expr.cpp72 TensorMap<Tensor<float, 2>> mat1(data1, 2, 3); in test_2d() local
76 mat1(0,0) = 0.0; in test_2d()
77 mat1(0,1) = 1.0; in test_2d()
78 mat1(0,2) = 2.0; in test_2d()
79 mat1(1,0) = 3.0; in test_2d()
80 mat1(1,1) = 4.0; in test_2d()
81 mat1(1,2) = 5.0; in test_2d()
92 mat3 = mat1.abs(); in test_2d()
112 Tensor<float, 3> mat1(2,3,7); in test_3d() local
119 mat1(i,j,k) = val; in test_3d()
[all …]
Dcxx11_tensor_fixed_size.cpp133 TensorMap<TensorFixedSize<float, Sizes<2, 3> > > mat1(data1,2,3); in test_2d() local
137 VERIFY_IS_EQUAL((mat1.size()), 2*3); in test_2d()
138 VERIFY_IS_EQUAL(mat1.rank(), 2); in test_2d()
142 mat1(0,0) = 0.0; in test_2d()
143 mat1(0,1) = 1.0; in test_2d()
144 mat1(0,2) = 2.0; in test_2d()
145 mat1(1,0) = 3.0; in test_2d()
146 mat1(1,1) = 4.0; in test_2d()
147 mat1(1,2) = 5.0; in test_2d()
158 mat3 = mat1.abs(); in test_2d()
[all …]
Dcxx11_tensor_assign.cpp74 Tensor<int, 2> mat1(2,3); in test_2d() local
77 mat1(0,0) = 0; in test_2d()
78 mat1(0,1) = 1; in test_2d()
79 mat1(0,2) = 2; in test_2d()
80 mat1(1,0) = 3; in test_2d()
81 mat1(1,1) = 4; in test_2d()
82 mat1(1,2) = 5; in test_2d()
98 mat3 = mat1; in test_2d()
115 mat1.setZero(); in test_2d()
117 mat1 = mat3; in test_2d()
[all …]
Dcxx11_tensor_of_const_values.cpp20 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3); in test_assign() local
30 rslt1 = mat1; in test_assign()
34 Tensor<float, 2> rslt3 = mat1; in test_assign()
37 Tensor<float, 2> rslt5(mat1); in test_assign()
56 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3); in test_plus() local
66 sum1 = mat1 + mat2; in test_plus()
68 sum2 = mat2 + mat1; in test_plus()
82 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3); in test_plus_equal() local
90 mat2 += mat1; in test_plus_equal()
Dcxx11_tensor_simple.cpp115 Tensor<int, 2> mat1(2,3); in test_2d() local
118 mat1(0,0) = 0; in test_2d()
119 mat1(0,1) = 1; in test_2d()
120 mat1(0,2) = 2; in test_2d()
121 mat1(1,0) = 3; in test_2d()
122 mat1(1,1) = 4; in test_2d()
123 mat1(1,2) = 5; in test_2d()
132 VERIFY_IS_EQUAL((mat1.rank()), 2); in test_2d()
133 VERIFY_IS_EQUAL((mat1.size()), 6); in test_2d()
134 VERIFY_IS_EQUAL((mat1.dimensions()[0]), 2); in test_2d()
[all …]
Dcxx11_tensor_map.cpp71 Tensor<int, 2> mat1(2,3); in test_2d() local
74 mat1(0,0) = 0; in test_2d()
75 mat1(0,1) = 1; in test_2d()
76 mat1(0,2) = 2; in test_2d()
77 mat1(1,0) = 3; in test_2d()
78 mat1(1,1) = 4; in test_2d()
79 mat1(1,2) = 5; in test_2d()
88 TensorMap<Tensor<const int, 2> > mat3(mat1.data(), 2, 3); in test_2d()
118 Tensor<int, 3> mat1(2,3,7); in test_3d() local
125 mat1(i,j,k) = val; in test_3d()
[all …]
Dcxx11_tensor_lvalue.cpp20 Tensor<float, 3> mat1(2,3,7); in test_compound_assignment() local
24 mat1.setRandom(); in test_compound_assignment()
26 mat3 = mat1; in test_compound_assignment()
32 VERIFY_IS_APPROX(mat3(i,j,k), mat1(i,j,k) + mat2(i,j,k)); in test_compound_assignment()
/external/vixl/examples/aarch64/
Dneon-matrix-multiply.cc117 float mat1[kLength], mat2[kLength], output[kLength]; in main() local
127 mat1[0] = 1.0f; in main()
128 mat1[4] = 2.0f; in main()
129 mat1[8] = 3.0f; in main()
130 mat1[12] = 4.0f; in main()
131 mat1[1] = 52.03f; in main()
132 mat1[5] = 12.24f; in main()
133 mat1[9] = 53.56f; in main()
134 mat1[13] = 22.22f; in main()
135 mat1[2] = 4.43f; in main()
[all …]
/external/eigen/doc/
DQuickReference.dox322 mat3 = mat1 + mat2; mat3 += mat1;
323 mat3 = mat1 - mat2; mat3 -= mat1;\endcode
327 mat3 = mat1 * s1; mat3 *= s1; mat3 = s1 * mat1;
328 mat3 = mat1 / s1; mat3 /= s1;\endcode
332 col2 = mat1 * col1;
333 row2 = row1 * mat1; row1 *= mat1;
334 mat3 = mat1 * mat2; mat3 *= mat1; \endcode
338 mat1 = mat2.transpose(); mat1.transposeInPlace();
339 mat1 = mat2.adjoint(); mat1.adjointInPlace();
425 mat1.real()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dhlsl.matpack-1.frag.out12 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
13mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
18 0:24 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
19 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
20mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
27 … std140) uniform structure{layout( column_major) temp 4X4 matrix of float mat1, temp 4-component …
28mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
33 0:25 mat1: direct index for structure (layout( column_major) temp 4X4 matrix of float)
34 … std140) uniform structure{layout( column_major) temp 4X4 matrix of float mat1, temp 4-component …
35mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
[all …]
Dhlsl.matpack-pragma.frag.out17 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of flo…
18 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
19mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
28 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
29mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
38 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
39mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
47 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
48 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
49mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.matpack-1.frag.out12 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
13mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
18 0:24 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
19 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
20mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
27 … std140) uniform structure{layout( column_major) temp 4X4 matrix of float mat1, temp 4-component …
28mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
33 0:25 mat1: direct index for structure (layout( column_major) temp 4X4 matrix of float)
34 … std140) uniform structure{layout( column_major) temp 4X4 matrix of float mat1, temp 4-component …
35mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,…
[all …]
Dhlsl.matpack-pragma.frag.out17 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of flo…
18 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
19mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
28 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
29mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
38 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
39mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
47 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
48 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj…
49mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o…
[all …]
/external/eigen/test/
Devaluators.cpp244 MatrixXd mat1(6,6), mat2(6,6); in test_evaluators() local
245 VERIFY_IS_APPROX_EVALUATOR(mat1, MatrixXd::Identity(6,6)); in test_evaluators()
246 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); in test_evaluators()
247 copy_using_evaluator(mat2.transpose(), mat1); in test_evaluators()
248 VERIFY_IS_APPROX(mat2.transpose(), mat1); in test_evaluators()
256 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); in test_evaluators()
326 mat1.setRandom(); in test_evaluators()
329 copy_using_evaluator(matXcd.real(), mat1); in test_evaluators()
331 matXcd_ref.real() = mat1; in test_evaluators()
349 VERIFY_IS_APPROX_EVALUATOR(vec1, mat1.rowwise().sum()); in test_evaluators()
[all …]
Dproduct_large.cpp79 MatrixXf mat1(10,32); mat1.setRandom(); in test_product_large() local
81 MatrixXf r1 = mat1.row(2)*mat2.transpose(); in test_product_large()
82 VERIFY_IS_APPROX(r1, (mat1.row(2)*mat2.transpose()).eval()); in test_product_large()
84 MatrixXf r2 = mat1.row(2)*mat2; in test_product_large()
85 VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval()); in test_product_large()
/external/ruy/ruy/
Dprepacked_cache_test.cc59 PEMat mat1 = MakeDummyPEMat(Type::Create<std::uint8_t>(), 10, 20); in TEST() local
60 EXPECT_TRUE(prepacked_cache.Get(data1.data(), &mat1) == in TEST()
62 DummyPack(data1, &mat1); in TEST()
74 EXPECT_TRUE(prepacked_cache.Get(data1.data(), &mat1) == in TEST()
85 PEMat mat1 = MakeDummyPEMat(Type::Create<float>(), 10, 20); in TEST() local
86 EXPECT_TRUE(prepacked_cache.Get(data1.data(), &mat1) == in TEST()
88 DummyPack(data1, &mat1); in TEST()
100 EXPECT_TRUE(prepacked_cache.Get(data1.data(), &mat1) == in TEST()
111 PEMat mat1 = MakeDummyPEMat(Type::Create<std::uint8_t>(), 10, 20); in TEST() local
112 prepacked_cache.Get(data1.data(), &mat1); in TEST()
[all …]
/external/eigen/doc/snippets/
DTutorial_AdvancedInitialization_ThreeWays.cpp2 MatrixXd mat1(size, size);
3 mat1.topLeftCorner(size/2, size/2) = MatrixXd::Zero(size/2, size/2);
4 mat1.topRightCorner(size/2, size/2) = MatrixXd::Identity(size/2, size/2);
5 mat1.bottomLeftCorner(size/2, size/2) = MatrixXd::Identity(size/2, size/2);
6 mat1.bottomRightCorner(size/2, size/2) = MatrixXd::Zero(size/2, size/2);
7 std::cout << mat1 << std::endl << std::endl;
/external/vixl/test/aarch64/examples/
Dtest-examples.cc250 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local
254 mat1[0] = 1.0f; in TEST()
255 mat1[4] = 2.0f; in TEST()
256 mat1[8] = 3.0f; in TEST()
257 mat1[12] = 4.0f; in TEST()
258 mat1[1] = 52.03f; in TEST()
259 mat1[5] = 12.24f; in TEST()
260 mat1[9] = 53.56f; in TEST()
261 mat1[13] = 22.22f; in TEST()
262 mat1[2] = 4.43f; in TEST()
[all …]
/external/deqp-deps/glslang/Test/
Dhlsl.matpack-1.frag3 column_major float4x4 mat1;
11 row_major float4x4 mat1;
24 return mul(g_MyBuffer1.mat1, g_MyBuffer1.vec1) +
25 mul(g_MyBuffer2.mat1, g_MyBuffer2.vec1);
Dhlsl.matpack-pragma.frag5 column_major float4x4 mat1;
14 column_major float4x4 mat1;
31 g_MyBuffer1.mat1[0] + g_MyBuffer1.mat2[0] + g_MyBuffer1.mat3[0] +
32 g_MyBuffer2.mat1[0] + g_MyBuffer2.mat2[0] + g_MyBuffer2.mat3[0];
/external/angle/third_party/vulkan-deps/glslang/src/Test/
Dhlsl.matpack-1.frag3 column_major float4x4 mat1;
11 row_major float4x4 mat1;
24 return mul(g_MyBuffer1.mat1, g_MyBuffer1.vec1) +
25 mul(g_MyBuffer2.mat1, g_MyBuffer2.vec1);
Dhlsl.matpack-pragma.frag5 column_major float4x4 mat1;
14 column_major float4x4 mat1;
31 g_MyBuffer1.mat1[0] + g_MyBuffer1.mat2[0] + g_MyBuffer1.mat3[0] +
32 g_MyBuffer2.mat1[0] + g_MyBuffer2.mat2[0] + g_MyBuffer2.mat3[0];
/external/llvm-project/polly/lib/External/isl/
Disl_local.c188 isl_mat *mat1 = local1; in isl_local_cmp() local
198 if (mat1->n_row != mat2->n_row) in isl_local_cmp()
199 return mat1->n_row - mat2->n_row; in isl_local_cmp()
201 n_col = isl_mat_cols(mat1); in isl_local_cmp()
204 for (i = 0; i < mat1->n_row; ++i) { in isl_local_cmp()
213 last1 = isl_seq_last_non_zero(mat1->row[i] + 1, n_col - 1); in isl_local_cmp()
217 cmp = isl_seq_cmp(mat1->row[i], mat2->row[i], n_col); in isl_local_cmp()

123