![]() |
|
#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 | SIZE 1024 |
#define | DENSITY 0.01 |
#define | SCALAR double |
Typedefs | |
typedef SCALAR | Scalar |
typedef Matrix< Scalar, Dynamic, Dynamic > | DenseMatrix |
typedef Matrix< Scalar, Dynamic, 1 > | DenseVector |
typedef SparseMatrix< Scalar > | EigenSparseMatrix |
typedef gmm::csc_matrix< Scalar > | GmmSparse |
typedef gmm::col_matrix< gmm::wsvector< Scalar > > | GmmDynSparse |
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 boost::numeric::ublas::compressed_matrix< Scalar, boost::numeric::ublas::column_major > | UBlasSparse |
Functions | |
void | fillMatrix (float density, int rows, int cols, EigenSparseMatrix &dst) |
void | fillMatrix2 (int nnzPerCol, int rows, int cols, EigenSparseMatrix &dst) |
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) |
#define DENSITY 0.01 |
#define SCALAR double |
#define SIZE 1024 |
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 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 |
void eiToDense | ( | const EigenSparseMatrix & | src, |
DenseMatrix & | dst | ||
) |
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::cols(), Eigen::SparseMatrixBase< Derived >::derived(), j, and Eigen::PlainObjectBase< Derived >::setZero().
Referenced by main().
void eiToGmm | ( | const EigenSparseMatrix & | src, |
GmmSparse & | dst | ||
) |
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::cols(), copy(), Eigen::SparseMatrixBase< Derived >::derived(), j, Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::rows(), and tmp.
Referenced by __attribute__(), and main().
void eiToMtl | ( | const EigenSparseMatrix & | src, |
MtlSparse & | dst | ||
) |
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::cols(), Eigen::SparseMatrixBase< Derived >::derived(), and j.
Referenced by main().
void eiToUblas | ( | const EigenSparseMatrix & | src, |
UBlasSparse & | dst | ||
) |
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::cols(), Eigen::SparseMatrixBase< Derived >::derived(), j, and Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::rows().
Referenced by main().
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 | ||
) |