Macros | Typedefs | Functions
BenchSparseUtil.h File Reference
#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>
Include dependency graph for BenchSparseUtil.h:
This graph shows which files directly or indirectly include this file:

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< ScalarEigenSparseMatrix
 
typedef gmm::col_matrix< gmm::wsvector< Scalar > > GmmDynSparse
 
typedef gmm::csc_matrix< ScalarGmmSparse
 
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)
 

Macro Definition Documentation

◆ DENSITY

#define DENSITY   0.01

Definition at line 15 of file BenchSparseUtil.h.

◆ SCALAR

#define SCALAR   double

Definition at line 19 of file BenchSparseUtil.h.

◆ SIZE

#define SIZE   1024

Definition at line 11 of file BenchSparseUtil.h.

Typedef Documentation

◆ DenseMatrix

typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix

Definition at line 23 of file BenchSparseUtil.h.

◆ DenseVector

typedef Matrix<Scalar,Dynamic,1> DenseVector

Definition at line 24 of file BenchSparseUtil.h.

◆ EigenSparseMatrix

Definition at line 25 of file BenchSparseUtil.h.

◆ GmmDynSparse

typedef gmm::col_matrix< gmm::wsvector<Scalar> > GmmDynSparse

Definition at line 73 of file BenchSparseUtil.h.

◆ GmmSparse

typedef gmm::csc_matrix<Scalar> GmmSparse

Definition at line 72 of file BenchSparseUtil.h.

◆ MtlSparse

typedef mtl::compressed2D<Scalar, mtl::matrix::parameters<mtl::tag::col_major> > MtlSparse

Definition at line 86 of file BenchSparseUtil.h.

◆ MtlSparseRowMajor

typedef mtl::compressed2D<Scalar, mtl::matrix::parameters<mtl::tag::row_major> > MtlSparseRowMajor

Definition at line 87 of file BenchSparseUtil.h.

◆ Scalar

typedef SCALAR Scalar

Definition at line 22 of file BenchSparseUtil.h.

◆ UBlasSparse

typedef boost::numeric::ublas::compressed_matrix<Scalar,boost::numeric::ublas::column_major> UBlasSparse

Definition at line 126 of file BenchSparseUtil.h.

Function Documentation

◆ eiToDense()

void eiToDense ( const EigenSparseMatrix src,
DenseMatrix dst 
)

Definition at line 62 of file BenchSparseUtil.h.

◆ eiToGmm()

void eiToGmm ( const EigenSparseMatrix src,
GmmSparse dst 
)

Definition at line 74 of file BenchSparseUtil.h.

◆ eiToMtl()

void eiToMtl ( const EigenSparseMatrix src,
MtlSparse dst 
)

Definition at line 88 of file BenchSparseUtil.h.

◆ eiToUblas()

void eiToUblas ( const EigenSparseMatrix src,
UBlasSparse dst 
)

Definition at line 128 of file BenchSparseUtil.h.

◆ eiToUblasVec()

template<typename EigenType , typename UblasType >
void eiToUblasVec ( const EigenType &  src,
UblasType &  dst 
)

Definition at line 137 of file BenchSparseUtil.h.

◆ fillMatrix()

void fillMatrix ( float  density,
int  rows,
int  cols,
EigenSparseMatrix dst 
)

Definition at line 27 of file BenchSparseUtil.h.

◆ fillMatrix2()

void fillMatrix2 ( int  nnzPerCol,
int  rows,
int  cols,
EigenSparseMatrix dst 
)

Definition at line 42 of file BenchSparseUtil.h.



gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:27