aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/Trace.h')
-rw-r--r--Eigen/src/Core/Trace.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/src/Core/Trace.h b/Eigen/src/Core/Trace.h
index 728b4faf3..c106f0a9d 100644
--- a/Eigen/src/Core/Trace.h
+++ b/Eigen/src/Core/Trace.h
@@ -57,16 +57,16 @@ template<int Index, typename Derived> struct TraceUnroller<Index, 0, Derived>
*
* \sa diagonal() */
template<typename Derived>
-typename Scalar<Derived>::Type
+typename ei_traits<Derived>::Scalar
MatrixBase<Derived>::trace() const
{
assert(rows() == cols());
Scalar res;
if(EIGEN_UNROLLED_LOOPS
- && Traits::RowsAtCompileTime != Dynamic
- && Traits::RowsAtCompileTime <= EIGEN_UNROLLING_LIMIT_PRODUCT)
- TraceUnroller<Traits::RowsAtCompileTime-1,
- Traits::RowsAtCompileTime <= EIGEN_UNROLLING_LIMIT_PRODUCT ? Traits::RowsAtCompileTime : Dynamic, Derived>
+ && RowsAtCompileTime != Dynamic
+ && RowsAtCompileTime <= EIGEN_UNROLLING_LIMIT_PRODUCT)
+ TraceUnroller<RowsAtCompileTime-1,
+ RowsAtCompileTime <= EIGEN_UNROLLING_LIMIT_PRODUCT ? RowsAtCompileTime : Dynamic, Derived>
::run(*static_cast<const Derived*>(this), res);
else
{