/external/eigen/unsupported/test/ |
D | cxx11_tensor_contraction.cpp | 23 Tensor<float, 2, DataLayout> mat2(2, 3); in test_evals() local 27 mat2.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 …]
|
D | cxx11_tensor_comparisons.cpp | 20 Tensor<float, 3> mat2(2,3,7); in test_orderings() local 27 mat2.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 …]
|
D | cxx11_tensor_expr.cpp | 74 TensorMap<Tensor<float, 2, RowMajor>> mat2(data2, 2, 3); in test_2d() local 83 mat2(0,0) = -0.0; in test_2d() 84 mat2(0,1) = -1.0; in test_2d() 85 mat2(0,2) = -2.0; in test_2d() 86 mat2(1,0) = -3.0; in test_2d() 87 mat2(1,1) = -4.0; in test_2d() 88 mat2(1,2) = -5.0; in test_2d() 93 mat4 = mat2.abs(); in test_2d() 113 Tensor<float, 3, RowMajor> mat2(2,3,7); in test_3d() local 120 mat2(i,j,k) = val; in test_3d() [all …]
|
D | cxx11_tensor_assign.cpp | 75 Tensor<int, 2, RowMajor> mat2(2,3); in test_2d() local 84 mat2(0,0) = 0; in test_2d() 85 mat2(0,1) = 1; in test_2d() 86 mat2(0,2) = 2; in test_2d() 87 mat2(1,0) = 3; in test_2d() 88 mat2(1,1) = 4; in test_2d() 89 mat2(1,2) = 5; in test_2d() 99 mat4 = mat2; in test_2d() 116 mat2.setZero(); in test_2d() 118 mat2 = mat4; in test_2d() [all …]
|
D | cxx11_tensor_of_const_values.cpp | 22 const TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); in test_assign() local 32 rslt2 = mat2; in test_assign() 35 Tensor<float, 2> rslt4 = mat2; in test_assign() 38 Tensor<float, 2> rslt6(mat2); in test_assign() 58 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); in test_plus() local 66 sum1 = mat1 + mat2; in test_plus() 68 sum2 = mat2 + mat1; in test_plus() 84 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); in test_plus_equal() local 90 mat2 += mat1; in test_plus_equal() 94 VERIFY_IS_APPROX(mat2(i,j), 0.0f); in test_plus_equal()
|
D | cxx11_tensor_simple.cpp | 116 Tensor<int, 2, RowMajor> mat2(2,3); in test_2d() local 125 mat2(0,0) = 0; in test_2d() 126 mat2(0,1) = 1; in test_2d() 127 mat2(0,2) = 2; in test_2d() 128 mat2(1,0) = 3; in test_2d() 129 mat2(1,1) = 4; in test_2d() 130 mat2(1,2) = 5; in test_2d() 137 VERIFY_IS_EQUAL((mat2.rank()), 2); in test_2d() 138 VERIFY_IS_EQUAL((mat2.size()), 6); in test_2d() 139 VERIFY_IS_EQUAL((mat2.dimensions()[0]), 2); in test_2d() [all …]
|
D | cxx11_tensor_map.cpp | 72 Tensor<int, 2, RowMajor> mat2(2,3); in test_2d() local 81 mat2(0,0) = 0; in test_2d() 82 mat2(0,1) = 1; in test_2d() 83 mat2(0,2) = 2; in test_2d() 84 mat2(1,0) = 3; in test_2d() 85 mat2(1,1) = 4; in test_2d() 86 mat2(1,2) = 5; in test_2d() 89 TensorMap<Tensor<const int, 2, RowMajor> > mat4(mat2.data(), 2, 3); in test_2d() 119 Tensor<int, 3, RowMajor> mat2(2,3,7); in test_3d() local 126 mat2(i,j,k) = val; in test_3d() [all …]
|
D | cxx11_tensor_fixed_size.cpp | 135 TensorMap<TensorFixedSize<float, Sizes<2, 3>, RowMajor> > mat2(data2,2,3); in test_2d() local 149 mat2(0,0) = -0.0; in test_2d() 150 mat2(0,1) = -1.0; in test_2d() 151 mat2(0,2) = -2.0; in test_2d() 152 mat2(1,0) = -3.0; in test_2d() 153 mat2(1,1) = -4.0; in test_2d() 154 mat2(1,2) = -5.0; in test_2d() 159 mat4 = mat2.abs(); in test_2d() 183 TensorFixedSize<float, Sizes<2, 3, 7>, RowMajor> mat2; in test_3d() local 196 mat2(i,j,k) = val; in test_3d() [all …]
|
/external/skia/tests/sksl/shared/ |
D | Matrices.glsl | 6 mat2 m1 = mat2(1.0, 2.0, 3.0, 4.0); 7 mat2 m3 = m1; 8 mat2 m4 = mat2(1.0); 10 mat2 m5 = mat2(m1[0].x); 11 mat2 m6 = mat2(1.0, 2.0, 3.0, 4.0); 19 mat2 _2_m1 = mat2(1.0, 2.0, 3.0, 4.0); 20 mat2 _4_m3 = _2_m1; 21 mat2 _5_m4 = mat2(1.0); 23 mat2 _6_m5 = mat2(_2_m1[0].x); 24 mat2 _7_m6 = mat2(1.0, 2.0, 3.0, 4.0);
|
D | ResizeMatrix.glsl | 7 mat2 a = mat2(mat3(1.0)); 9 mat2 b = mat2(mat4(1.0)); 13 mat3 d = mat3(mat2(1.0)); 15 mat4 e = mat4(mat3(mat2(1.0))); 17 mat2 f = mat2(mat3(mat4(1.0)));
|
D | FunctionReturnTypeMatch.glsl | 14 mat2 returns_float2x2_f22() { 15 return mat2(2.0); 35 mat2 returns_half2x2_h22() { 36 return mat2(2.0); 73 mat2 x5 = mat2(2.0); 80 mat2 x12 = mat2(2.0);
|
/external/vixl/examples/aarch64/ |
D | neon-matrix-multiply.cc | 117 float mat1[kLength], mat2[kLength], output[kLength]; in main() local 144 mat2[0] = 1.0f; in main() 145 mat2[4] = 11.24f; in main() 146 mat2[8] = 21.00f; in main() 147 mat2[12] = 21.31f; in main() 148 mat2[1] = 2.0f; in main() 149 mat2[5] = 2.24f; in main() 150 mat2[9] = 8.56f; in main() 151 mat2[13] = 52.03f; in main() 152 mat2[2] = 3.0f; in main() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/ |
D | link1.frag | 19 ivec2 foo(mat2 m) 29 uniform mat2 um2 = mat2(4.0); 30 uniform mat2 um2n = mat2(4.0); 31 uniform mat2 um2e = mat2(4.0);
|
D | spv.constStruct.vert | 6 mat2 m; 10 mat2 m; 20 S s1 = S(T(mat2(1.0)), U(mat2(1.0))); 21 S s2 = S(T(mat2(1.0)), U(mat2(1.0)));
|
D | link2.frag | 24 uniform mat2 um2 = mat2(4.0); 25 uniform mat2 um2n; 26 uniform mat2 um2e = mat2(3.0);
|
/external/deqp-deps/glslang/Test/ |
D | link1.frag | 19 ivec2 foo(mat2 m) 29 uniform mat2 um2 = mat2(4.0); 30 uniform mat2 um2n = mat2(4.0); 31 uniform mat2 um2e = mat2(4.0);
|
D | spv.constStruct.vert | 6 mat2 m; 10 mat2 m; 20 S s1 = S(T(mat2(1.0)), U(mat2(1.0))); 21 S s2 = S(T(mat2(1.0)), U(mat2(1.0)));
|
D | link2.frag | 24 uniform mat2 um2 = mat2(4.0); 25 uniform mat2 um2n; 26 uniform mat2 um2e = mat2(3.0);
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.matpack-pragma.frag.out | 18 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 19 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 27 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of … 28 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 29 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 38 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 39 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 48 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major)… 49 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 57 0:32 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | hlsl.matpack-pragma.frag.out | 18 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 19 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 27 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of … 28 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 29 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 38 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_maj… 39 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 48 … 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major)… 49 …mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) … 57 0:32 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) [all …]
|
/external/eigen/doc/snippets/ |
D | Tutorial_AdvancedInitialization_ThreeWays.cpp | 9 MatrixXd mat2(size, size); 10 mat2.topLeftCorner(size/2, size/2).setZero(); 11 mat2.topRightCorner(size/2, size/2).setIdentity(); 12 mat2.bottomLeftCorner(size/2, size/2).setIdentity(); 13 mat2.bottomRightCorner(size/2, size/2).setZero(); 14 std::cout << mat2 << std::endl << std::endl;
|
/external/eigen/test/ |
D | evaluators.cpp | 244 MatrixXd mat1(6,6), mat2(6,6); in test_evaluators() local 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() 255 mat2.resize(3,3); in test_evaluators() 256 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); in test_evaluators() 327 mat2.setIdentity(); in test_evaluators() 330 copy_using_evaluator(matXcd.imag(), mat2); in test_evaluators() 332 matXcd_ref.imag() = mat2; in test_evaluators() 355 VERIFY_IS_APPROX_EVALUATOR(mat2, arr1.matrix()); in test_evaluators() [all …]
|
/external/ruy/ruy/ |
D | prepacked_cache_test.cc | 66 PEMat mat2 = MakeDummyPEMat(Type::Create<std::uint8_t>(), 5, 3); in TEST() local 67 EXPECT_TRUE(prepacked_cache.Get(data2.data(), &mat2) == in TEST() 69 DummyPack(data2, &mat2); in TEST() 76 EXPECT_TRUE(prepacked_cache.Get(data2.data(), &mat2) == in TEST() 92 PEMat mat2 = MakeDummyPEMat(Type::Create<float>(), 5, 3); in TEST() local 93 EXPECT_TRUE(prepacked_cache.Get(data2.data(), &mat2) == in TEST() 95 DummyPack(data2, &mat2); in TEST() 102 EXPECT_TRUE(prepacked_cache.Get(data2.data(), &mat2) == in TEST() 117 PEMat mat2 = MakeDummyPEMat(Type::Create<std::uint8_t>(), 5, 3); in TEST() local 118 prepacked_cache.Get(data2.data(), &mat2); in TEST() [all …]
|
/external/vixl/test/aarch64/examples/ |
D | test-examples.cc | 250 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local 271 mat2[0] = 1.0f; in TEST() 272 mat2[4] = 11.24f; in TEST() 273 mat2[8] = 21.00f; in TEST() 274 mat2[12] = 21.31f; in TEST() 275 mat2[1] = 2.0f; in TEST() 276 mat2[5] = 2.24f; in TEST() 277 mat2[9] = 8.56f; in TEST() 278 mat2[13] = 52.03f; in TEST() 279 mat2[2] = 3.0f; in TEST() [all …]
|
/external/deqp/data/gles2/shaders/ |
D | conversions.test | 3188 …mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat… 3200 out0 = mat2(in0); 3254 …mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat… 3266 out0 = mat2(in0); 3320 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(0.0, 0.0, 0.0, 0.0) ]; 3332 out0 = mat2(in0); 3390 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.0208333333333) ]; 3402 out0 = mat2(in0); 3456 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.03125) ]; 3468 out0 = mat2(in0); [all …]
|