Home
last modified time | relevance | path

Searched refs:sm1 (Results 1 – 19 of 19) sorted by relevance

/external/libcxx/test/re/re.submatch/re.submatch.op/
Dcompare.pass.cpp225 sub_match sm1; in test() local
226 sm1.first = x.begin(); in test()
227 sm1.second = x.end(); in test()
228 sm1.matched = true; in test()
233 assert((sm1 == sm2) == (x == y)); in test()
234 assert((sm1 != sm2) == (x != y)); in test()
235 assert((sm1 < sm2) == (x < y)); in test()
236 assert((sm1 > sm2) == (x > y)); in test()
237 assert((sm1 <= sm2) == (x <= y)); in test()
238 assert((sm1 >= sm2) == (x >= y)); in test()
[all …]
/external/eigen/doc/
DSparseQuickReference.dox16 SparseMatrix<double> sm1(1000,1000);
24 sm1.resize(m,n); //Change sm1 to a m x n matrix.
25 sm1.reserve(nnz); // Allocate room for nnz nonzeros elements.
34 SparseMatrix<double,Colmajor> sm1;
35 // Initialize sm2 with sm1.
36 SparseMatrix<double,Rowmajor> sm2(sm1), sm3;
38 sm3 = sm1;
48 sm1.insert(i, j) = v_ij;
51 sm1.coeffRef(i,j) = v_ij;
52 sm1.coeffRef(i,j) += v_ij;
[all …]
DTutorialSparse.dox241 sm1.real() sm1.imag() -sm1 0.5*sm1
242 sm1+sm2 sm1-sm2 sm1.cwiseProduct(sm2)
246 sm4 = sm1 + sm2 + sm3;
248 sm1, sm2, and sm3 must all be row-major or all column major.
258 sm2 = sm1.cwiseProduct(dm1);
259 dm1 += sm1;
262 However, it is not yet possible to add a sparse and a dense matrix as in <tt>dm2 = sm1 + dm1</tt>.
263 Please write this as the equivalent <tt>dm2 = dm1; dm2 += sm1</tt> (we plan to lift this restriction
268 sm1 = sm2.transpose();
269 sm1 = sm2.adjoint();
[all …]
/external/eigen/bench/
Dsparse_randomsetter.cpp45 void dostuff(const char* name, EigenSparseMatrix& sm1) in dostuff() argument
47 int rows = sm1.rows(); in dostuff()
48 int cols = sm1.cols(); in dostuff()
49 sm1.setZero(); in dostuff()
51 SetterType* set1 = new SetterType(sm1); in dostuff()
71 EigenSparseMatrix sm1(rows,cols), sm2(rows,cols); in main() local
88 dostuff<RandomSetter<EigenSparseMatrix,StdMapTraits,Bits> >("std::map ", sm1); in main()
89 dostuff<RandomSetter<EigenSparseMatrix,GnuHashMapTraits,Bits> >("gnu::hash_map", sm1); in main()
90 dostuff<RandomSetter<EigenSparseMatrix,GoogleDenseHashMapTraits,Bits> >("google::dense", sm1); in main()
91 dostuff<RandomSetter<EigenSparseMatrix,GoogleSparseHashMapTraits,Bits> >("google::sparse", sm1); in main()
Dsparse_transpose.cpp42 EigenSparseMatrix sm1(rows,cols), sm3(rows,cols); in main() local
47 fillMatrix(density, rows, cols, sm1); in main()
53 eiToDense(sm1, m1); in main()
59 std::cout << "Non zeros: " << sm1.nonZeros()/float(sm1.rows()*sm1.cols())*100 << "%\n"; in main()
63 BENCH(for (int k=0; k<REPEAT; ++k) sm3 = sm1.transpose();) in main()
71 eiToCSparse(sm1, m1); in main()
83 eiToGmm(sm1, m1); in main()
93 eiToMtl(sm1, m1); in main()
Dsparse_product.cpp104 EigenSparseMatrix sm1(rows,cols), sm2(rows,cols), sm3(rows,cols), sm4(rows,cols); in main() local
109 sm1.setZero(); in main()
111 fillMatrix2(nnzPerCol, rows, cols, sm1); in main()
120 eiToDense(sm1, m1); in main()
155 …std::cout << "Eigen sparse\t" << sm1.nonZeros()/(float(sm1.rows())*float(sm1.cols()))*100 << "% * " in main()
158 BENCH(sm3 = sm1 * sm2; ) in main()
229 eiToCSparse(sm1, m1); in main()
255 eiToUblas(sm1, m1); in main()
269 eiToGmm(sm1, m1); in main()
299 eiToMtl(sm1, m1); in main()
Dsparse_dense_product.cpp58 EigenSparseMatrix sm1(rows,cols); in main() local
66 fillMatrix2(7, rows, cols, sm1); in main()
73 eiToDense(sm1, m1); in main()
93 std::cout << "Eigen sparse\t" << sm1.nonZeros()/float(sm1.rows()*sm1.cols())*100 << "%\n"; in main()
95 BENCH(asm("#myc"); v2 = sm1 * v1; asm("#myd");) in main()
99 BENCH( { asm("#mya"); v2 = sm1.transpose() * v1; asm("#myb"); }) in main()
121 eiToGmm(sm1, m1); in main()
139 eiToUblas(sm1, m1); in main()
162 eiToMtl(sm1, m1); in main()
Dsparse_cholesky.cpp64 void doEigen(const char* name, const EigenSparseSelfAdjointMatrix& sm1, int flags = 0) in doEigen() argument
69 SparseLLT<EigenSparseSelfAdjointMatrix,Backend> chol(sm1, flags); in doEigen()
73 std::cout << " nnz: " << sm1.nonZeros() << " => " << chol.matrixL().nonZeros() << "\n"; in doEigen()
92 EigenSparseSelfAdjointMatrix sm1(rows, cols); in main() local
94 fillSpdMatrix(density, rows, cols, sm1); in main()
104 eiToDense(sm1, m1); in main()
127 doEigen<Eigen::DefaultBackend>("Eigen/Sparse", sm1, Eigen::IncompleteFactorization); in main()
130 doEigen<Eigen::Cholmod>("Eigen/Cholmod", sm1, Eigen::IncompleteFactorization); in main()
134 doEigen<Eigen::Taucs>("Eigen/Taucs", sm1, Eigen::IncompleteFactorization); in main()
140 taucs_ccs_matrix A = sm1.asTaucsMatrix(); in main()
[all …]
Dsparse_lu.cpp46 void doEigen(const char* name, const EigenSparseMatrix& sm1, const VectorX& b, VectorX& x, int flag… in doEigen() argument
50 SparseLU<EigenSparseMatrix,Backend> lu(sm1, flags); in doEigen()
87 EigenSparseMatrix sm1(rows, cols); in main() local
88 fillMatrix(density, rows, cols, sm1); in main()
97 eiToDense(sm1, m1); in main()
117 doEigen<Eigen::UmfPack>("Eigen/UmfPack (auto)", sm1, b, x, 0); in main()
122 doEigen<Eigen::SuperLU>("Eigen/SuperLU (nat)", sm1, b, x, Eigen::NaturalOrdering); in main()
125 doEigen<Eigen::SuperLU>("Eigen/SuperLU (COLAMD)", sm1, b, x, Eigen::ColApproxMinimumDegree); in main()
Dsparse_trisolver.cpp63 EigenSparseTriMatrix sm1(rows,cols); in main() local
72 EigenSparseTriMatrix sm1(rows, cols); in main() local
73 fillMatrix(density, rows, cols, sm1); in main()
83 eiToDense(sm1, m1); in main()
99 EigenSparseTriMatrixRow sm2 = sm1; in main()
101 BENCH(x = sm1.solveTriangular(b);) in main()
127 eiToCSparse(sm1, m1); in main()
140 eiToGmm(sm1, m1); in main()
165 eiToMtl(sm1, m1); in main()
/external/eigen/test/
Dbasicstuff.cpp33 SquareMatrixType sm1 = SquareMatrixType::Random(rows,rows), sm2(rows,rows); in basicStuff() local
112 sm2.col(i) = sm1.row(i); in basicStuff()
113 VERIFY_IS_APPROX(sm2,sm1.transpose()); in basicStuff()
117 sm2.col(i).noalias() = sm1.row(i); in basicStuff()
118 VERIFY_IS_APPROX(sm2,sm1.transpose()); in basicStuff()
122 sm2.col(i).noalias() += sm1.row(i); in basicStuff()
123 VERIFY_IS_APPROX(sm2,sm1.transpose()); in basicStuff()
127 sm2.col(i).noalias() -= sm1.row(i); in basicStuff()
128 VERIFY_IS_APPROX(sm2,-sm1.transpose()); in basicStuff()
Dsparse_product.cpp224 SparseMatrixType sm1(3,2); in sparse_product_regression_test() local
226 sm1.setZero(); in sparse_product_regression_test()
229 DenseMatrixType m3 = sm1*m2; in sparse_product_regression_test()
/external/libvpx/libvpx/vp8/common/mips/dspr2/
Dloopfilter_filters_dspr2.c356 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_horizontal_edge_mips() local
372 sm1 = s - (p << 2); in vp8_loop_filter_horizontal_edge_mips()
395 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
417 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
440 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
462 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
485 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
507 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
530 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
566 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_uvhorizontal_edge_mips() local
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/mips/dspr2/
Dloopfilter_filters_dspr2.c356 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_horizontal_edge_mips() local
372 sm1 = s - (p << 2); in vp8_loop_filter_horizontal_edge_mips()
395 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
417 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
440 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
462 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
485 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
507 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
530 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
566 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_uvhorizontal_edge_mips() local
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/mips/dspr2/
Dvp9_loopfilter_filters_dspr2.c33 uint8_t *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp9_lpf_horizontal_4_dspr2() local
58 sm1 = s - (pitch << 2); in vp9_lpf_horizontal_4_dspr2()
59 s0 = sm1 + pitch; in vp9_lpf_horizontal_4_dspr2()
88 : [sm1] "r" (sm1), [s0] "r" (s0), [s5] "r" (s5), [s6] "r" (s6) in vp9_lpf_horizontal_4_dspr2()
/external/libvpx/libvpx/vp9/common/mips/dspr2/
Dvp9_loopfilter_filters_dspr2.c33 uint8_t *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp9_lpf_horizontal_4_dspr2() local
58 sm1 = s - (pitch << 2); in vp9_lpf_horizontal_4_dspr2()
59 s0 = sm1 + pitch; in vp9_lpf_horizontal_4_dspr2()
88 : [sm1] "r" (sm1), [s0] "r" (s0), [s5] "r" (s5), [s6] "r" (s6) in vp9_lpf_horizontal_4_dspr2()
/external/libhevc/common/x86/
Dihevc_chroma_intra_pred_filters_ssse3_intr.c1175 __m128i row_4x32b, two_nt_4x32b, ref_main_idx_4x32b, res_temp5_4x32b, sm1; in ihevc_intra_pred_chroma_mode_3_to_9_ssse3() local
1184 sm1 = _mm_load_si128((__m128i *)&IHEVCE_SHUFFLEMASKY7[0]); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1301 src_temp1_8x16b = _mm_shuffle_epi8(src_temp1_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1302 src_temp2_8x16b = _mm_shuffle_epi8(src_temp2_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1303 src_temp3_8x16b = _mm_shuffle_epi8(src_temp3_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1304 src_temp4_8x16b = _mm_shuffle_epi8(src_temp4_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1487 src_temp1_8x16b = _mm_shuffle_epi8(src_temp1_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1488 src_temp2_8x16b = _mm_shuffle_epi8(src_temp2_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1489 src_temp3_8x16b = _mm_shuffle_epi8(src_temp3_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
1490 src_temp4_8x16b = _mm_shuffle_epi8(src_temp4_8x16b, sm1); in ihevc_intra_pred_chroma_mode_3_to_9_ssse3()
[all …]
Dihevc_intra_pred_filters_ssse3_intr.c1183 __m128i sm1 = _mm_load_si128((__m128i *)&IHEVCE_SHUFFLEMASK4[0]); in ihevc_intra_pred_luma_dc_ssse3() local
1231 src_temp2 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_ssse3()
1232 src_temp3 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_ssse3()
1233 src_temp4 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_ssse3()
1889 __m128i sm1, sm2, sm3; in ihevc_intra_pred_luma_mode2_ssse3() local
1894 sm1 = _mm_load_si128((__m128i *)&IHEVCE_SHUFFLEMASKY1[0]); in ihevc_intra_pred_luma_mode2_ssse3()
1911 src_temp4 = _mm_shuffle_epi8(src_temp4, sm1); in ihevc_intra_pred_luma_mode2_ssse3()
1912 src_temp3 = _mm_shuffle_epi8(src_temp3, sm1); in ihevc_intra_pred_luma_mode2_ssse3()
1913 src_temp2 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_mode2_ssse3()
1914 src_temp1 = _mm_shuffle_epi8(src_temp1, sm1); in ihevc_intra_pred_luma_mode2_ssse3()
Dihevc_intra_pred_filters_sse42_intr.c525 __m128i sm1 = _mm_loadu_si128((__m128i *)&IHEVCE_SHUFFLEMASK4[0]); in ihevc_intra_pred_luma_dc_sse42() local
581 src_temp2 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_sse42()
582 src_temp3 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_sse42()
583 src_temp4 = _mm_shuffle_epi8(src_temp2, sm1); in ihevc_intra_pred_luma_dc_sse42()