/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
Affine2Test.java | 39 Matrix3 mat1 = new Matrix3(); local 45 checkEqual(mat1, new float[] {1, 0, 0, 0, 1, 0, 0, 0, 1}); 46 checkEqual(mat1, mat2.idt()); 47 checkEqual(mat1, afn1); 48 checkEqual(mat1, afn1.idt()); 51 mat1.setToTranslation(trn); 52 checkEqual(mat1, new float[] {1, 0, 0, 0, 1, 0, trn.x, trn.y, 1}); 54 checkEqual(mat1, afn1); 57 mat1.setToScaling(scl); 58 checkEqual(mat1, new float[] {scl.x, 0, 0, 0, scl.y, 0, 0, 0, 1}) [all...] |
MatrixJNITest.java | 29 Matrix4 mat1 = new Matrix4();
local 36 mat1.setToRotation(0, 1, 0, 45);
39 vec.mul(mat1);
40 Matrix4.mulVec(mat1.val, fvec);
41 Matrix4.mulVec(mat1.val, fvecs, 0, 3, 5);
45 vec.prj(mat1);
46 Matrix4.prj(mat1.val, fvec);
47 Matrix4.prj(mat1.val, fvecs, 0, 3, 5);
51 vec.rot(mat1);
52 Matrix4.rot(mat1.val, fvec); [all...] |
/external/vixl/examples/ |
neon-matrix-multiply.cc | 61 // mat1 -> x1 117 float mat1[kLength], mat2[kLength], output[kLength]; local 124 // float mat1[kLength] = { 1.0f, 52.03f, 4.43f, ... }; 127 mat1[0] = 1.0f; mat1[4] = 2.0f; mat1[ 8] = 3.0f; mat1[12] = 4.0f; 128 mat1[1] = 52.03f; mat1[5] = 12.24f; mat1[ 9] = 53.56f; mat1[13] = 22.22f [all...] |
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
IncompleteLUT.h | 225 SparseMatrix<Scalar,ColMajor, Index> mat1 = amat; local 228 // FIXME for a matrix with nearly symmetric pattern, mat2+mat1 is the appropriate choice. 229 // on the other hand for a really non-symmetric pattern, mat2*mat1 should be prefered... 230 SparseMatrix<Scalar,ColMajor, Index> AtA = mat2 + mat1;
|
/external/opencv/cv/src/ |
cvaccum.cpp | 594 CvMat stub1, *mat1 = (CvMat*)arrA; local 605 CV_CALL( mat1 = cvGetMat( mat1, &stub1, &coi1 )); 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 )) 621 size = cvGetMatSize( mat1 ); 622 type = CV_MAT_TYPE( mat1->type ); 624 mat1_step = mat1->step; 637 if( CV_IS_MAT_CONT( mat1->type & mat2->type & sum->type ) [all...] |
cvhistogram.cpp | 513 CvSparseMat* mat1 = (CvSparseMat*)(hist1->bins); local 518 if( mat1->heap->active_count > mat2->heap->active_count ) 521 CV_SWAP( mat1, mat2, t ); 527 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); 530 double v1 = *(float*)CV_NODE_VAL(mat1,node1); 531 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1), 0, 0, &node1->hashval ); 548 if( !cvPtrND( mat1, CV_NODE_IDX(mat2,node2), 0, 0, &node2->hashval )) 559 for( node1 = cvInitSparseMatIterator( mat1, &iterator ); 562 double v1 = *(float*)CV_NODE_VAL(mat1,node1); 563 uchar* node2_data = cvPtrND( mat2, CV_NODE_IDX(mat1,node1) [all...] |
/external/opencv/cxcore/src/ |
cxnorm.cpp | 979 CvMat stub1, *mat1 = (CvMat*)imgB; local [all...] |
cxcopy.cpp | 712 CvSparseMat* mat1 = (CvSparseMat*)mat; local 713 cvClearSet( mat1->heap ); 714 if( mat1->hashtable ) 715 memset( mat1->hashtable, 0, mat1->hashsize*sizeof(mat1->hashtable[0])); [all...] |
/external/eigen/test/ |
ref.cpp | 105 MatrixType mat1 = MatrixType::Random(size,size), local 106 mat2 = mat1, 137 RefMatWithStride rm5 = mat1.row(i).transpose(); 138 VERIFY_IS_EQUAL(rm5, mat1.row(i).transpose()); 141 VERIFY_IS_EQUAL(mat1, mat2); 144 VERIFY_IS_APPROX(mat1, mat2);
|
/external/opencv3/modules/cudaarithm/test/ |
test_element_operations.cpp | 80 cv::Mat mat1 = randomMat(size, stype); local 88 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second); 99 cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, cv::cuda::GpuMat(), depth.second); 102 cv::add(mat1, mat2, dst_gold, cv::noArray(), depth.second); 141 cv::Mat mat1 = randomMat(size, stype); local 150 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second); 161 cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, loadMat(mask, useRoi), depth.second); 164 cv::add(mat1, mat2, dst_gold, mask, depth.second); 383 cv::Mat mat1 = randomMat(size, stype); local 391 cv::cuda::subtract(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second) 444 cv::Mat mat1 = randomMat(size, stype); local 686 cv::Mat mat1 = randomMat(size, stype); local 715 cv::Mat mat1 = randomMat(size, stype); local 771 cv::Mat mat1 = randomMat(size, CV_8UC4); local 808 cv::Mat mat1 = randomMat(size, CV_16SC4); local 1053 cv::Mat mat1 = randomMat(size, stype); local 1082 cv::Mat mat1 = randomMat(size, stype); local 1138 cv::Mat mat1 = randomMat(size, CV_8UC4); local 1175 cv::Mat mat1 = randomMat(size, CV_16SC4); local [all...] |
/external/vixl/test/examples/ |
test-examples.cc | 259 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; local 263 mat1[0] = 1.0f; mat1[4] = 2.0f; mat1[ 8] = 3.0f; mat1[12] = 4.0f; 264 mat1[1] = 52.03f; mat1[5] = 12.24f; mat1[ 9] = 53.56f; mat1[13] = 22.22f; 265 mat1[2] = 4.43f; mat1[6] = 5.00f; mat1[10] = 7.00f; mat1[14] = 3.11f [all...] |
/libcore/luni/src/test/java/libcore/java/util/regex/ |
OldMatcherTest.java | 207 Matcher mat1 = pat.matcher(testString1); local 210 assertFalse("Should not find given pattern in 1 string", mat1.lookingAt()); 211 mat1.region(1, 10); 212 assertTrue("Should find given pattern in region of string", mat1.lookingAt());
|
/external/clang/test/Sema/ |
array-init.c | 256 const Matrix mat1 = { local
|
/external/opencv3/modules/imgproc/test/ |
test_imgwarp.cpp | 1427 cv::Mat mat1 = Mat::zeros(3, 1, CV_32SC2); local 1447 cv::Mat mat1 = Mat::zeros(2, 1, CV_32SC3); local [all...] |