diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-09 03:47:35 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-09 03:47:35 -0500 |
commit | aec07827197cbfa6457c1ef13a66061dc5991ffb (patch) | |
tree | 2ea0a3e3640217001bb9a8d7faa8c35fd239ae42 /Eigen/src/Core/Product.h | |
parent | 1be6449f2e1bd51393a55b06b967f43dc9be6ec6 (diff) |
fix the build of eigensolver_complex test.
it was calling the .value() method on an inner product, and that was blocked in bad zero-sized case.
fixed by adding the .value() method to DenseBase for all 1x1 expressions, and allowing coeff accessors in ProductBase for 1x1 expressions.
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r-- | Eigen/src/Core/Product.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 35ed1cbd7..eacdccb9a 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -224,8 +224,6 @@ class GeneralProduct<Lhs, Rhs, InnerProduct> Base::coeffRef(0,0) = (lhs.transpose().cwiseProduct(rhs)).sum(); } - typename Base::Scalar value() const { return Base::coeff(0,0); } - /** Convertion to scalar */ operator const typename Base::Scalar() const { return Base::coeff(0,0); |