diff options
author | 2015-05-26 10:11:15 -0700 | |
---|---|---|
committer | 2015-05-26 10:11:15 -0700 | |
commit | abec18bae0ff4f88b4228c229f0995d0126c7c79 (patch) | |
tree | 5d30a622a1b709dbd1c99608f4b028d2e8171f2d | |
parent | 9df186c1405c762effb68cf3321c6c9e592287c8 (diff) |
Fixed potential compilation error
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h index bdc6ddb87..3b6f2c730 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h @@ -30,7 +30,7 @@ std::ostream& operator << (std::ostream& os, const TensorBase<T, ReadOnlyAccesso typedef typename internal::remove_const<typename T::Scalar>::type Scalar; typedef typename T::Index Index; typedef typename TensorEvaluator<const TensorForcedEvalOp<const T>, DefaultDevice>::Dimensions Dimensions; - const Index total_size = tensor.dimensions().TotalSize(); + const Index total_size = internal::array_prod(tensor.dimensions()); // Print the tensor as a 1d vector or a 2d matrix. if (internal::array_size<Dimensions>::value == 1) { |