/external/eigen/unsupported/test/ |
H A D | cxx11_tensor_comparisons.cpp | 20 Tensor<float, 3> mat2(2,3,7); 27 mat2.setRandom(); 29 lt = mat1 < mat2; 30 le = mat1 <= mat2; 31 gt = mat1 > mat2; 32 ge = mat1 >= mat2; 37 VERIFY_IS_EQUAL(lt(i,j,k), mat1(i,j,k) < mat2(i,j,k)); 38 VERIFY_IS_EQUAL(le(i,j,k), mat1(i,j,k) <= mat2(i,j,k)); 39 VERIFY_IS_EQUAL(gt(i,j,k), mat1(i,j,k) > mat2(i,j,k)); 40 VERIFY_IS_EQUAL(ge(i,j,k), mat1(i,j,k) >= mat2( [all...] |
H A D | cxx11_tensor_contraction.cpp | 23 Tensor<float, 2, DataLayout> mat2(2, 3); 27 mat2.setRandom(); 33 typedef TensorEvaluator<decltype(mat1.contract(mat2, dims3)), DefaultDevice> Evaluator; 34 Evaluator eval(mat1.contract(mat2, dims3), DefaultDevice()); 40 VERIFY_IS_APPROX(mat4(0,0), mat1(0,0)*mat2(0,0) + mat1(1,0)*mat2(1,0)); 41 VERIFY_IS_APPROX(mat4(0,1), mat1(0,0)*mat2(0,1) + mat1(1,0)*mat2(1,1)); 42 VERIFY_IS_APPROX(mat4(0,2), mat1(0,0)*mat2(0,2) + mat1(1,0)*mat2( [all...] |
H A D | cxx11_tensor_lvalue.cpp | 21 Tensor<float, 3> mat2(2,3,7); 25 mat2.setRandom(); 27 mat3 += mat2; 32 VERIFY_IS_APPROX(mat3(i,j,k), mat1(i,j,k) + mat2(i,j,k));
|
H A D | cxx11_tensor_of_const_values.cpp | 22 const TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); 32 rslt2 = mat2; 35 Tensor<float, 2> rslt4 = mat2; 38 Tensor<float, 2> rslt6(mat2); 58 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); 66 sum1 = mat1 + mat2; 68 sum2 = mat2 + mat1; 84 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3); 90 mat2 += mat1; 94 VERIFY_IS_APPROX(mat2( [all...] |
H A D | cxx11_tensor_expr.cpp | 74 TensorMap<Tensor<float, 2, RowMajor>> mat2(data2, 2, 3); 83 mat2(0,0) = -0.0; 84 mat2(0,1) = -1.0; 85 mat2(0,2) = -2.0; 86 mat2(1,0) = -3.0; 87 mat2(1,1) = -4.0; 88 mat2(1,2) = -5.0; 93 mat4 = mat2.abs(); 113 Tensor<float, 3, RowMajor> mat2(2,3,7); 120 mat2( [all...] |
H A D | cxx11_tensor_assign.cpp | 75 Tensor<int, 2, RowMajor> mat2(2,3); 84 mat2(0,0) = 0; 85 mat2(0,1) = 1; 86 mat2(0,2) = 2; 87 mat2(1,0) = 3; 88 mat2(1,1) = 4; 89 mat2(1,2) = 5; 99 mat4 = mat2; 116 mat2.setZero(); 118 mat2 [all...] |
H A D | cxx11_tensor_map.cpp | 72 Tensor<int, 2, RowMajor> mat2(2,3); 81 mat2(0,0) = 0; 82 mat2(0,1) = 1; 83 mat2(0,2) = 2; 84 mat2(1,0) = 3; 85 mat2(1,1) = 4; 86 mat2(1,2) = 5; 89 TensorMap<Tensor<const int, 2, RowMajor> > mat4(mat2.data(), 2, 3); 119 Tensor<int, 3, RowMajor> mat2(2,3,7); 126 mat2( [all...] |
H A D | cxx11_tensor_simple.cpp | 116 Tensor<int, 2, RowMajor> mat2(2,3); 125 mat2(0,0) = 0; 126 mat2(0,1) = 1; 127 mat2(0,2) = 2; 128 mat2(1,0) = 3; 129 mat2(1,1) = 4; 130 mat2(1,2) = 5; 137 VERIFY_IS_EQUAL((mat2.rank()), 2); 138 VERIFY_IS_EQUAL((mat2.size()), 6); 139 VERIFY_IS_EQUAL((mat2 [all...] |
H A D | cxx11_tensor_fixed_size.cpp | 135 TensorMap<TensorFixedSize<float, Sizes<2, 3>, RowMajor> > mat2(data2,2,3); 149 mat2(0,0) = -0.0; 150 mat2(0,1) = -1.0; 151 mat2(0,2) = -2.0; 152 mat2(1,0) = -3.0; 153 mat2(1,1) = -4.0; 154 mat2(1,2) = -5.0; 159 mat4 = mat2.abs(); 183 TensorFixedSize<float, Sizes<2, 3, 7>, RowMajor> mat2; local 196 mat2( [all...] |
H A D | cxx11_tensor_forced_eval.cpp | 26 TensorMap<Tensor<float, 2> > mat2(m2.data(), 3,3); 35 mat3 = mat3.contract(mat2, dims).eval();
|
H A D | cxx11_tensor_of_strings.cpp | 22 const TensorMap<Tensor<const std::string, 2>> mat2(data2, 2, 3); 36 rslt2 = mat2; 39 Tensor<std::string, 2> rslt4 = mat2; 42 Tensor<std::string, 2> rslt6(mat2);
|
/external/vixl/examples/aarch64/ |
H A D | neon-matrix-multiply.cc | 61 // mat2 -> x2 114 float mat1[kLength], mat2[kLength], output[kLength]; local 141 mat2[0] = 1.0f; 142 mat2[4] = 11.24f; 143 mat2[8] = 21.00f; 144 mat2[12] = 21.31f; 145 mat2[1] = 2.0f; 146 mat2[5] = 2.24f; 147 mat2[9] = 8.56f; 148 mat2[1 [all...] |
/external/eigen/doc/snippets/ |
H A 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/ |
H A D | evaluators.cpp | 244 MatrixXd mat1(6,6), mat2(6,6); 246 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); 247 copy_using_evaluator(mat2.transpose(), mat1); 248 VERIFY_IS_APPROX(mat2.transpose(), mat1); 255 mat2.resize(3,3); 256 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); 327 mat2.setIdentity(); 330 copy_using_evaluator(matXcd.imag(), mat2); 332 matXcd_ref.imag() = mat2; 355 VERIFY_IS_APPROX_EVALUATOR(mat2, arr 392 MatrixXd mat1, mat2, mat1ref, mat2ref; local [all...] |
H A D | product_large.cpp | 80 MatrixXf mat2(32,32); mat2.setRandom(); 81 MatrixXf r1 = mat1.row(2)*mat2.transpose(); 82 VERIFY_IS_APPROX(r1, (mat1.row(2)*mat2.transpose()).eval()); 84 MatrixXf r2 = mat1.row(2)*mat2; 85 VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval());
|
H A D | ref.cpp | 101 mat2 = mat1, local 135 mat2.row(i).array() += 1; 136 VERIFY_IS_EQUAL(mat1, mat2); 138 mat2.row(i) = v2.real().transpose() * mat3; 139 VERIFY_IS_APPROX(mat1, mat2);
|
/external/vixl/test/aarch64/examples/ |
H A D | test-examples.cc | 252 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; local 273 mat2[0] = 1.0f; 274 mat2[4] = 11.24f; 275 mat2[8] = 21.00f; 276 mat2[12] = 21.31f; 277 mat2[1] = 2.0f; 278 mat2[5] = 2.24f; 279 mat2[9] = 8.56f; 280 mat2[13] = 52.03f; 281 mat2[ [all...] |
/external/autotest/client/site_tests/graphics_SanAngeles/src/ |
H A D | matrixop.h | 14 // result = mat1 * mat2 16 Matrix4x4 mat1, Matrix4x4 mat2);
|
H A D | matrixop.c | 20 void Matrix4x4_Multiply(Matrix4x4 result, Matrix4x4 mat1, Matrix4x4 mat2) argument 29 tmp[i*4 + j] += mat1[i*4 + k] * mat2[k*4 + j];
|
/external/opencv/cxcore/src/ |
H A D | cxnorm.cpp | 980 CvMat stub2, *mat2 = (CvMat*)imgA; local 987 mat1 = mat2; 988 mat2 = 0; 991 is_relative = mat2 && (normType & CV_RELATIVE); 1009 if( CV_IS_MAT(mat1) && (!mat2 || CV_IS_MAT(mat2)) && !mask ) 1011 if( mat2 ) 1013 if( !CV_ARE_TYPES_EQ( mat1, mat2 )) 1016 if( !CV_ARE_SIZES_EQ( mat1, mat2 )) 1019 mat2_flag = mat2 [all...] |
/external/autotest/client/cros/ |
H A D | ec.py | 423 mat2 = re.match(mat2_re, ln) 424 if mat2: 425 flash_dict['dev_major'] = int(mat2.group(1)) 426 flash_dict['dev_minor'] = int(mat2.group(2)) 427 flash_dict['rw_hash'] = mat2.group(3) 428 flash_dict['image_status'] = mat2.group(4)
|
/external/opencv/cv/src/ |
H A D | cvaccum.cpp | 595 CvMat stub2, *mat2 = (CvMat*)arrB; local 606 CV_CALL( mat2 = cvGetMat( mat2, &stub2, &coi2 )); 612 if( !CV_ARE_CNS_EQ( mat1, mat2 ) || !CV_ARE_CNS_EQ( mat1, sum )) 618 if( !CV_ARE_SIZES_EQ( mat1, sum ) || !CV_ARE_SIZES_EQ( mat2, sum )) 625 mat2_step = mat2->step; 637 if( CV_IS_MAT_CONT( mat1->type & mat2->type & sum->type )) 644 IPPI_CALL( func( mat1->data.ptr, mat1_step, mat2->data.ptr, mat2_step, 664 if( CV_IS_MAT_CONT( mat1->type & mat2->type & sum->type & mask->type )) 671 IPPI_CALL( func( mat1->data.ptr, mat1_step, mat2 [all...] |
/external/swiftshader/src/OpenGL/compiler/ |
H A D | Initialize.cpp | 147 TType *mat2 = new TType(EbtFloat, 2, 2); local 160 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpMul, mat2, "matrixCompMult", mat2, mat2); 170 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2, "outerProduct", float2, float2); 180 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpTranspose, mat2, "transpose", mat2); 190 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpDeterminant, float1, "determinant", mat2); 194 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpInverse, mat2, "inverse", mat2); [all...] |
/external/opencv/cxcore/include/ |
H A D | cxtypes.h | 593 #define CV_ARE_TYPES_EQ(mat1, mat2) \ 594 ((((mat1)->type ^ (mat2)->type) & CV_MAT_TYPE_MASK) == 0) 596 #define CV_ARE_CNS_EQ(mat1, mat2) \ 597 ((((mat1)->type ^ (mat2)->type) & CV_MAT_CN_MASK) == 0) 599 #define CV_ARE_DEPTHS_EQ(mat1, mat2) \ 600 ((((mat1)->type ^ (mat2)->type) & CV_MAT_DEPTH_MASK) == 0) 602 #define CV_ARE_SIZES_EQ(mat1, mat2) \ 603 ((mat1)->rows == (mat2)->rows && (mat1)->cols == (mat2)->cols)
|
/external/skia/tests/ |
H A D | MatrixTest.cpp | 927 SkMatrix mat2; local 928 mat2.reset(); 932 REPORTER_ASSERT(reporter, are_equal(reporter, mat, mat2)); 934 mat2.reset(); 937 mat2.set(SkMatrix::kMSkewX, SK_ScalarNaN); 938 REPORTER_ASSERT(reporter, !are_equal(reporter, mat, mat2)); 950 mat2.setScale(2, 3); 951 mat2.postTranslate(1, 4); 952 REPORTER_ASSERT(reporter, mat == mat2);
|