diff --git a/Eigen/src/Sparse/SparseMatrixBase.h b/Eigen/src/Sparse/SparseMatrixBase.h index 468bc9e22..f20841ce1 100644 --- a/Eigen/src/Sparse/SparseMatrixBase.h +++ b/Eigen/src/Sparse/SparseMatrixBase.h @@ -84,9 +84,9 @@ template class SparseMatrixBase const Derived& >::ret ConjugateReturnType; /** \internal the return type of MatrixBase::real() */ - typedef CwiseUnaryOp, Derived> RealReturnType; + typedef SparseCwiseUnaryOp, Derived> RealReturnType; /** \internal the return type of MatrixBase::imag() */ - typedef CwiseUnaryOp, Derived> ImagReturnType; + typedef SparseCwiseUnaryOp, Derived> ImagReturnType; /** \internal the return type of MatrixBase::adjoint() */ typedef SparseTranspose::type> /*>*/ AdjointReturnType;