/external/vixl/examples/ |
D | neon-matrix-multiply.cc | 117 float mat1[kLength], mat2[kLength], output[kLength]; in main() local 127 mat1[0] = 1.0f; mat1[4] = 2.0f; mat1[ 8] = 3.0f; mat1[12] = 4.0f; in main() 128 mat1[1] = 52.03f; mat1[5] = 12.24f; mat1[ 9] = 53.56f; mat1[13] = 22.22f; in main() 129 mat1[2] = 4.43f; mat1[6] = 5.00f; mat1[10] = 7.00f; mat1[14] = 3.11f; in main() 130 mat1[3] = 43.47f; mat1[7] = 10.97f; mat1[11] = 37.78f; mat1[15] = 90.91f; in main() 139 simulator.set_xreg(1, reinterpret_cast<uintptr_t>(mat1)); in main() 148 mat1[i], mat1[4+i], mat1[8+i], mat1[12+i], in main()
|
/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(); 371 mat1.cwiseMin(mat2) [all …]
|
/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/opencv3/modules/ts/include/opencv2/ts/ |
D | ocl_test.hpp | 97 #define EXPECT_MAT_NEAR(mat1, mat2, eps) \ argument 100 ASSERT_EQ(mat1.type(), mat2.type()); \ 101 ASSERT_EQ(mat1.size(), mat2.size()); \ 102 EXPECT_LE(TestUtils::checkNorm2(mat1, mat2), eps) \ 103 << "Size: " << mat1.size() << std::endl; \ 106 #define EXPECT_MAT_NEAR_RELATIVE(mat1, mat2, eps) \ argument 109 ASSERT_EQ(mat1.type(), mat2.type()); \ 110 ASSERT_EQ(mat1.size(), mat2.size()); \ 111 EXPECT_LE(TestUtils::checkNormRelative(mat1, mat2), eps) \ 112 << "Size: " << mat1.size() << std::endl; \ [all …]
|
D | cuda_test.hpp | 156 #define EXPECT_MAT_SIMILAR(mat1, mat2, eps) \ argument 158 ASSERT_EQ(mat1.type(), mat2.type()); \ 159 ASSERT_EQ(mat1.size(), mat2.size()); \ 160 EXPECT_LE(checkSimilarity(mat1, mat2), eps); \ 162 #define ASSERT_MAT_SIMILAR(mat1, mat2, eps) \ argument 164 ASSERT_EQ(mat1.type(), mat2.type()); \ 165 ASSERT_EQ(mat1.size(), mat2.size()); \ 166 ASSERT_LE(checkSimilarity(mat1, mat2), eps); \
|
/external/eigen/test/ |
D | product_large.cpp | 55 MatrixXf mat1(10,32); mat1.setRandom(); in test_product_large() local 57 MatrixXf r1 = mat1.row(2)*mat2.transpose(); in test_product_large() 58 VERIFY_IS_APPROX(r1, (mat1.row(2)*mat2.transpose()).eval()); in test_product_large() 60 MatrixXf r2 = mat1.row(2)*mat2; in test_product_large() 61 VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval()); in test_product_large()
|
D | ref.cpp | 105 MatrixType mat1 = MatrixType::Random(size,size), in ref_vector() local 106 mat2 = mat1, in ref_vector() 137 RefMatWithStride rm5 = mat1.row(i).transpose(); in ref_vector() 138 VERIFY_IS_EQUAL(rm5, mat1.row(i).transpose()); in ref_vector() 141 VERIFY_IS_EQUAL(mat1, mat2); in ref_vector() 144 VERIFY_IS_APPROX(mat1, mat2); in ref_vector()
|
/external/vixl/test/examples/ |
D | test-examples.cc | 259 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local 263 mat1[0] = 1.0f; mat1[4] = 2.0f; mat1[ 8] = 3.0f; mat1[12] = 4.0f; in TEST() 264 mat1[1] = 52.03f; mat1[5] = 12.24f; mat1[ 9] = 53.56f; mat1[13] = 22.22f; in TEST() 265 mat1[2] = 4.43f; mat1[6] = 5.00f; mat1[10] = 7.00f; mat1[14] = 3.11f; in TEST() 266 mat1[3] = 43.47f; mat1[7] = 10.97f; mat1[11] = 37.78f; mat1[15] = 90.91f; in TEST() 273 MatrixMultiplyC(expected, mat1, mat2); in TEST() 277 simulator.set_xreg(1, reinterpret_cast<uintptr_t>(mat1)); in TEST()
|
/external/opencv3/3rdparty/libjasper/jasper/ |
D | jas_seq.h | 197 void jas_matrix_bindsub(jas_matrix_t *mat0, jas_matrix_t *mat1, int r0, int c0, 201 #define jas_matrix_bindrow(mat0, mat1, r) \ argument 202 (jas_matrix_bindsub((mat0), (mat1), (r), 0, (r), (mat1)->numcols_ - 1)) 205 #define jas_matrix_bindcol(mat0, mat1, c) \ argument 206 (jas_matrix_bindsub((mat0), (mat1), 0, (c), (mat1)->numrows_ - 1, (c))) 233 int jas_matrix_cmp(jas_matrix_t *mat0, jas_matrix_t *mat1);
|
/external/opencv/cxcore/src/ |
D | cxnorm.cpp | 979 CvMat stub1, *mat1 = (CvMat*)imgB; in cvNorm() local 985 if( !mat1 ) in cvNorm() 987 mat1 = mat2; in cvNorm() 1009 if( CV_IS_MAT(mat1) && (!mat2 || CV_IS_MAT(mat2)) && !mask ) in cvNorm() 1013 if( !CV_ARE_TYPES_EQ( mat1, mat2 )) in cvNorm() 1016 if( !CV_ARE_SIZES_EQ( mat1, mat2 )) in cvNorm() 1022 size = cvGetMatSize( mat1 ); in cvNorm() 1023 type = CV_MAT_TYPE(mat1->type); in cvNorm() 1027 if( CV_IS_MAT_CONT( mat1->type & mat2_flag )) in cvNorm() 1035 const float* src1data = mat1->data.fl; in cvNorm() [all …]
|
D | cxcopy.cpp | 712 CvSparseMat* mat1 = (CvSparseMat*)mat; in cvSetZero() local 713 cvClearSet( mat1->heap ); in cvSetZero() 714 if( mat1->hashtable ) in cvSetZero() 715 memset( mat1->hashtable, 0, mat1->hashsize*sizeof(mat1->hashtable[0])); in cvSetZero()
|
/external/eigen/test/eigen2/ |
D | eigen2_product_large.cpp | 39 MatrixXf mat1(10,10); mat1.setRandom(); in test_eigen2_product_large() local 41 MatrixXf result = mat1.row(2)*mat2.transpose(); in test_eigen2_product_large() 42 VERIFY_IS_APPROX(result, (mat1.row(2)*mat2.transpose()).eval()); in test_eigen2_product_large()
|
/external/opencv3/3rdparty/libjasper/ |
D | jas_seq.c | 203 void jas_matrix_bindsub(jas_matrix_t *mat0, jas_matrix_t *mat1, int r0, int c0, in jas_matrix_bindsub() argument 225 mat0->rows_[i] = mat1->rows_[r0 + i] + c0; in jas_matrix_bindsub() 228 mat0->xstart_ = mat1->xstart_ + c0; in jas_matrix_bindsub() 229 mat0->ystart_ = mat1->ystart_ + r0; in jas_matrix_bindsub() 238 int jas_matrix_cmp(jas_matrix_t *mat0, jas_matrix_t *mat1) in jas_matrix_cmp() argument 243 if (mat0->numrows_ != mat1->numrows_ || mat0->numcols_ != in jas_matrix_cmp() 244 mat1->numcols_) { in jas_matrix_cmp() 249 if (jas_matrix_get(mat0, i, j) != jas_matrix_get(mat1, i, j)) { in jas_matrix_cmp()
|
/external/opencv/cv/src/ |
D | cvaccum.cpp | 594 CvMat stub1, *mat1 = (CvMat*)arrA; in cvMultiplyAcc() local 605 CV_CALL( mat1 = cvGetMat( mat1, &stub1, &coi1 )); in cvMultiplyAcc() 612 if( !CV_ARE_CNS_EQ( mat1, mat2 ) || !CV_ARE_CNS_EQ( mat1, sum )) in cvMultiplyAcc() 618 if( !CV_ARE_SIZES_EQ( mat1, sum ) || !CV_ARE_SIZES_EQ( mat2, sum )) in cvMultiplyAcc() 621 size = cvGetMatSize( mat1 ); in cvMultiplyAcc() 622 type = CV_MAT_TYPE( mat1->type ); in cvMultiplyAcc() 624 mat1_step = mat1->step; in cvMultiplyAcc() 637 if( CV_IS_MAT_CONT( mat1->type & mat2->type & sum->type )) in cvMultiplyAcc() 644 IPPI_CALL( func( mat1->data.ptr, mat1_step, mat2->data.ptr, mat2_step, in cvMultiplyAcc() 659 if( !CV_ARE_SIZES_EQ( mat1, mask )) in cvMultiplyAcc() [all …]
|
D | cvhistogram.cpp | 513 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins); in cvCompareHist() local 518 if( mat1->heap->active_count > mat2->heap->active_count ) in cvCompareHist() 521 CV_SWAP( mat1, mat2, t ); in cvCompareHist() 527 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); in cvCompareHist() 530 double v1 = *(float*)CV_NODE_VAL(mat1,node1); in cvCompareHist() 531 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1), 0, 0, &node1->hashval ); in cvCompareHist() 548 if( !cvPtrND( mat1, CV_NODE_IDX(mat2,node2), 0, 0, &node2->hashval )) in cvCompareHist() 559 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); in cvCompareHist() 562 double v1 = *(float*)CV_NODE_VAL(mat1,node1); in cvCompareHist() 563 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1), in cvCompareHist() [all …]
|
/external/opencv3/modules/video/test/ |
D | test_ecc.cpp | 55 double computeRMS(const Mat& mat1, const Mat& mat2); 88 double CV_ECC_BaseTest::computeRMS(const Mat& mat1, const Mat& mat2){ in computeRMS() argument 90 CV_Assert(mat1.rows == mat2.rows); in computeRMS() 91 CV_Assert(mat1.cols == mat2.cols); in computeRMS() 94 subtract(mat1, mat2, errorMat); in computeRMS() 96 return sqrt(errorMat.dot(errorMat)/(mat1.rows*mat1.cols)); in computeRMS()
|
/external/autotest/client/cros/ |
D | ec.py | 368 mat1 = re.match(mat1_re, ln) 369 if mat1: 370 flash_dict['ptype'] = int(mat1.group(1)) 371 flash_dict['vid'] = mat1.group(2) 372 flash_dict['pid'] = mat1.group(3)
|
/external/opencv3/modules/cudaarithm/test/ |
D | test_element_operations.cpp | 80 cv::Mat mat1 = randomMat(size, stype); in CUDA_TEST_P() local 88 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second); in CUDA_TEST_P() 99 …cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, cv::cuda::GpuMat(), depth.second); in CUDA_TEST_P() 102 cv::add(mat1, mat2, dst_gold, cv::noArray(), depth.second); in CUDA_TEST_P() 141 cv::Mat mat1 = randomMat(size, stype); in CUDA_TEST_P() local 150 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second); in CUDA_TEST_P() 161 …cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, loadMat(mask, useRoi), depth.seco… in CUDA_TEST_P() 164 cv::add(mat1, mat2, dst_gold, mask, depth.second); in CUDA_TEST_P() 383 cv::Mat mat1 = randomMat(size, stype); in CUDA_TEST_P() local 391 cv::cuda::subtract(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second); in CUDA_TEST_P() [all …]
|
/external/opencv/cxcore/include/ |
D | cxtypes.h | 593 #define CV_ARE_TYPES_EQ(mat1, mat2) \ argument 594 ((((mat1)->type ^ (mat2)->type) & CV_MAT_TYPE_MASK) == 0) 596 #define CV_ARE_CNS_EQ(mat1, mat2) \ argument 597 ((((mat1)->type ^ (mat2)->type) & CV_MAT_CN_MASK) == 0) 599 #define CV_ARE_DEPTHS_EQ(mat1, mat2) \ argument 600 ((((mat1)->type ^ (mat2)->type) & CV_MAT_DEPTH_MASK) == 0) 602 #define CV_ARE_SIZES_EQ(mat1, mat2) \ argument 603 ((mat1)->rows == (mat2)->rows && (mat1)->cols == (mat2)->cols)
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | types_c.h | 485 #define CV_ARE_TYPES_EQ(mat1, mat2) \ argument 486 ((((mat1)->type ^ (mat2)->type) & CV_MAT_TYPE_MASK) == 0) 488 #define CV_ARE_CNS_EQ(mat1, mat2) \ argument 489 ((((mat1)->type ^ (mat2)->type) & CV_MAT_CN_MASK) == 0) 491 #define CV_ARE_DEPTHS_EQ(mat1, mat2) \ argument 492 ((((mat1)->type ^ (mat2)->type) & CV_MAT_DEPTH_MASK) == 0) 494 #define CV_ARE_SIZES_EQ(mat1, mat2) \ argument 495 ((mat1)->rows == (mat2)->rows && (mat1)->cols == (mat2)->cols)
|
/external/autotest/client/site_tests/graphics_SanAngeles/src/ |
D | matrixop.c | 20 void Matrix4x4_Multiply(Matrix4x4 result, Matrix4x4 mat1, Matrix4x4 mat2) in Matrix4x4_Multiply() argument 29 tmp[i*4 + j] += mat1[i*4 + k] * mat2[k*4 + j]; in Matrix4x4_Multiply()
|
D | matrixop.h | 16 Matrix4x4 mat1, Matrix4x4 mat2);
|
/external/clang/test/Sema/ |
D | array-init.c | 256 const Matrix mat1 = { in test_matrix() local
|
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
D | IncompleteLUT.h | 225 SparseMatrix<Scalar,ColMajor, Index> mat1 = amat; in analyzePattern() local 230 SparseMatrix<Scalar,ColMajor, Index> AtA = mat2 + mat1; in analyzePattern()
|
/external/opencv3/modules/imgproc/src/ |
D | histogram.cpp | 2920 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins); in cvCompareHist() local 2925 …if( mat1->heap->active_count > mat2->heap->active_count && method != CV_COMP_CHISQR && method != C… in cvCompareHist() 2928 CV_SWAP( mat1, mat2, t ); in cvCompareHist() 2933 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); in cvCompareHist() 2936 double v1 = *(float*)CV_NODE_VAL(mat1,node1); in cvCompareHist() 2937 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1), 0, 0, &node1->hashval ); in cvCompareHist() 2952 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); in cvCompareHist() 2955 double v1 = *(float*)CV_NODE_VAL(mat1,node1); in cvCompareHist() 2956 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1), in cvCompareHist() 2981 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); in cvCompareHist() [all …]
|