/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 …]
|
D | cxx11_tensor_lvalue.cpp | 21 Tensor<float, 3> mat2(2,3,7); in test_compound_assignment() local 25 mat2.setRandom(); in test_compound_assignment() 27 mat3 += mat2; 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/ |
D | neon-matrix-multiply.cc | 114 float mat1[kLength], mat2[kLength], output[kLength]; in main() local 141 mat2[0] = 1.0f; in main() 142 mat2[4] = 11.24f; in main() 143 mat2[8] = 21.00f; in main() 144 mat2[12] = 21.31f; in main() 145 mat2[1] = 2.0f; in main() 146 mat2[5] = 2.24f; in main() 147 mat2[9] = 8.56f; in main() 148 mat2[13] = 52.03f; in main() 149 mat2[2] = 3.0f; in main() [all …]
|
/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/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);
|
D | hlsl.matpack-pragma.frag | 6 row_major float4x4 mat2; 15 row_major float4x4 mat2; 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/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/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/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 …]
|
/external/vixl/test/aarch64/examples/ |
D | test-examples.cc | 256 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local 277 mat2[0] = 1.0f; in TEST() 278 mat2[4] = 11.24f; in TEST() 279 mat2[8] = 21.00f; in TEST() 280 mat2[12] = 21.31f; in TEST() 281 mat2[1] = 2.0f; in TEST() 282 mat2[5] = 2.24f; in TEST() 283 mat2[9] = 8.56f; in TEST() 284 mat2[13] = 52.03f; in TEST() 285 mat2[2] = 3.0f; in TEST() [all …]
|
/external/deqp/external/vulkancts/data/vulkan/glsl/es310/ |
D | conversions.test | 5211 …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… 5224 out0 = mat2(in0); 5427 …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… 5440 out0 = mat2(in0); 5643 …mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat2(3.0, 0.0, 0.0, 3.0) | mat… 5656 out0 = mat2(in0); 5859 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(0.0, 0.0, 0.0, 0.0) ]; 5872 out0 = mat2(in0); 6079 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.0208333333333) ]; 6092 out0 = mat2(in0); [all …]
|
/external/deqp/data/gles3/shaders/ |
D | conversions.test | 6271 …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… 6284 out0 = mat2(in0); 6487 …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… 6500 out0 = mat2(in0); 6703 …mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat2(3.0, 0.0, 0.0, 3.0) | mat… 6716 out0 = mat2(in0); 6919 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(0.0, 0.0, 0.0, 0.0) ]; 6932 out0 = mat2(in0); 7139 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.0208333333333) ]; 7152 out0 = mat2(in0); [all …]
|
/external/deqp/data/gles31/shaders/es31/ |
D | linkage_tessellation_varying_types.test | 219 case mat2 221 desc "varying of type mat2" 225 …mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 226 …mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 231 out mediump mat2 vtx_var; 241 in mediump mat2 vtx_var[]; 242 out mediump mat2 tc_out[]; 252 in mediump mat2 tc_out[]; 253 out mediump mat2 te_out; 264 in mat2 te_out;
|
D | linkage_geometry_varying_types.test | 191 case mat2 193 desc "varying of type mat2" 197 …mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 198 …mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 203 out mediump mat2 vtx_var; 213 in mediump mat2 vtx_var[]; 214 out mediump mat2 geo_var; 229 in mat2 geo_var;
|
/external/deqp/data/gles31/shaders/es32/ |
D | linkage_tessellation_varying_types.test | 233 case mat2 235 desc "varying of type mat2" 238 …mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 239 …mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 244 out mediump mat2 vtx_var; 254 in mediump mat2 vtx_var[]; 255 out mediump mat2 tc_out[]; 265 in mediump mat2 tc_out[]; 266 out mediump mat2 te_out; 277 in mat2 te_out;
|
D | linkage_geometry_varying_types.test | 205 case mat2 207 desc "varying of type mat2" 210 …mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 211 …mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2… 216 out mediump mat2 vtx_var; 226 in mediump mat2 vtx_var[]; 227 out mediump mat2 geo_var; 242 in mat2 geo_var;
|