From 8885d56928e45b3beda91e529845e369a17d0a91 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 9 Jul 2009 23:59:18 +0200 Subject: commit woking versions of triangular solvers naturally handling conjuagted expression. still have to bench whether it is faster (runtime and compile time) to directly call the cache friendly functions, whence all the commented piece of code... --- Eigen/src/Core/Product.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Eigen/src/Core/Product.h') diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 44fde3dcf..8bd6af1b8 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -129,6 +129,19 @@ template struct ei_product_factor_traits struct ei_product_factor_traits > + : ei_product_factor_traits +{ + typedef typename NestedXpr::Scalar Scalar; + typedef ei_product_factor_traits Base; + typedef NestByValue XprType; + typedef typename Base::ActualXprType ActualXprType; + static inline const ActualXprType& extract(const XprType& x) { return Base::extract(static_cast(x)); } + static inline Scalar extractScalarFactor(const XprType& x) + { return Base::extractScalarFactor(static_cast(x)); } +}; + /* Helper class to determine the type of the product, can be either: * - NormalProduct * - CacheFriendlyProduct -- cgit v1.2.3