/external/eigen/unsupported/test/ |
D | cxx11_tensor_contraction.cpp | 22 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 …]
|
D | cxx11_tensor_comparisons.cpp | 19 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 …]
|
D | cxx11_tensor_expr.cpp | 72 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 …]
|
D | cxx11_tensor_assign.cpp | 74 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 …]
|
D | cxx11_tensor_fixed_size.cpp | 133 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 …]
|
D | cxx11_tensor_of_const_values.cpp | 20 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()
|
D | cxx11_tensor_simple.cpp | 115 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 …]
|
D | cxx11_tensor_map.cpp | 71 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 …]
|
D | cxx11_tensor_lvalue.cpp | 20 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()
|
D | cxx11_tensor_of_strings.cpp | 20 TensorMap<Tensor<std::string, 2>> mat1(data1, 2, 3); in test_assign() local 34 rslt1 = mat1; in test_assign() 38 Tensor<std::string, 2> rslt3 = mat1; in test_assign() 41 Tensor<std::string, 2> rslt5(mat1); in test_assign()
|
/external/vixl/examples/aarch64/ |
D | neon-matrix-multiply.cc | 114 float mat1[kLength], mat2[kLength], output[kLength]; in main() local 124 mat1[0] = 1.0f; in main() 125 mat1[4] = 2.0f; in main() 126 mat1[8] = 3.0f; in main() 127 mat1[12] = 4.0f; in main() 128 mat1[1] = 52.03f; in main() 129 mat1[5] = 12.24f; in main() 130 mat1[9] = 53.56f; in main() 131 mat1[13] = 22.22f; in main() 132 mat1[2] = 4.43f; in main() [all …]
|
/external/eigen/doc/ |
D | QuickReference.dox | 322 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/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.matpack-1.frag.out | 12 …jor std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_maj… 13 …mat1, 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… 20 …mat1, 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 … 28 …mat1, 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 … 35 …mat1, layout( column_major) temp 4X4 matrix of float mat2, temp 4-component vector of float vec1,… [all …]
|
D | hlsl.matpack-pragma.frag.out | 17 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… 19 …mat1, 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… 29 …mat1, 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… 39 …mat1, 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… 49 …mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix o… [all …]
|
D | hlsl.scalar2matrix.frag.out | 13 0:10 'mat1' ( temp 4X4 matrix of float) 171 0:27 'mat1' ( temp 4X4 matrix of float) 202 0:10 'mat1' ( temp 4X4 matrix of float) 360 0:27 'mat1' ( temp 4X4 matrix of float) 390 Name 17 "mat1" 455 17(mat1): 9(ptr) Variable Function 460 Store 17(mat1) 20 499 84: 83(ptr) AccessChain 17(mat1) 82
|
/external/eigen/test/ |
D | evaluators.cpp | 244 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 …]
|
D | product_large.cpp | 79 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()
|
D | ref.cpp | 100 MatrixType mat1 = MatrixType::Random(size,size), in ref_vector() local 101 mat2 = mat1, in ref_vector() 132 RefMatWithStride rm5 = mat1.row(i).transpose(); in ref_vector() 133 VERIFY_IS_EQUAL(rm5, mat1.row(i).transpose()); in ref_vector() 136 VERIFY_IS_EQUAL(mat1, mat2); in ref_vector() 139 VERIFY_IS_APPROX(mat1, mat2); in ref_vector()
|
/external/eigen/doc/snippets/ |
D | Tutorial_AdvancedInitialization_ThreeWays.cpp | 2 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/ |
D | test-examples.cc | 256 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local 260 mat1[0] = 1.0f; in TEST() 261 mat1[4] = 2.0f; in TEST() 262 mat1[8] = 3.0f; in TEST() 263 mat1[12] = 4.0f; in TEST() 264 mat1[1] = 52.03f; in TEST() 265 mat1[5] = 12.24f; in TEST() 266 mat1[9] = 53.56f; in TEST() 267 mat1[13] = 22.22f; in TEST() 268 mat1[2] = 4.43f; in TEST() [all …]
|
/external/deqp-deps/glslang/Test/ |
D | hlsl.matpack-1.frag | 3 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);
|
D | hlsl.matpack-pragma.frag | 5 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];
|
D | hlsl.scalar2matrix.frag | 10 float4x4 mat1 = 0.25; 27 return mat1c[0] + mat3c[0] + mat1[1] + mat4[2];
|
/external/autotest/client/cros/ |
D | ec.py | 465 mat1 = re.match(mat1_re, ln) 466 if mat1: 467 flash_dict['ptype'] = int(mat1.group(1)) 468 flash_dict['vid'] = mat1.group(2) 469 flash_dict['pid'] = mat1.group(3)
|
/external/tensorflow/tensorflow/contrib/model_pruning/python/ |
D | pruning_utils.py | 79 def kronecker_product(mat1, mat2): argument 89 m1, n1 = mat1.get_shape().as_list() 90 mat1_rsh = array_ops.reshape(mat1, [m1, 1, n1, 1])
|