bug #360: add value_type typedef to DenseBase/SparseMatrixBase

This commit is contained in:
Gael Guennebaud
2015-04-24 09:44:24 +02:00
parent c460af414e
commit 40258078c6
4 changed files with 26 additions and 9 deletions

View File

@@ -28,6 +28,12 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
public:
typedef typename internal::traits<Derived>::Scalar Scalar;
/** The numeric type of the expression' coefficients, e.g. float, double, int or std::complex<float>, etc.
*
* It is an alias for the Scalar type */
typedef Scalar value_type;
typedef typename internal::packet_traits<Scalar>::type PacketScalar;
typedef typename internal::traits<Derived>::StorageKind StorageKind;
typedef typename internal::traits<Derived>::StorageIndex StorageIndex;