Lines Matching refs:sm1
104 EigenSparseMatrix sm1(rows,cols), sm2(rows,cols), sm3(rows,cols), sm4(rows,cols);
109 sm1.setZero();
111 fillMatrix2(nnzPerCol, rows, cols, sm1);
120 eiToDense(sm1, m1);
155 std::cout << "Eigen sparse\t" << sm1.nonZeros()/(float(sm1.rows())*float(sm1.cols()))*100 << "% * "
158 BENCH(sm3 = sm1 * sm2; )
161 // BENCH(sm3 = sm1.transpose() * sm2; )
164 // BENCH(sm3 = sm1.transpose() * sm2.transpose(); )
167 // BENCH(sm3 = sm1 * sm2.transpose(); )
173 // BENCH( sm3._experimentalNewProduct(sm1, sm2); )
176 // BENCH(sm3._experimentalNewProduct(sm1.transpose(),sm2); )
179 // BENCH(sm3._experimentalNewProduct(sm1.transpose(),sm2.transpose()); )
182 // BENCH(sm3._experimentalNewProduct(sm1, sm2.transpose());)
188 DynamicSparseMatrix<Scalar> m1(sm1), m2(sm2), m3(sm3);
202 // EigenSparseMatrix sm4 = sm1.transpose();
203 // std::cout << sm4.nonZeros() << " == " << sm1.nonZeros() << "\n";
206 // std::cout << sm1 << "\n\n" << sm1.transpose() << "\n\n" << sm4.transpose() << "\n\n";
229 eiToCSparse(sm1, m1);
255 eiToUblas(sm1, m1);
269 eiToGmm(sm1, m1);
299 eiToMtl(sm1, m1);