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.
This commit is contained in:
Benoit Jacob
2010-12-09 03:47:35 -05:00
parent 1be6449f2e
commit aec0782719
4 changed files with 44 additions and 11 deletions

View File

@@ -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);