35 BenchTimer t_llt, t_ldlt, t_lu, t_fplu, t_qr, t_cpqr, t_cod, t_fpqr, t_jsvd, t_bdcsvd;
38 int rep = 1000 /
size;
39 if (rep == 0) rep = 1;
62 BENCH(t_jsvd, tries, rep, jsvd.compute(
A));
64 BENCH(t_bdcsvd, tries, rep, bdcsvd.compute(
A));
72 results[
"CompleteOrthogonalDecomposition"][id] = t_cod.
best();
73 results[
"FullPivHouseholderQR"][id] = t_fpqr.
best();
#define BENCH(TIMER, TRIES, REP, CODE)
Definition: BenchTimer.h:150
HouseholderQR< MatrixXf > qr(A)
int rows
Definition: Tutorial_commainit_02.cpp:1
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
class Bidiagonal Divide and Conquer SVD
Definition: BDCSVD.h:85
Definition: BenchTimer.h:55
double best(int TIMER=CPU_TIMER) const
Definition: BenchTimer.h:98
Householder rank-revealing QR decomposition of a matrix with column-pivoting.
Definition: ColPivHouseholderQR.h:54
Complete orthogonal decomposition (COD) of a matrix.
Definition: CompleteOrthogonalDecomposition.h:54
Householder rank-revealing QR decomposition of a matrix with full pivoting.
Definition: FullPivHouseholderQR.h:63
LU decomposition of a matrix with complete pivoting, and related features.
Definition: FullPivLU.h:63
Householder QR decomposition of a matrix.
Definition: HouseholderQR.h:59
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Definition: JacobiSVD.h:500
Robust Cholesky decomposition of a matrix with pivoting.
Definition: LDLT.h:63
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:70
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
LU decomposition of a matrix with partial pivoting, and related features.
Definition: PartialPivLU.h:77
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:192
Derived & setRandom(Index size)
Definition: Random.h:147
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:191
cout<< "Here is the matrix m:"<< endl<< m<< endl;Eigen::FullPivLU< Matrix5x3 > lu(m)
EIGEN_DONT_INLINE void compute(Solver &solver, const MatrixType &A)
Definition: dense_solvers.cpp:23
std::map< std::string, Array< float, 1, 8, DontAlign|RowMajor > > results
Definition: dense_solvers.cpp:10
EIGEN_DONT_INLINE void compute_norm_equation(Solver &solver, const MatrixType &A)
Definition: dense_solvers.cpp:15
Matrix< Scalar, Dynamic, Dynamic > Mat
Definition: gemm_common.h:15
EIGEN_DONT_INLINE void llt(const Mat &A, const Mat &B, Mat &C)
Definition: llt.cpp:4
void cod()
Definition: qr_colpivoting.cpp:17