aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Product.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-06-11 08:04:06 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-06-11 08:04:06 -0400
commitd72d538747d6c46f37bbcba2f0484414f10cb059 (patch)
treef64c6eeb7c33af9763e3e382197b233329bd132c /Eigen/src/Core/Product.h
parentbdd7c6c88a0b8cb931480e04e33a17aa08022e06 (diff)
parent00267e3a471a10e842f771de474f0dca6407a693 (diff)
merge my Dynamic -> -1 change
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r--Eigen/src/Core/Product.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h
index b9aab524b..753f6b4b5 100644
--- a/Eigen/src/Core/Product.h
+++ b/Eigen/src/Core/Product.h
@@ -194,6 +194,11 @@ class GeneralProduct<Lhs, Rhs, InnerProduct>
}
typename Base::Scalar value() const { return Base::coeff(0,0); }
+
+ /** Convertion to scalar */
+ operator const typename Base::Scalar() const {
+ return Base::coeff(0,0);
+ }
};
/***********************************************************************