Go to the documentation of this file.
21 #define MINDENSITY 0.0004
30 for (int _j=0; _j<NBTRIES; ++_j) { \
32 for (int _k=0; _k<REPEAT; ++_k) { \
36 int main(
int argc,
char *argv[])
55 std::cout <<
" Eigen dense:\t" <<
timer.
value() << endl;
59 std::cout <<
"Non zeros: " << sm1.nonZeros()/
float(sm1.rows()*sm1.cols())*100 <<
"%\n";
63 BENCH(
for (
int k=0; k<
REPEAT; ++k) sm3 = sm1.transpose();)
64 std::cout <<
" Eigen:\t" <<
timer.
value() << endl;
74 std::cout <<
" CSparse:\t" <<
timer.
value() << endl;
85 std::cout <<
" GMM:\t\t" <<
timer.
value() << endl;
95 std::cout <<
" MTL4:\t\t" <<
timer.
value() << endl;
mtl::compressed2D< Scalar, mtl::matrix::parameters< mtl::tag::col_major > > MtlSparse
void eiToDense(const EigenSparseMatrix &src, DenseMatrix &dst)
void fillMatrix(float density, int rows, int cols, EigenSparseMatrix &dst)
int EIGEN_BLAS_FUNC() copy(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
void eiToMtl(const EigenSparseMatrix &src, MtlSparse &dst)
double value(int TIMER=CPU_TIMER) const
gmm::col_matrix< gmm::wsvector< Scalar > > GmmDynSparse
static const DiscreteKey m3(M(3), 2)
gmm::csc_matrix< Scalar > GmmSparse
Matrix< Scalar, Dynamic, Dynamic > DenseMatrix
int main(int argc, char *argv[])
void eiToGmm(const EigenSparseMatrix &src, GmmSparse &dst)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:24