mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
update product bench
This commit is contained in:
parent
771c0507fb
commit
6647a58847
@ -178,13 +178,13 @@ using namespace Eigen;
|
|||||||
void bench_eigengemm(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops)
|
void bench_eigengemm(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops)
|
||||||
{
|
{
|
||||||
for (uint j=0 ; j<nbloops ; ++j)
|
for (uint j=0 ; j<nbloops ; ++j)
|
||||||
mc += (ma * mb).lazy();
|
mc.noalias() += ma * mb;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bench_eigengemm_normal(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops)
|
void bench_eigengemm_normal(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops)
|
||||||
{
|
{
|
||||||
for (uint j=0 ; j<nbloops ; ++j)
|
for (uint j=0 ; j<nbloops ; ++j)
|
||||||
mc += Product<MyMatrix,MyMatrix,NormalProduct>(ma,mb).lazy();
|
mc.noalias() += GeneralProduct<MyMatrix,MyMatrix,UnrolledProduct>(ma,mb);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MYVERIFY(A,M) if (!(A)) { \
|
#define MYVERIFY(A,M) if (!(A)) { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user