Home
last modified time | relevance | path

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

12

/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 dm2 = sm1 + dm1;
260 dm2 = dm1 - sm1;
262 …is better performed in two steps. For instance, instead of doing <tt>dm2 = sm1 + dm1</tt>, better …
265 dm2 += sm1;
272 sm1 = sm2.transpose();
[all …]
/external/libcxx/test/std/re/re.submatch/re.submatch.op/
Dcompare.pass.cpp226 sub_match sm1; in test() local
227 sm1.first = x.begin(); in test()
228 sm1.second = x.end(); in test()
229 sm1.matched = true; 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()
239 assert((sm1 >= sm2) == (x >= y)); in test()
[all …]
/external/u-boot/drivers/power/
Dtps6586x.c87 static int read_voltages(int *sm0, int *sm1) in read_voltages() argument
104 *sm1 = tps6586x_read(is_v2 ? SM1_VOLTAGE_V2 : SM1_VOLTAGE_V1); in read_voltages()
105 if (*sm0 == -1 || *sm1 == -1) in read_voltages()
171 int sm0, sm1; in tps6586x_adjust_sm0_sm1() local
177 if (read_voltages(&sm0, &sm1)) { in tps6586x_adjust_sm0_sm1()
188 if (min_sm0_over_sm1 != -1 && sm0 < sm1 + min_sm0_over_sm1) { in tps6586x_adjust_sm0_sm1()
190 __func__, sm0, sm1, min_sm0_over_sm1); in tps6586x_adjust_sm0_sm1()
214 while (!bad && (sm0 != sm0_target || sm1 != sm1_target)) { in tps6586x_adjust_sm0_sm1()
217 debug("%d-%d %d-%d ", sm0, sm0_target, sm1, sm1_target); in tps6586x_adjust_sm0_sm1()
225 if (sm1 < sm1_target) in tps6586x_adjust_sm0_sm1()
[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.cpp333 SparseMatrixType sm1(3,2); in sparse_product_regression_test() local
335 sm1.setZero(); in sparse_product_regression_test()
338 DenseMatrixType m3 = sm1*m2; in sparse_product_regression_test()
/external/libvpx/libvpx/vp8/common/mips/dspr2/
Dvp8_loopfilter_filters_dspr2.c308 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_horizontal_edge_mips() local
325 sm1 = s - (p << 2); in vp8_loop_filter_horizontal_edge_mips()
346 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
367 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
388 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
409 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
430 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
451 sm1 += 4; in vp8_loop_filter_horizontal_edge_mips()
472 pm1 = *((uint32_t *)(sm1)); in vp8_loop_filter_horizontal_edge_mips()
501 unsigned char *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vp8_loop_filter_uvhorizontal_edge_mips() local
[all …]
/external/libvpx/libvpx/vpx_dsp/mips/
Dloopfilter_filters_dspr2.c29 uint8_t *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in vpx_lpf_horizontal_4_dspr2() local
53 sm1 = s - (pitch << 2); in vpx_lpf_horizontal_4_dspr2()
54 s0 = sm1 + pitch; in vpx_lpf_horizontal_4_dspr2()
81 : [sm1] "r"(sm1), [s0] "r"(s0), [s5] "r"(s5), [s6] "r"(s6)); in vpx_lpf_horizontal_4_dspr2()
/external/libaom/libaom/aom_dsp/mips/
Dloopfilter_filters_dspr2.c31 uint8_t *sm1, *s0, *s1, *s2, *s3, *s4, *s5, *s6; in aom_lpf_horizontal_4_dspr2() local
55 sm1 = s - (pitch << 2); in aom_lpf_horizontal_4_dspr2()
56 s0 = sm1 + pitch; in aom_lpf_horizontal_4_dspr2()
83 : [sm1] "r"(sm1), [s0] "r"(s0), [s5] "r"(s5), [s6] "r"(s6)); in aom_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()
/external/tensorflow/tensorflow/python/summary/
Dsummary_test.py65 sm1, sm2 = s.run([im1, im2])
68 summary.ParseFromString(sm1)
/external/u-boot/arch/arm/dts/
Dtegra20-tamonten.dtsi345 vin-sm1-supply = <&sys_reg>;
366 sm1 {
Dtegra20-paz00.dts348 vin-sm1-supply = <&sys_reg>;
369 sm1 {
Dtegra20-ventana.dts430 vin-sm1-supply = <&sys_reg>;
451 sm1 {
Dtegra20-harmony.dts360 vin-sm1-supply = <&sys_reg>;
381 sm1 {
Dtegra20-seaboard.dts475 vin-sm1-supply = <&sys_reg>;
496 sm1 {

12