make a couple of typedefs public so stuff compiles

This commit is contained in:
Benoit Jacob 2010-08-24 10:53:33 -04:00
parent a47bbf664c
commit bd8d06033d
2 changed files with 9 additions and 1 deletions

View File

@ -155,9 +155,10 @@ template<typename _MatrixType, unsigned int _Mode> class TriangularView
typedef TriangularBase<TriangularView> Base; typedef TriangularBase<TriangularView> Base;
typedef typename ei_traits<TriangularView>::Scalar Scalar; typedef typename ei_traits<TriangularView>::Scalar Scalar;
protected:
typedef _MatrixType MatrixType; typedef _MatrixType MatrixType;
typedef typename MatrixType::PlainObject DenseMatrixType; typedef typename MatrixType::PlainObject DenseMatrixType;
protected:
typedef typename MatrixType::Nested MatrixTypeNested; typedef typename MatrixType::Nested MatrixTypeNested;
typedef typename ei_cleantype<MatrixTypeNested>::type _MatrixTypeNested; typedef typename ei_cleantype<MatrixTypeNested>::type _MatrixTypeNested;
typedef typename ei_cleantype<typename MatrixType::ConjugateReturnType>::type MatrixConjugateReturnType; typedef typename ei_cleantype<typename MatrixType::ConjugateReturnType>::type MatrixConjugateReturnType;

View File

@ -45,6 +45,9 @@ int main(int argc, char *argv[])
} }
#endif #endif
Eigen::setCpuCacheSizes(262144, 6000000);
int nbtries=1, nbloops=1, M, N, K; int nbtries=1, nbloops=1, M, N, K;
if (argc==2) if (argc==2)
@ -153,6 +156,10 @@ int main(int argc, char *argv[])
std::cout << M << " : " << timer.value() << " ; " << 1e-3*floor(1e-6*nbmad/timer.value()) << "\n"; std::cout << M << " : " << timer.value() << " ; " << 1e-3*floor(1e-6*nbmad/timer.value()) << "\n";
} }
std::cout << "l1: " << Eigen::l1CacheSize() << std::endl;
std::cout << "l2: " << Eigen::l2CacheSize() << std::endl;
return 0; return 0;
} }