#include <Eigen/Sparse>
#include <bench/BenchTimer.h>
#include <set>
#include "gmm/gmm.h"
#include <boost/numeric/mtl/mtl.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/ublas/vector_sparse.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/vector_of_vector.hpp>
#include <boost/numeric/ublas/operation.hpp>
Go to the source code of this file.
Macros | |
#define | DENSITY 0.01 |
#define | SCALAR double |
#define | SIZE 1024 |
Typedefs | |
typedef Matrix< Scalar, Dynamic, Dynamic > | DenseMatrix |
typedef Matrix< Scalar, Dynamic, 1 > | DenseVector |
typedef SparseMatrix< Scalar > | EigenSparseMatrix |
typedef gmm::col_matrix< gmm::wsvector< Scalar > > | GmmDynSparse |
typedef gmm::csc_matrix< Scalar > | GmmSparse |
typedef mtl::compressed2D< Scalar, mtl::matrix::parameters< mtl::tag::col_major > > | MtlSparse |
typedef mtl::compressed2D< Scalar, mtl::matrix::parameters< mtl::tag::row_major > > | MtlSparseRowMajor |
typedef SCALAR | Scalar |
typedef boost::numeric::ublas::compressed_matrix< Scalar, boost::numeric::ublas::column_major > | UBlasSparse |
Functions | |
void | eiToDense (const EigenSparseMatrix &src, DenseMatrix &dst) |
void | eiToGmm (const EigenSparseMatrix &src, GmmSparse &dst) |
void | eiToMtl (const EigenSparseMatrix &src, MtlSparse &dst) |
void | eiToUblas (const EigenSparseMatrix &src, UBlasSparse &dst) |
template<typename EigenType , typename UblasType > | |
void | eiToUblasVec (const EigenType &src, UblasType &dst) |
void | fillMatrix (float density, int rows, int cols, EigenSparseMatrix &dst) |
void | fillMatrix2 (int nnzPerCol, int rows, int cols, EigenSparseMatrix &dst) |
#define DENSITY 0.01 |
Definition at line 15 of file BenchSparseUtil.h.
#define SCALAR double |
Definition at line 19 of file BenchSparseUtil.h.
#define SIZE 1024 |
Definition at line 11 of file BenchSparseUtil.h.
typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix |
Definition at line 23 of file BenchSparseUtil.h.
typedef Matrix<Scalar,Dynamic,1> DenseVector |
Definition at line 24 of file BenchSparseUtil.h.
typedef SparseMatrix<Scalar> EigenSparseMatrix |
Definition at line 25 of file BenchSparseUtil.h.
typedef gmm::col_matrix< gmm::wsvector<Scalar> > GmmDynSparse |
Definition at line 73 of file BenchSparseUtil.h.
Definition at line 72 of file BenchSparseUtil.h.
typedef mtl::compressed2D<Scalar, mtl::matrix::parameters<mtl::tag::col_major> > MtlSparse |
Definition at line 86 of file BenchSparseUtil.h.
typedef mtl::compressed2D<Scalar, mtl::matrix::parameters<mtl::tag::row_major> > MtlSparseRowMajor |
Definition at line 87 of file BenchSparseUtil.h.
Definition at line 22 of file BenchSparseUtil.h.
typedef boost::numeric::ublas::compressed_matrix<Scalar,boost::numeric::ublas::column_major> UBlasSparse |
Definition at line 126 of file BenchSparseUtil.h.
void eiToDense | ( | const EigenSparseMatrix & | src, |
DenseMatrix & | dst | ||
) |
Definition at line 62 of file BenchSparseUtil.h.
void eiToGmm | ( | const EigenSparseMatrix & | src, |
GmmSparse & | dst | ||
) |
Definition at line 74 of file BenchSparseUtil.h.
void eiToMtl | ( | const EigenSparseMatrix & | src, |
MtlSparse & | dst | ||
) |
Definition at line 88 of file BenchSparseUtil.h.
void eiToUblas | ( | const EigenSparseMatrix & | src, |
UBlasSparse & | dst | ||
) |
Definition at line 128 of file BenchSparseUtil.h.
void eiToUblasVec | ( | const EigenType & | src, |
UblasType & | dst | ||
) |
Definition at line 137 of file BenchSparseUtil.h.
void fillMatrix | ( | float | density, |
int | rows, | ||
int | cols, | ||
EigenSparseMatrix & | dst | ||
) |
Definition at line 27 of file BenchSparseUtil.h.
void fillMatrix2 | ( | int | nnzPerCol, |
int | rows, | ||
int | cols, | ||
EigenSparseMatrix & | dst | ||
) |
Definition at line 42 of file BenchSparseUtil.h.